示例#1
0
def main():
    app = wx.App()
    rootframe = wx.Frame(None)

    NavPanel(rootframe, testutil.Dummy("Controller"))

    rootframe.Show()
    app.MainLoop()
示例#2
0
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()
示例#5
0
 def onclick_reject_src(event):
     controller = testutil.Dummy("Reject Source Controller")
     RejectSourceDialog(panel, controller).Show()
示例#6
0
def main():
    app = wx.App()
    frame = MainFrame(testutil.Dummy("Controller"))
    frame.Show()
    wx.lib.inspection.InspectionTool().Show()
    app.MainLoop()
示例#7
0
 def onclick_launch(event):
     RetryDownloadDialog(panel, testutil.Dummy("Handler"),
                         "This is an error message!").Show()