From: ronny de w. <ron...@gm...> - 2005-02-24 07:19:13
|
I would expect the columwidth for the column in a MultiColumnList are automatically sized to the size of the longest item in the column. This doesn't seem to happen always. Double clicking in the header line on the border of the colums does the job. Any ideas on how to automate this so that it happens on initialisation and on any update of the list ? Ronny De Winter |
From: Kevin A. <al...@se...> - 2005-03-08 18:59:13
|
On Feb 23, 2005, at 11:19 PM, ronny de winter wrote: > I would expect the columwidth for the column in a MultiColumnList are > automatically > sized to the size of the longest item in the column. > This doesn't seem to happen always. > > Double clicking in the header line on the border of the colums does > the job. > Any ideas on how to automate this so that it happens on initialisation > and on any > update of the list ? > > Ronny De Winter > I don't know. If that is part of the behavior of the native control and doesn't involve calling one of the methods then I'm not even sure where to look. You might need to bring this up on wxPython-users or look more deeply into the multicolumnlist.py component. ka |
From: Ronny De W. <ron...@gm...> - 2005-03-09 20:25:05
|
Kevin Altis <altis <at> semi-retired.com> writes: > > On Feb 23, 2005, at 11:19 PM, ronny de winter wrote: > > > I would expect the columwidth for the column in a MultiColumnList are > > automatically > > sized to the size of the longest item in the column. > > This doesn't seem to happen always. > > > > Double clicking in the header line on the border of the colums does > > the job. > > Any ideas on how to automate this so that it happens on initialisation > > and on any > > update of the list ? > > > > Ronny De Winter > > > > I don't know. If that is part of the behavior of the native control and > doesn't involve calling one of the methods then I'm not even sure where > to look. You might need to bring this up on wxPython-users or look more > deeply into the multicolumnlist.py component. > > ka > After some more digging i found a way to do it: import wx def on_initialize(self, event): self.components.thelist.columnHeadings = dat.headings self.components.thelist.items = dat.values() self.autoSizeColumns() self.updating = False def autoSizeColumns(self): for col in range(len(dat.headings)): self.components.thelist.SetColumnWidth(col, wx.LIST_AUTOSIZE) and call this on any update of thelist. I wonder if i can do it in one central place. Cheers, Ronny |
From: Ronny De W. <ron...@gm...> - 2005-03-09 22:28:25
|
Today i released my first PythonCard application: QuotesViewer is a GUI giving you easy and fast access to quotes of all shares on the Euronext stock exchange. http://quotesviewer.sourceforge.net/ The GUI is not rocket science, in fact it is rather simple. However i am very pleased i could produce this with relative limited effort, thanks to PythonCard, wxPython, ... I want to share my experiences up-to-now on PythonCard with the mailing list: - Adequate documentation, especially the tutorials and the sample applications are very useful. API documentation would be most welcome. - Responsive help on this list, thanks! - I have the impression that PythonCard cannot hide the wxPython complexity. Perhaps that's not the goal, but needs perhaps better documented, wxPython knowledge is useful for all but the most simple applications. Some topics where i spent some time on, or where i am still looking for improvements: source http://cvs.sourceforge.net/viewcvs.py/quotesviewer/quotesviewer/euronextBrowser.py?rev=1.2&view=auto - *from* PythonCard.components *import* * needed this to let py2exe find all the components - *def* *autoSizeColumns*(self) would expect PythonCard/wxPython should do this automatically have to call this everytime the multiColumnList changes, i wonder if this can be done in one single place ? - *def* *on_btnUpdate_mouseClick*(self, event) is this the right way (using yield) to disable the button until operation is finished, or is there a simpler way ? * - def* *on_about_command*(self, event) Contains metadata also used in other files, perhaps should refactor it out to a __init__.py file ? - Don't have much experience with distutils, wonder if my setup.py sdist is ok ? - Didn't have the chance to test my application on other platforms than win32. Anybody cares to give it a try on linux, Mac OS ? - Does anybody know the scripts/crontab job i should use on the sourceforge shell server to automatically update the web home pages from the CVS repository on a daily basis ? Any feedback is welcome! Thanks to all who made PythonCard to what it is today, and continue with the good work! Ronny De Winter |