~ubuntu-branches/ubuntu/wily/phatch/wily

« back to all changes in this revision

Viewing changes to phatch/pyWx/wxGlade/dialogs.py

  • Committer: Package Import Robot
  • Author(s): Olly Betts
  • Date: 2014-08-31 18:10:50 UTC
  • mfrom: (4.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20140831181050-bsuwtc59i0whjxcw
Tags: 0.2.7.1-3.1
* Non-maintainer upload.
* Update for wxpython3.0 (Closes: #758942):
  + New patch: wxpy3.0-compat.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
class ImageTreeDialog(wx.Dialog):
66
66
    def __init__(self, data, Data, headers, *args, **kwds):
67
67
        # begin wxGlade: ImageTreeDialog.__init__
68
 
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.THICK_FRAME
 
68
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX
69
69
        wx.Dialog.__init__(self, *args, **kwds)
70
70
        self.panel = wx.Panel(self, -1)
71
71
        self.browser = FolderFileBrowser(self.panel, -1, data, Data, headers)
232
232
class FilesDialog(wx.Dialog):
233
233
    def __init__(self, *args, **kwds):
234
234
        # begin wxGlade: FilesDialog.__init__
235
 
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.THICK_FRAME
 
235
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX
236
236
        wx.Dialog.__init__(self, *args, **kwds)
237
237
        self.icon = wx.StaticBitmap(self, -1, wx.NullBitmap)
238
238
        self.message = wx.StaticText(self, -1, _("Message"))
369
369
    gettext.install("app") # replace with the appropriate catalog name
370
370
 
371
371
    app = wx.PySimpleApp(0)
372
 
    wx.InitAllImageHandlers()
373
372
    aboutDialog = StatusDialog(None, -1, "")
374
373
    app.SetTopWindow(aboutDialog)
375
374
    aboutDialog.Show()