baseframe.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import wx
  4. import gettext
  5. class BaseFrame(wx.Frame):
  6. def __init__(self, *args, **kwds):
  7. kwds["style"] = wx.DEFAULT_FRAME_STYLE
  8. super(BaseFrame, self).__init__(*args, **kwds)
  9. self.set_properties()
  10. self.__do_layout()
  11. def set_properties(self):
  12. self.SetTitle(_("Data Preprocessor"))
  13. self.SetSize((806, 584))
  14. def __do_layout(self):
  15. pass
  16. def OnLaunchKill(self, event): # wxGlade: MyFrame.<event_handler>
  17. print "Event handler 'OnLaunchKill' not implemented!"
  18. event.Skip()
  19. def OnSetupLocalizer(self, event): # wxGlade: MyFrame.<event_handler>
  20. print "Event handler 'OnSetupLocalizer' not implemented!"
  21. event.Skip()
  22. def OnCalibrationPublisher(self, event): # wxGlade: MyFrame.<event_handler>
  23. print "Event handler 'OnCalibrationPublisher' not implemented!"
  24. event.Skip()
  25. def OnLamp(self, event): # wxGlade: MyFrame.<event_handler>
  26. print "Event handler 'OnLamp' not implemented!"
  27. event.Skip()
  28. def OnIndi(self, event): # wxGlade: MyFrame.<event_handler>
  29. print "Event handler 'OnIndi' not implemented!"
  30. event.Skip()
  31. def OnGear(self, event): # wxGlade: MyFrame.<event_handler>
  32. print "Event handler 'OnGear' not implemented!"
  33. event.Skip()
  34. def OnQuery(self, event): # wxGlade: MyFrame.<event_handler>
  35. print "Event handler 'OnQuery' not implemented!"
  36. event.Skip()
  37. def OnROSbagPlay(self, event): # wxGlade: MyFrame.<event_handler>
  38. print "Event handler 'OnROSbagPlay' not implemented!"
  39. event.Skip()
  40. def OnFtrace(self, event): # wxGlade: MyFrame.<event_handler>
  41. print "Event handler 'OnFtrace' not implemented!"
  42. event.Skip()
  43. def OnEcho(self, event): # wxGlade: MyFrame.<event_handler>
  44. print "Event handler 'OnEcho' not implemented!"
  45. event.Skip()
  46. def OnRefreshTopics(self, event): # wxGlade: MyFrame.<event_handler>
  47. print "Event handler 'OnRefreshTopics' not implemented!"
  48. event.Skip()
  49. class MyApp(wx.App):
  50. def OnInit(self):
  51. wx.InitAllImageHandlers()
  52. frame_1 = BaseFrame(None, wx.ID_ANY, "")
  53. self.SetTopWindow(frame_1)
  54. frame_1.Show()
  55. return 1
  56. if __name__ == "__main__":
  57. gettext.install("app")
  58. app = MyApp(0)
  59. app.MainLoop()