Exemplo n.º 1
0
 def OnInit(self):
     self.frame = MainWindow(None,
                             -1,
                             title='IOTA v.{}'.format(iota_version))
     self.frame.SetMinSize(self.frame.GetEffectiveMinSize())
     self.frame.SetPosition((150, 150))
     self.frame.Show(True)
     self.SetTopWindow(self.frame)
     return True
Exemplo n.º 2
0
class MainApp(wx.App):
    ''' App for the main GUI window  '''
    def OnInit(self):
        self.frame = MainWindow(None,
                                -1,
                                title='IOTA v.{}'.format(iota_version))
        self.frame.SetMinSize(self.frame.GetEffectiveMinSize())
        self.frame.SetPosition((150, 150))
        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return True
Exemplo n.º 3
0
    def OnInit(self):
        self.frame = MainWindow(None,
                                -1,
                                title='IOTA v.{}'.format(iota_version))
        self.frame.SetMinSize(self.frame.GetEffectiveMinSize())

        # Find mouse position and open window there
        mx, my = wx.GetMousePosition()
        self.frame.SetPosition((mx, my))

        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return True
Exemplo n.º 4
0
    def OnInit(self):
        self.frame = MainWindow(None,
                                -1,
                                title='IOTA v.{}'.format(iota_version))
        self.frame.SetMinSize(self.frame.GetEffectiveMinSize())

        # Find mouse position and open window there
        mx, my = wx.GetMousePosition()
        self.frame.SetPosition((mx, my))

        # Read command-line options if any and populate frame accordingly
        self.frame.read_command_line_options()

        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return True