From sw at wordtech-software.com Mon Dec 20 02:40:53 2004 From: sw at wordtech-software.com (Kevin Walzer) Date: Sun, 19 Dec 2004 20:40:53 -0500 Subject: [spe.pycs.net] Patch for SPE on OS X Message-ID: <41C62DA5.30504@wordtech-software.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm trying to put together a patch for the "about" menu on SPE so it will display correctly on OS X (under the "Application" menu as well as the "help" menu) but I'm having problems. This is the code that wxGlade uses in its main.py script: ~ # Mac tweaks... ~ if wxPlatform == "__WXMAC__": ~ wxApp.SetMacAboutMenuItemId(ABOUT_ID) ~ wxApp.SetMacPreferencesMenuItemId(PREFS_ID) ~ wxApp.SetMacExitMenuItemId(EXIT_ID) I've tried to do something similar in SPE, but I can't find the right place for it. I've tried the menu script, but I get an error saying that "wxapp" is undefined. Can anyone help modify this? - -- Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:sw at wordtech-software.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBxi2kJmdQs+6YVcoRAlpKAJ4k2+58PPQTqqRIlCSRdUPBEzsS1QCffPyq DiunWpg74BsktZSZ2nr5aqo= =ckUY -----END PGP SIGNATURE----- From s_t_a_n_i at yahoo.com Mon Dec 20 19:10:26 2004 From: s_t_a_n_i at yahoo.com (www.stani.be) Date: Mon, 20 Dec 2004 10:10:26 -0800 (PST) Subject: [spe.pycs.net] Patch for SPE on OS X In-Reply-To: <41C62DA5.30504@wordtech-software.com> Message-ID: <20041220181026.69067.qmail@web51909.mail.yahoo.com> Hi Kevin, About these questions you can also email me directly. I figured it out for you. Please add in the Bar.__smdi__ method in Menu.py: wx.EVT_MENU(self.parent,ABOUT,self.menu_about) if not self.application.mdi: self.Enable(SHELL,0) self.toolBar.EnableTool(TOOL_SHELL,0) # Mac tweaks...add this code if wxPlatform == "__WXMAC__": self.application.SetMacAboutMenuItemId(ABOUT) self.application.SetMacPreferencesMenuItemId(PREFERENCES) self.application.SetMacExitMenuItemId(EXIT) Please let me know if it works, than I'll change it for the next release. If you have any other question, don't hesitate to contact me directly. Maybe I forgot to reply to your email before but I really do appreciate your effort to put SPE on the mac. Thanks, Stani PS By the way, I'm currently building an UML view into SPE. Also I have been working with Michael Foord on 'movable python'. A new python distro which won't need installation, so which can run straight from an usb flashdrive and it ships with SPE. --- Kevin Walzer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I'm trying to put together a patch for the "about" > menu on SPE so it > will display correctly on OS X (under the > "Application" menu as well as > the "help" menu) but I'm having problems. This is > the code that wxGlade > uses in its main.py script: > > ~ # Mac tweaks... > ~ if wxPlatform == "__WXMAC__": > ~ wxApp.SetMacAboutMenuItemId(ABOUT_ID) > ~ > wxApp.SetMacPreferencesMenuItemId(PREFS_ID) > ~ wxApp.SetMacExitMenuItemId(EXIT_ID) > > I've tried to do something similar in SPE, but I > can't find the right > place for it. I've tried the menu script, but I get > an error saying that > "wxapp" is undefined. > > Can anyone help modify this? > > > - -- > Cheers, > > Kevin Walzer, PhD > WordTech Software--Open Source Applications and > Packages for OS X > http://www.wordtech-software.com > http://www.smallbizmac.com > http://www.kevin-walzer.com > mailto:sw at wordtech-software.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Darwin) > Comment: Using GnuPG with Thunderbird - > http://enigmail.mozdev.org > > iD8DBQFBxi2kJmdQs+6YVcoRAlpKAJ4k2+58PPQTqqRIlCSRdUPBEzsS1QCffPyq > DiunWpg74BsktZSZ2nr5aqo= > =ckUY > -----END PGP SIGNATURE----- > _______________________________________________ > Spe-user mailing list > Spe-user at projects.blender.org > http://projects.blender.org/mailman/listinfo/spe-user > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From s_t_a_n_i at yahoo.com Tue Dec 21 00:36:29 2004 From: s_t_a_n_i at yahoo.com (www.stani.be) Date: Mon, 20 Dec 2004 15:36:29 -0800 (PST) Subject: [spe.pycs.net] SPE 0.7.0.a released with uml viewer In-Reply-To: <41C71F2E.3090305@wordtech-software.com> Message-ID: <20041220233629.97283.qmail@web51908.mail.yahoo.com> See http://spe.pycs.net for more details... or http://spe.pycs.net/pictures/800x600/11.html for a screenshot. Stani PS zip package for linux and mac users __________________________________ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.mail.yahoo.com From grimmtooth at gmail.com Tue Dec 21 06:08:37 2004 From: grimmtooth at gmail.com (Jeff Grimmett) Date: Tue, 21 Dec 2004 00:08:37 -0500 Subject: [spe.pycs.net] SPE 0.7.0.a released with uml viewer In-Reply-To: <20041220233629.97283.qmail@web51908.mail.yahoo.com> References: <41C71F2E.3090305@wordtech-software.com> <20041220233629.97283.qmail@web51908.mail.yahoo.com> Message-ID: <8f4623fb04122021086bb6fb7a@mail.gmail.com> On Mon, 20 Dec 2004 15:36:29 -0800 (PST), www.stani.be wrote: > See http://spe.pycs.net for more details... or > http://spe.pycs.net/pictures/800x600/11.html for a > screenshot. Neato and spiffy! Cool, even! Alas, it doesn't work so well on my Win2K (Py 2.3, wx 2.5) install. A short list of issues: 1) On startup, my formerly open files all loaded, but none of the windows actually showed the code contained within. When I maximized the windows, the contents were displayed properly, and if I de-maximized them again, the contents showed OK. So it looks like an initial refresh glitch of some sort. 2) UML was a mixed bag. Some files I had opened displayed properly, some displayed nothing, and at least one had a completely inoperative UML tab (click on the tab, nothing happens). I can provide example files as needed, nothing top secret here. 3) After the first session, subsequent sessions started up with the left-hand pane of the file's splitter window minimized - i.e. the code browser side was just a 'sliver'. Resizing, exiting, and restarting did not help - it was re-slivered. 4) Also, on subsequent startups, the file tabs were completely gone until I maximized one of the windows. 1, 3, and 4 all seem consistent with refresh handlers or size event handlers (having had similar problems in my own code, I am painfully familiar with the symptoms). Unfortunately, I really don't have enough of a handle on SPE's internals to know where to look, and I don't use wxGlade anyway. Suggestion: add the ability to log to a file if debug=1 is passed to SPE.main(). Python's logging module makes it easy to do both stdout and file logging with the same debug statements, though it might be more work than you need right now. Problems notwithstanding, still a fine effort and I'm looking forward to the next one. Back to 0.6 for me for the moment though :-) -- Regards, Jeff From s_t_a_n_i at yahoo.com Tue Dec 21 11:54:54 2004 From: s_t_a_n_i at yahoo.com (www.stani.be) Date: Tue, 21 Dec 2004 02:54:54 -0800 (PST) Subject: [spe.pycs.net] SPE 0.7.0.a released with uml viewer In-Reply-To: <8f4623fb04122021086bb6fb7a@mail.gmail.com> Message-ID: <20041221105454.14819.qmail@web51906.mail.yahoo.com> --- Jeff Grimmett wrote: > A short list of issues: > > 1) On startup, my formerly open files all loaded, > but none of the > windows actually showed the code contained within. > When I maximized > the windows, the contents were displayed properly, > and if I > de-maximized them again, the contents showed OK. So > it looks like an > initial refresh glitch of some sort. Strange, because nothing changed on that point from 0.6 to 0.7 Can you check if it is a related maybe to one of the files. Also did you run SPE in the debug mode (python spe.py --debug>debug.txt)and checked the file debug.txt? > 2) UML was a mixed bag. Some files I had opened > displayed properly, > some displayed nothing, and at least one had a > completely inoperative > UML tab (click on the tab, nothing happens). I can > provide example > files as needed, nothing top secret here. Well, UML only works for files which contains classes, as it is a 2d class map. So if you have files which don't work I definitely would like to receive them by email, so I can fix it. > 3) After the first session, subsequent sessions > started up with the > left-hand pane of the file's splitter window > minimized - i.e. the code > browser side was just a 'sliver'. Resizing, > exiting, and restarting > did not help - it was re-slivered. Strange. Please delete all files in your user path '.spe' See Help>About to find out its location. > 4) Also, on subsequent startups, the file tabs were > completely gone > until I maximized one of the windows. Strange again. Please run SPE in debug mode. > 1, 3, and 4 all seem consistent with refresh > handlers or size event > handlers (having had similar problems in my own > code, I am painfully > familiar with the symptoms). Unfortunately, I really > don't have enough > of a handle on SPE's internals to know where to > look, and I don't use > wxGlade anyway. You don't need to know wxGlade. To me it looks like something is wrong with the configuration files of SPE. Did you uninstall previous version of SPE properly? Because if some *.pyc files stay around, this might disturb the upgrading. Anyway I don't have any of these issues. Some other people do? > > Suggestion: add the ability to log to a file if > debug=1 is passed to > SPE.main(). Python's logging module makes it easy to > do both stdout > and file logging with the same debug statements, > though it might be > more work than you need right now. Well, first use the builtin SPE debugging mode as it exists now and than we'll see. > > Problems notwithstanding, still a fine effort and > I'm looking forward > to the next one. Back to 0.6 for me for the moment > though :-) Again there is no reason why this should work on 0.6 and not on 0.7 Except if 0.6 was not uninstalled correctly. Otherwise I'm very curious. Thanks for your report, Stani __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From s_t_a_n_i at yahoo.com Sat Dec 25 00:26:56 2004 From: s_t_a_n_i at yahoo.com (www.stani.be) Date: Fri, 24 Dec 2004 15:26:56 -0800 (PST) Subject: [spe.pycs.net] SPE 0.7.1.a released with xrc editor In-Reply-To: <20041220233629.97283.qmail@web51908.mail.yahoo.com> Message-ID: <20041224232656.13002.qmail@web51908.mail.yahoo.com> See http://spe.pycs.net for more details... Merry christmas! Stani __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com