Hy. I’m new in python as well as in linux. I’v nstalled python-wxgtk2.8
package, and IDLE on Ubuntu 7.10. When i start Idle and create new
Document , make my aplication run it, all Idle closes with all it’s
windows. Same think happnes when writing in idle import wx, app =
wx.App(), wx= wx.Frame(None), when putting last bracket, independent to
what’s written inside. Please help! Thanks!
Try running idle from a terminal window
idle-python2.4 (or whatever version you are running)
You'll probably get an error message on the terminal window.
Secondly, your line wx = wx.Frame will cause you problems. When you
import wx, the object 'wx' refers to the wx module. When you execute wx
= wx.Frame(), the object 'wx' now refers to the Frame object, which is
not what you want. However, to Python, this is a perfectly acceptable
operation. Just use some other variable name.
Hope this helps,
Mark
···
On Wed, 2007-11-28 at 21:51 +0100, Robert Pofuk wrote:
Hy. I'm new in python as well as in linux. I'v nstalled
python-wxgtk2.8 package, and IDLE on Ubuntu 7.10. When i start Idle
and create new Document , make my aplication run it, all Idle closes
with all it's windows. Same think happnes when writing in idle import
wx, app = wx.App(), wx= wx.Frame(None), when putting last bracket,
independent to what's written inside. Please help! Thanks!