Hi
i am making a simle gui using wxpython and here is the script
import wx
class bide(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "just a test", pos=(0, 0), size=wx.DisplaySize())
panel = wx.Panel(self, -1)
statusBar = self.CreateStatusBar()
toolbar = self.CreateToolBar()
#toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),"New", "Long help for 'New'")
toolbar.Realize()
menuBar = wx.MenuBar()
menu1 = wx.Menu()
menu1.Append(1, "&New Project","")
menu1.Append(2, "&Open Project", "")
menu1.Append(3, "Exit", "")
menuBar.Append(menu1, "&File")
menu2 = wx.Menu()
menu2.Append(11, "&Copy", "Copy in status bar")
menu2.Append(22, "C&ut", "")
menu2.Append(33, "Paste", "")
menu2.AppendSeparator()
menu2.Append(wx.NewId(), "&Options...", "Display Options")
menuBar.Append(menu2, "&Edit")
self.SetMenuBar(menuBar)
self.Bind(wx.EVT_MENU,self.onQuit,id=3)
def onQuit(self,event):
self.Close()
if __name__== '__main__':
app=wx.PySimpleApp()
frame=bide()
frame.Show(True)
app.MainLoop()
i am converting this to an exe using this code
from distutils.core import setup
import py2exe
setup(console=['bide.py'])
Now when i am running it from the generated exe... the console window also pops up. i want the console window to be running in the background. any suggestions?
thanks in advance