From 13ac116d6347cbfaf156e46ef81c4a9d2f442cf8 Mon Sep 17 00:00:00 2001 From: Gyedo Jeon Date: Tue, 22 Jul 2008 21:45:05 +0000 Subject: [PATCH] Made appname width, height can be overridden --- direct/src/wxwidgets/WxAppShell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/wxwidgets/WxAppShell.py b/direct/src/wxwidgets/WxAppShell.py index 797fef1af8..322a1a40f7 100755 --- a/direct/src/wxwidgets/WxAppShell.py +++ b/direct/src/wxwidgets/WxAppShell.py @@ -23,6 +23,10 @@ class WxAppShell(wx.Frame): def __init__(self, *args, **kw): # 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) # Initialize the application