Hi,
I have condensed my problem in the following lines of code,
import wx
class MainWindow(wx.Frame):
def init(self,parent,id,title):
wx.Frame.__init__(self,parent,wx.ID_ANY, title, size = (-1,-1),
style=wx.DEFAULT_FRAME_STYLE|
wx.NO_FULL_REPAINT_ON_RESIZE |wx.MAXIMIZE)
self.Show(True)
if name == “main”:
app = wx.App(0)
frame = MainWindow(None, -1, “Test”)
app.MainLoop()
If I run this script using python 2.4 on windows XP, I get an empty frame displayed maximized - as expected. However, if I convert this into an executable using this setup.py
from distutils.core import setup
import py2exe
setup(windows=[“testframe.py”],)
then, the window which appears on running the executable is not maximized. It runs as if I have not specified the wx.MAXIMIZE flag at all?
Can someone please help me understand why?
Interestingly, if I run the script from ipython, it also does not show the window maximized.
thanks.
Rama