From: Chris M. <cj...@av...> - 2005-06-29 11:46:00
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Just had a quick look.<br> <br> Assuming you have wxPython and the bits and pieces that come with it.<br> <br> If you add:<br> <br> from wx.py.shell import ShellFrame<br> <br> to the end of the imports at the top of main.py<br> <br> and:<br> self.shellFrame = ShellFrame(parent = self, locals=locals())<br> self.shellFrame.SetSize((750, 525))<br> self.shellFrame.Show(True)<br> <br> at the end of wxGladeFrame __init__ (ie about line 478) in main.py<br> <br> then run wxglade, you (should) get a PyShell window that will let you control the wxGlade frame.<br> <br> eg:<br> <blockquote>>>> self<br> <main.wxGladeFrame; proxy of C++ wxFrame instance at _68b29601_p_wxFrame><br> >>> self.GetSize()<br> wx.Size(225, 232)<br> >>> self.GetPosition()<br> wx.Point(0, 0)<br> >>> self.SetPosition(wx.Point(100,100))<br> Traceback (most recent call last):<br> File "<input>", line 1, in ?<br> NameError: name 'wx' is not defined<br> >>> import wx<br> >>> self.SetPosition(wx.Point(100,100))<br> >>> self.SetPosition(wx.Point(0,0))<br> >>> <br> </blockquote> hope this helps,<br> <br> Chris.<br> <br> <br> Tim Hirzel wrote: <blockquote cite="mid00c301c57bf8$d034bc30$0a00a8c0@TIMSLAP" type="cite"> <meta http-equiv="Content-Type" content="text/html; "> <meta content="MSHTML 6.00.2900.2668" name="GENERATOR"> <style></style> <div><font face="Arial" size="2">Hello All,</font></div> <div><font face="Arial" size="2"> I've been using glade for some time. Right now on XP sp2, over python 2.4, and wxPython 2.6. At some point, the main window (with all the menus and buttons) stopped appearing on startup. This began happening with a previous version of wxPython, and with a previous wxGlade version. I just installed wxGlade 0.4 preview with hopes that it would make the issue go away, but I still cant get that window to ever show up. Its really strange, I tried forcing a Raise() call from main.py, and subsequent calls to Show(False) and Show(True) both return True as if its hiding and showing the window but nothing is changing. I feel like something in the windows registry needs to be erased or a persistent file between versions needs changing. Has anyone experienced this, or are there thoughts on how to deal with it? </font></div> <div> </div> <div><font face="Arial" size="2">thanks very much,</font></div> <div><font face="Arial" size="2">Tim Hirzel</font></div> <div> </div> </blockquote> </body> </html> |