From: Liam C. <cy...@gm...> - 2005-03-16 05:06:10
|
Sorry, the wxPython demo is different to the Pythoncard demos. Pythoncard is built on top of wxPython (which is built on top of wx), and sometimes you need to use wxPython methods, either because Pythoncard doesn't cover your need yet, or you want to bend some widget some funny way. http://www.wxpython.org/download.php Download it just for the demo. The wxPython demo covers every wx widget, and is the primary source of python documentation for the wx library. Regards, Liam Clarke On Tue, 15 Mar 2005 21:23:54 -0600, bra...@om... <bra...@om...> wrote: > > > > def on_MCL_itemActivated(self, event): > > selectedIndex = event.m_itemIndex > > Aha! Thanks. That is what I needed. > > > that demo it prints stuff like this - > > > > OnItemSelected: 5, Billy Joel, Blonde Over Blue, Rock > > I think I missed that because multicolumnexample.py doesn't > print out that index. After I did more digging I found it > in the minimalList.py, which does print the index. > When I went looking for info about MultiColumnList, I didn't > think to look in the minimalList sample... > > > So yeah... good luck, Pythoncard is great, and very flexible, and it's > > not that often you have to revert to the wx stuff. > > Yes, but it's nice to know that you can when you need to. I'm not > ready to climb the learning curve for wxPython right now, so > yes, this is great. -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. |