Browse Source

Made appname width, height can be overridden

Gyedo Jeon 17 years ago
parent
commit
13ac116d63
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/wxwidgets/WxAppShell.py

+ 4 - 0
direct/src/wxwidgets/WxAppShell.py

@@ -23,6 +23,10 @@ class WxAppShell(wx.Frame):
 
 
     def __init__(self, *args, **kw):
     def __init__(self, *args, **kw):
         # Initialize the base class
         # Initialize the base class
+        if not kw.get(''):
+            kw['title'] = self.appname
+        if not kw.get('size'):
+            kw['size'] = wx.Size(self.frameWidth, self.frameHeight)
         wx.Frame.__init__(self, None, -1, *args, **kw)
         wx.Frame.__init__(self, None, -1, *args, **kw)
 
 
         # Initialize the application
         # Initialize the application