def main(): app = wx.App() rootframe = wx.Frame(None) NavPanel(rootframe, testutil.Dummy("Controller")) rootframe.Show() app.MainLoop()
def main(): class DummyModel(object): def get_reading_data(self): return [("X", 111), ("Y", 222)] def get_header_data_list(self): return [("FWHM", "3.00"), ("SNR", 10)] app = wx.App() frame = MainFrame(DummyModel(), testutil.Dummy("Controller")) frame.Show() wx.lib.inspection.InspectionTool().Show() app.MainLoop()
def onclick_accept_src(event): controller = testutil.Dummy("Accept Source Controller") note1_choices = ["n1a", "n1b"] note2_choices = ["n2a", "n2b", "n2c"] AcceptSourceDialog(panel, controller, "provisional-target_name-1", "2012 01 01", 27.213, 31.2123, 123.4, "A", note1_choices=note1_choices, note2_choices=note2_choices).Show()
def onclick_launch(event): CertificateDialog(panel, testutil.Dummy("Handler"), "This is an error message!").Show()
def onclick_reject_src(event): controller = testutil.Dummy("Reject Source Controller") RejectSourceDialog(panel, controller).Show()
def main(): app = wx.App() frame = MainFrame(testutil.Dummy("Controller")) frame.Show() wx.lib.inspection.InspectionTool().Show() app.MainLoop()
def onclick_launch(event): RetryDownloadDialog(panel, testutil.Dummy("Handler"), "This is an error message!").Show()