mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 14:06:07 -04:00
Made code indentation to comply with PEP8
This commit is contained in:
@@ -4,33 +4,33 @@ import wx
|
||||
from multiplatform_widgets import widgets
|
||||
|
||||
class accountPanel(wx.Panel):
|
||||
def __init__(self, parent, name=None):
|
||||
super(accountPanel, self).__init__(parent=parent)
|
||||
self.name = name
|
||||
self.type = "account"
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
self.login = wx.Button(self, -1, _(u"Login"))
|
||||
sizer.Add(self.login, 0, wx.ALL, 5)
|
||||
self.autostart_account = wx.CheckBox(self, -1, _(u"Log in automatically"))
|
||||
sizer.Add(self.autostart_account, 0, wx.ALL, 5)
|
||||
self.SetSizer(sizer)
|
||||
def __init__(self, parent, name=None):
|
||||
super(accountPanel, self).__init__(parent=parent)
|
||||
self.name = name
|
||||
self.type = "account"
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
self.login = wx.Button(self, -1, _(u"Login"))
|
||||
sizer.Add(self.login, 0, wx.ALL, 5)
|
||||
self.autostart_account = wx.CheckBox(self, -1, _(u"Log in automatically"))
|
||||
sizer.Add(self.autostart_account, 0, wx.ALL, 5)
|
||||
self.SetSizer(sizer)
|
||||
|
||||
def change_login(self, login=True):
|
||||
if login == True:
|
||||
self.login.SetLabel(_(u"Login"))
|
||||
else:
|
||||
self.login.SetLabel(_(u"Logout"))
|
||||
def change_login(self, login=True):
|
||||
if login == True:
|
||||
self.login.SetLabel(_(u"Login"))
|
||||
else:
|
||||
self.login.SetLabel(_(u"Logout"))
|
||||
|
||||
def change_autostart(self, autostart=True):
|
||||
self.autostart_account.SetValue(autostart)
|
||||
def change_autostart(self, autostart=True):
|
||||
self.autostart_account.SetValue(autostart)
|
||||
|
||||
def get_autostart(self):
|
||||
return self.autostart_account.GetValue()
|
||||
def get_autostart(self):
|
||||
return self.autostart_account.GetValue()
|
||||
|
||||
class emptyPanel(wx.Panel):
|
||||
def __init__(self, parent, name):
|
||||
super(emptyPanel, self).__init__(parent=parent, name=name)
|
||||
self.name = name
|
||||
self.type = "account"
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
self.SetSizer(sizer)
|
||||
def __init__(self, parent, name):
|
||||
super(emptyPanel, self).__init__(parent=parent, name=name)
|
||||
self.name = name
|
||||
self.type = "account"
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
self.SetSizer(sizer)
|
||||
|
Reference in New Issue
Block a user