mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Made appname width, height can be overridden
This commit is contained in:
parent
1a8870a03a
commit
13ac116d63
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user