From Beefy Bee, 1 Year ago, written in Python.
This paste will go to meet its maker in 1 Second.
Embed
  1. # -*- coding: utf-8 -*-
  2.  
  3. import wx
  4. import gui
  5.  
  6.  
  7. # Extend the gui with some new functionality
  8. class MyFrame(gui.MainForm):
  9.     def __init__(self, parent, title=""):
  10.         super(MyFrame, self).__init__(parent)
  11.         self.bitmap = wx.Bitmap('apply.png')
  12.         ico = wx.Icon("apply.png")
  13.         self.SetIcon(ico)
  14.  
  15.     def OnOpen(self, event):
  16.         msg = wx.MessageDialog(self, 'Open file', 'Mensaje importante', style=wx.OK | wx.CENTRE)
  17.         msg.ShowModal()
  18.  
  19.  
  20. # Create wxpython app
  21. class MyApp(wx.App):
  22.     def OnInit(self):
  23.         self.frame = MyFrame(None, title='dfhlog v0.1')
  24.         self.SetTopWindow(self.frame)
  25.         self.frame.Show(True)
  26.         print("wxApp created.")
  27.  
  28.         return True
  29.  
  30.  
  31. if __name__ == "__main__":
  32.     app = MyApp()  # do not redirect stdout to the gui
  33.     app.MainLoop()