From: Alec B. <wry...@gm...> - 2007-10-24 22:09:23
|
I wound up making the window in pure wxPython. Which got me to thinking: a nice and relatively easy way to extend the power of PythonCard would be to document integration with it and pure WX. In other words, how to add components from WX to your PythonCard app. With that in mind I made a couple of additions to this Wiki page: http://wiki.wxpython.org/PythonCardTricks I added: - "How do I launch a pure WX window from a PythonCard app?" and - "How do I make my PythonCard app minimize to the system tray?" I've seen a couple of other examples describing minimizing to the system tray, but nothing very complete. And obviously if anyone notices problems with those tutorials, please update or let me know. Maybe someone could post instructions for adding, say, a radiogroup from pure python to a PythonCard app? Or if someone knows of some existing documentation for doing things like this? On 10/24/07, Phil Edwards <ph...@li...> wrote: > > Alex Tweedly wrote: > >> > >> Is there some other way to set the radiogroup items dynamically? > >> > > Very embarrassingly, I can't try this out right now, but you might get > > it to work as > > > > self.components.myradiogroup.SetItemLabel(1,'choice1') > > self.components.myradiogroup.SetItemLabel(2,'choice2') > > etc. > > > > Just tried that on my laptop and it works, with the proviso that you > can't use this method to change the number of items in the group, i.e. > if we tried to add a 3rd radio button by doing: > > self.components.myradiogroup.SetItemLabel(3, 'choice3') > > then this gets ignored. > > -- > > Regards > > Phil Edwards > Brighton, UK > |