Re: import doesn't work as i want

2005-02-01 Thread John Lenton
On Mon, Jan 31, 2005 at 04:52:24PM +0100, Olivier Noblanc ATOUSOFT wrote: > Hello, > > In the botom of this post you will see my source code. > > The problem is when i launch main.py that doesn't make anything why > ? I'm guessing you don't have an __init__.py in inc/ -- John Lenton ([EMAIL PR

Re: import doesn't work as i want

2005-01-31 Thread Fredrik Lundh
Olivier Noblanc wrote: > how to move in function ? how to put code in a function? the same way you put code in a method. change if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() frame_1 = MyFrame(None, -1, "") app.SetTopWindow(frame_1) frame_1.Sho

Re: import doesn't work as i want

2005-01-31 Thread Olivier Noblanc ATOUSOFT
how to move in function ? "Fredrik Lundh" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Olivier Noblanc wrote: > >> In the botom of this post you will see my source code. >> >> The problem is when i launch main.py that doesn't make anything why ? > > the "if __name__" s

Re: import doesn't work as i want

2005-01-31 Thread Fredrik Lundh
Olivier Noblanc wrote: > In the botom of this post you will see my source code. > > The problem is when i launch main.py that doesn't make anything why ? the "if __name__" statement checks the name of the module. if you run Python file as a script, by passing a filename to the python interpreter

import doesn't work as i want

2005-01-31 Thread Olivier Noblanc ATOUSOFT
Hello, In the botom of this post you will see my source code. The problem is when i launch main.py that doesn't make anything why ? Thanks olivier noblanc Atousoft http://www.logiciel-erp.fr I have main.py : - import wx import inc.importlist --