From: Terry M. <ter...@gl...> - 2008-04-01 20:03:20
|
Alex Tweedly wrote: > Aaron Stevens wrote: >> Hi Guys, >> >> So I've been toying around with Layout Editor on Mac, and came across >> some weird behavior. I made a "big" window (800 X 600), and I cannot >> see all of it in layout editor on Mac. When I open the same .rsrc.py >> file in Layout Editor on windows, it looks like. Here are sample >> screen shots of each: >> >> Layout Editor on MAC: http://www.cs.bu.edu/courses/cs108/examples/ >> pc-mac.png >> Layout Editor on Windows XP: http://www.cs.bu.edu/courses/cs108/ >> examples/pc-win.png >> >> AND: when I actually run the application on Mac, it looks fine. This >> problem is only in Layout Editor/design time. Any ideas? > Haven't seen anything like that. Could you send the .rsrc.py file ? > And > version info (Pythoncard, wxPython, wx, OSX) - either direct to me > or to > the list (if you send it direct - please put 'Pythoncard' in the > Subject > line :-) I'm having exactly the same problem as Aaron (in both the Layout Editor and the Resource Editor), using OSX 10.4.11, with: Python 2.5.1 wxPython 2.8 PythonCard 0.8.2 Be glad to send my .rsrc.py file as well if it would be of any help. But I think the problem may be broader than this: when I open the sample app Widgets' .rsrc.py file in Resource Editor, I see only two widgets (chkToggleButton and it's associated StaticText, labelToggleButton), and the Property Editor window shows only these two and one more, labelBitmapCanvas. (I just downloaded fresh copies of both the Resource Editor and Widgets, btw, to be sure I hadn't screwed anything up in playing around with PythonCard ;) Terry Maloney |
From: Terry M. <ter...@gl...> - 2008-04-02 21:27:57
|
XXXXXXXXXXX wrote: > With the following versions the layout looks the same as XP, i.e. all > components are visible and the text area fills the frame: > > OSX 10.4.11 (PowerPC) > Python 2.3.5 (as shipped with Tiger) > wxPython 2.5.3.1 > PythonCard 0.8.2 > > So it looks more like something specific to newer versions of the > OS/wxPython than a platform difference. I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, but definitely is related to wxPython ... versions up to 2.7.2.0 work perfectly, 2.8.0.1 introduces the problem. Unfortunately that's probably not going to help Aaron, as 2.7.2.0 doesn't appear to support OSX 10.5. |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-10-09 20:54:16
|
6 months later...and I finally upgrade my trusty old G3 iMac to wxPython 2.8.9.1. Now I see these problems. First there's the problem with the widget sample not fully loading in the resource editor. That seems to be the same issue as reported by Alex Schenkman in March ("BitmapCanvas problem in OSX") - it gets to drawing the BitmapCanvas widget and then fails due to "Cannot nest wxDCs on the same window". This appears to be due to changes in wxMac: <http://lists.wxwidgets.org/pipermail/wx-users/2007-October/102956.html> Having deliberately removed this component I then hit the other issue that 2.8.x.x users were seeing - not all of the window being displayed in the layout/resource editor. Did anybody work out what was causing this? -- XXXXXXXXXXX On Wed, 02 Apr 2008 17:27:47 -0400 Terry Maloney <ter...@gl...> wrote: > XXXXXXXXXXX wrote: > > > With the following versions the layout looks the same as XP, i.e. all > > components are visible and the text area fills the frame: > > > > OSX 10.4.11 (PowerPC) > > Python 2.3.5 (as shipped with Tiger) > > wxPython 2.5.3.1 > > PythonCard 0.8.2 > > > > So it looks more like something specific to newer versions of the > > OS/wxPython than a platform difference. > > I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, > but definitely is related to wxPython ... versions up to 2.7.2.0 work > perfectly, 2.8.0.1 introduces the problem. Unfortunately that's > probably not going to help Aaron, as 2.7.2.0 doesn't appear to > support OSX 10.5. |
From: Aaron S. <az...@bu...> - 2008-10-09 23:17:07
|
Hi Neil, No, I never worked it out. I run Windows XP under Parallels Desktop, so I just gave up and used the windows versions of LayoutEditor. I'd love to see a solution if you can work it out! Aaron On Oct 9, 2008, at 4:54 PM, XXXXXXXXXXX wrote: > 6 months later...and I finally upgrade my trusty old G3 iMac to > wxPython 2.8.9.1. Now I see these problems. > > First there's the problem with the widget sample not fully loading > in the resource editor. That seems to be the same issue as reported > by Alex Schenkman in March ("BitmapCanvas problem in OSX") - it gets > to drawing the BitmapCanvas widget and then fails due to "Cannot > nest wxDCs on the same window". This appears to be due to changes in > wxMac: > > <http://lists.wxwidgets.org/pipermail/wx-users/2007-October/102956.html > > > > Having deliberately removed this component I then hit the other > issue that 2.8.x.x users were seeing - not all of the window being > displayed in the layout/resource editor. Did anybody work out what > was causing this? > > -- > XXXXXXXXXXX > > > On Wed, 02 Apr 2008 17:27:47 -0400 > Terry Maloney <ter...@gl...> wrote: > >> XXXXXXXXXXX wrote: >> >>> With the following versions the layout looks the same as XP, i.e. >>> all >>> components are visible and the text area fills the frame: >>> >>> OSX 10.4.11 (PowerPC) >>> Python 2.3.5 (as shipped with Tiger) >>> wxPython 2.5.3.1 >>> PythonCard 0.8.2 >>> >>> So it looks more like something specific to newer versions of the >>> OS/wxPython than a platform difference. >> >> I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, >> but definitely is related to wxPython ... versions up to 2.7.2.0 work >> perfectly, 2.8.0.1 introduces the problem. Unfortunately that's >> probably not going to help Aaron, as 2.7.2.0 doesn't appear to >> support OSX 10.5. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-10-12 09:59:07
|
On Thu, 9 Oct 2008 17:54:09 -0400 Aaron Stevens <az...@bu...> wrote: > No, I never worked it out. I run Windows XP under Parallels Desktop, > so I just gave up and used the windows versions of LayoutEditor. > I'd love to see a solution if you can work it out! Well....it looks like the same nested device context limit that is causing the problem with the BitmapCanvas component is also causing the problem with the LayoutEditor. I don't see any error under Windows XP so I guess this limitation has been deliberately restricted to OSX. Aaron....or anybody running 10.5 (I only have Tiger here, so I hope it's the same cause)....if you run the LayoutEditor from the command line or set the Python launcher to show all error messages in a terminal window, and then load the widgets example, when the window is only partly drawn do you see the stack trace ending with the error about "Cannot nest wxDCs on the same window"? Also, is anybody seeing the same visible issue in the Resource Editor....where only a part of the window is showing? I just see it in the LayoutEditor but I get the stack trace in both. I've been able to hack the editor code to stop this and get all of the components showing but I haven't tested it back on my Windows box to see if it breaks anything...and I can't understand why I'm not seeing the same visible issue in the ResourceEditor....just an error message. -- XXXXXXXXXXX |
From: Aaron S. <az...@bu...> - 2008-10-12 17:51:33
Attachments:
stacktrace.txt
|
Neil, Yes, that's the error I got. I'm attaching the stack trace. I got effectively the same stack trace from running Resource Editor, and the same drawing issue. -Aaron |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2008-10-13 22:26:13
|
On Sun, 12 Oct 2008 13:50:16 -0400, Aaron Stevens <az...@bu...> wrote: > Yes, that's the error I got. I'm attaching the stack trace. > I got effectively the same stack trace from running Resource Editor, > and the same drawing issue. Fancy hacking your copy of the LayoutEditor? :-) I've posted what I found on the developer list, but Kevin and I are on Tiger so any chance you could repeat the code changes I suggest here: <http://article.gmane.org/gmane.comp.python.pythoncard.devel/256> It's just two small code changes to layoutEditor.py. Failing that, I'll send my copy of the module. -- XXXXXXXXXXX |
From: Christian B. <c.b...@qx...> - 2008-05-04 19:09:46
|
Hello, has anybody found out more about this problem? I have the exact same issue, which renders the layoutEditor useless on the Mac: http://www.qxtransformer.org/screenshots/pythoncard-mac-leopard-problem.png Thanks for any information! Christian Terry Maloney <terrymaloney <at> globetrotter.net> writes: > > Neil Hughes wrote: > > > With the following versions the layout looks the same as XP, i.e. all > > components are visible and the text area fills the frame: > > > > OSX 10.4.11 (PowerPC) > > Python 2.3.5 (as shipped with Tiger) > > wxPython 2.5.3.1 > > PythonCard 0.8.2 > > > > So it looks more like something specific to newer versions of the > > OS/wxPython than a platform difference. > > I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, > but definitely is related to wxPython ... versions up to 2.7.2.0 work > perfectly, 2.8.0.1 introduces the problem. Unfortunately that's > probably not going to help Aaron, as 2.7.2.0 doesn't appear to > support OSX 10.5. > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > |
From: Christian B. <c.b...@qx...> - 2008-05-07 19:12:34
|
There seems to be a workaround: changing the template that is opened by default when the layoutEditor is opened: If you modify tools/resourceEditor/templates/templates.rsrc as follows ... { 'type':'Background', 'name':'bgTemplate', 'title':'Standard Template with File->Exit menu', 'size':( 800, 600 ), 'style':['resizeable'], 'statusBar':0, ... the panel that can be worked with is 800 x 600 pixels big. Not very elegant, but this makes the editor at least usable on the Mac. Better would be a solution that adapts the panel to the size of the window automatically. 2008/5/4 Christian Boulanger <c.b...@qx...>: > Hello, > > has anybody found out more about this problem? I have the exact same > issue, which renders the layoutEditor useless on the Mac: > > > http://www.qxtransformer.org/screenshots/pythoncard-mac-leopard-problem.png > > Thanks for any information! > > Christian > > Terry Maloney <terrymaloney <at> globetrotter.net> writes: > > > > > Neil Hughes wrote: > > > > > With the following versions the layout looks the same as XP, i.e. all > > > components are visible and the text area fills the frame: > > > > > > OSX 10.4.11 (PowerPC) > > > Python 2.3.5 (as shipped with Tiger) > > > wxPython 2.5.3.1 > > > PythonCard 0.8.2 > > > > > > So it looks more like something specific to newer versions of the > > > OS/wxPython than a platform difference. > > > > I'm also using OSX 10.4.11 (PowerPC), so it's probably not the OS, > > but definitely is related to wxPython ... versions up to 2.7.2.0 work > > perfectly, 2.8.0.1 introduces the problem. Unfortunately that's > > probably not going to help Aaron, as 2.7.2.0 doesn't appear to > > support OSX 10.5. > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > > > |
From: John M. <li...@ji...> - 2008-05-13 02:48:42
|
It's got to be that the wxFrame (panel) that hosts the controls no longer sizes appropriately on Mac. I don't have PythonCard running on a Mac at present, but I have a theory that adding: self.panel.size = self.size to resourceEditor.py at line 1292 or so, assuming everyone else has the same resourceEditor I do, would correct it, albeit in a less-than-perfect way since it doesn't take into account the menu bar, status bar,etc. I really don't know what I'm doing here, but I was surprised not to see any sizers or equivalent code for self.panel in resourceEditor.py, since (I assume) wx.Panel doesn't grow to fill its parent by default. Maybe it does on Windows and doesn't on Mac, and that's the problem? Anyway, I'll try and get PythonCard up and running on my Mac and see if it helps, or any of you Mac guys are welcome to try it and let me know. -- John McCormick |
From: Christopher L. <chr...@ip...> - 2008-05-30 09:51:42
|
Hi all, I've been using Pythoncard for a couple of years now. I had a look at the Sourceforge site but there doesn't seem to be any developments for the past couple of years. The Pythoncard Todo list on wxpython.org does seem to have been updated in March of this year. Is there any development still going on for Pythoncard, or is the framework completely unmaintained? Chris Lees |
From: Andy T. <an...@ha...> - 2008-05-31 11:25:33
|
Christopher Lees wrote: > Hi all, > > I've been using Pythoncard for a couple of years now. I had a look at > the Sourceforge site but there doesn't seem to be any developments for > the past couple of years. The Pythoncard Todo list on wxpython.org does > seem to have been updated in March of this year. > > Is there any development still going on for Pythoncard, or is the > framework completely unmaintained? > > Chris Lees > There isn't a lot of development going on at the moment. That's not to say that if anyone wishes to provide patches or enhancements to the code base they won't be welcome. And given sufficient commitment CVS access can be arranged. Regards, Andy -- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Aaron S. <az...@bu...> - 2008-05-13 17:47:43
Attachments:
pythoncard-panel.png
|
No dice, I fear. I made this change, and still the panel size stays fixed. Unusual, it is. Here's a screen shot AFTER I applied that suggested fix.... |
From: John M. <li...@ji...> - 2008-05-28 18:09:48
|
Aaron Stevens wrote: > No dice, I fear. I made this change, and still the panel size stays > fixed. Unusual, it is. > > Here's a screen shot AFTER I applied that suggested fix.... Is that screen shot cut off around the edges, or did it actually make the OS X Window frame look cut off? If so, that must be the wrong panel. Unfortunately, when I looked into the problem on my old G3 running 10.4 w/ Python 2.5(.?) & wxWidgets (?), I don't have the problem, so it's difficult for me to try and offer any other suggestions right now. I'll check the versions I've got against what Terry reported earlier and see if I can't get it to be broken on my machine. If I can, I'll dig around and see what I can find. -- John McCormick |