From: <bra...@om...> - 2005-03-21 02:25:16
|
I've started building my application around the idea of a main tabbed window with a few small child windows spawned, and it seems to be working, but with one problem. Sometimes, when I quit PythonCard, it appears to hang for a few seconds, and the Python GUI environment crashes. Mac OS X presents a dialog saying that Python has unexpectedly quit, and the terminal shows a 'bus error.' This happens about 50% of the time when I quit my app, but I haven't yet taken the time to nail down a pattern. It may happen more when I spawn child windows. I haven't see this problem yet under Windows XP. Here is how I'm initializing the main window, based on the testNotebook.py sample code: class MainWindow(model.Background): def on_initialize(self, event): # if you have any initialization # including sizer setup, do it here self.printer = HtmlEasyPrinting() # self.loadConfig() self.startTitle = self.title win2 = model.childWindow(self.components.notebook, widgets.WidgetsTest) self.components.notebook.AddPage(win2, 'widgets', True) win3 = model.childWindow(self.components.notebook, doodle.Doodle) self.components.notebook.AddPage(win3, 'doodle', True) win4 = model.childWindow(self.components.notebook, tabEmp.MyBackground) self.components.notebook.AddPage(win4, 'Employees', True) win5 = model.childWindow(self.components.notebook, tabMainMenu.MyBackground) self.components.notebook.AddPage(win5, 'Main', True) page = self.components.notebook.getPage(3) size = page.size wx.CallAfter(page.SetSize, size) print "number of pages:", self.components.notebook.getPageCount() print "last page text: %s\n" % \ self.components.notebook.getPageText(self.components.notebook.getPageCount() - 1) print "stringSelection:", self.components.notebook.stringSelection self.components.notebook.stringSelection = 'Main' |
From: Brian D. <deb...@ho...> - 2005-03-21 13:20:45
|
Hi there, I've noticed that there is a notebook implementation in Python Card shown in testNotebook.py, but where can I find it?? It is not included in my 8.0 version of Python Card, is it included with the lattest version?? Thanks in advance, Brian _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ |
From: Andy T. <an...@ha...> - 2005-03-30 09:56:18
|
Brian Debuire wrote: > Hi there, > > I've noticed that there is a notebook implementation in Python Card > shown in testNotebook.py, but where can I find it?? It is not included > in my 8.0 version of Python Card, is it included with the lattest version?? > > Thanks in advance, > > Brian > http://article.gmane.org/gmane.comp.python.pythoncard/1060 Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Bo G. <bo...@sy...> - 2005-03-21 17:17:03
|
How could pages control and communicate with one another, in a tabbed app? It seems like getParent() is not implemented for PageBackground instances, and I'm having trouble locating notebook methods for that kind of thing. Thanks. Bo |
From: Nicolas Arni-B. <nic...@gm...> - 2005-03-21 17:30:10
|
In the PageBackground you can get the parent with this attribute : self.topLevelParent=00 Le 21 mars 05, =E0 18:17, Bo Green a =E9crit : > > How could pages control and communicate with one another, in a tabbed=20= > app? > It seems like getParent() is not implemented for PageBackground=20 > instances, and I'm having trouble locating notebook methods for that=20= > kind of thing. > Thanks. > Bo > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real=20 > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > -- Nicolas Arni-Bloch =09= Groupe MATIS-Bd, Centre Universitaire d'Informatique 24 rue General-Dufour CH-1205 Gen=E8ve eMail : nic...@cu... phone : +41 22 379 76 80 fax : +41 22 379 77 80 |