def __init__(self, parent, id, title=_("Welcome to"), client_version=u"*** unknown ***"): wx.Dialog.__init__(self, parent, id, title) self.panel = cLoginPanel(self, -1, isDialog=1, client_version=client_version) self.Fit() # needed for Windoze. self.Centre() self.SetIcon(gmTools.get_icon(wx=wx))
def __init__(self, nr_plugins): wx.ProgressDialog.__init__( self, title = _("GNUmed: configuring [%s] (%s plugins)") % (gmPraxis.gmCurrentPraxisBranch().active_workplace, nr_plugins), message = _("loading list of plugins "), maximum = nr_plugins, parent = None, style = wx.PD_ELAPSED_TIME ) self.SetIcon(gmTools.get_icon(wx = wx)) self.idx = 0 self.nr_plugins = nr_plugins self.prev_plugin = ""
def __init__(self, nr_plugins): wx.ProgressDialog.__init__( self, title=_("GNUmed: configuring [%s] (%s plugins)") % (gmPraxis.gmCurrentPraxisBranch().active_workplace, nr_plugins), message=_( "loading list of plugins "), maximum=nr_plugins, parent=None, style=wx.PD_ELAPSED_TIME) self.SetIcon(gmTools.get_icon(wx=wx)) self.idx = 0 self.nr_plugins = nr_plugins self.prev_plugin = ""
def __init__(self, parent, id, title=_("Welcome to"), client_version='*** unknown ***'): wx.Dialog.__init__(self, parent, id, title) self.panel = cLoginPanel(self, -1, isDialog=1, client_version=client_version) self.Fit() # needed for Windoze. self.Centre() self.SetIcon(gmTools.get_icon(wx=wx))
def __init__(self, parent, ID, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, version='???', debug=False): wx.Frame.__init__(self, parent, ID, title, pos, size, style) self.SetIcon(gmTools.get_icon(wx = wx)) box = wx.BoxSizer(wx.VERTICAL) if wx.Platform == '__WXMAC__': box.Add((0,0), 2) else: box.Add((0,0), 2) intro_txt=wx.StaticText(self, -1, _("Monty the Serpent && the FSF Present")) intro_txt.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL,False,'')) box.Add(intro_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0,0), 3) else: box.Add((0,0), 3) gm_txt=wx.StaticText(self, -1, "GNUmed") gm_txt.SetFont(wx.Font(30, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(gm_txt, 0, wx.ALIGN_CENTRE) motto_txt=wx.StaticText(self, -1, _("Free eMedicine")) motto_txt.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL,False,'')) box.Add(motto_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0,0), 4) else: box.Add((0,0), 4) ver_txt=wx.StaticText ( self, -1, _('Version %s%s brought to you by') % ( version, gmTools.bool2subst(debug, ' (%s)' % _('debug'), '') ) ) ver_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(ver_txt, 0, wx.ALIGN_CENTRE) admins_txt=wx.StaticText(self, -1, "") admins_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(admins_txt, 0, wx.ALIGN_CENTRE) self.win=ScrollTxtWin(self) box.Add(self.win, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0,0), 1) else: box.Add((0,0), 1) info_txt=wx.StaticText(self, -1, _("Please visit http://www.gnumed.org")) info_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(info_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0,0), 1) else: box.Add((0,0), 1) btn = wx.Button(self, ID_MENU , _("Close")) box.Add(btn,0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0,0), 1) else: box.Add((0,0), 1) wx.EVT_BUTTON(btn, ID_MENU, self.OnClose) self.SetAutoLayout(True) self.SetSizer(box) self.Layout()
def __init__(self, parent, ID, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, version='???', debug=False): wx.Frame.__init__(self, parent, ID, title, pos, size, style) self.SetIcon(gmTools.get_icon(wx=wx)) box = wx.BoxSizer(wx.VERTICAL) if wx.Platform == '__WXMAC__': box.Add((0, 0), 2) else: box.Add((0, 0), 2) intro_txt = wx.StaticText(self, -1, _("Monty the Serpent && the FSF Present")) intro_txt.SetFont( wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, '')) box.Add(intro_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0, 0), 3) else: box.Add((0, 0), 3) gm_txt = wx.StaticText(self, -1, "GNUmed") gm_txt.SetFont(wx.Font(30, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(gm_txt, 0, wx.ALIGN_CENTRE) motto_txt = wx.StaticText(self, -1, _("Free eMedicine")) motto_txt.SetFont( wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, '')) box.Add(motto_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0, 0), 4) else: box.Add((0, 0), 4) ver_txt = wx.StaticText( self, -1, _('Version %s%s brought to you by') % (version, gmTools.bool2subst(debug, ' (%s)' % _('debug'), ''))) ver_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(ver_txt, 0, wx.ALIGN_CENTRE) admins_txt = wx.StaticText(self, -1, "") admins_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(admins_txt, 0, wx.ALIGN_CENTRE) self.win = ScrollTxtWin(self) box.Add(self.win, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0, 0), 1) else: box.Add((0, 0), 1) info_txt = wx.StaticText(self, -1, _("Please visit http://www.gnumed.org")) info_txt.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL)) box.Add(info_txt, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0, 0), 1) else: box.Add((0, 0), 1) btn = wx.Button(self, ID_MENU, _("Close")) box.Add(btn, 0, wx.ALIGN_CENTRE) if wx.Platform == '__WXMAC__': box.Add((0, 0), 1) else: box.Add((0, 0), 1) wx.EVT_BUTTON(btn, ID_MENU, self.OnClose) self.SetAutoLayout(True) self.SetSizer(box) self.Layout()