Refactor: sorting methods, and make some

things clearer
main
Micke Nordin 3 years ago
parent 17b78797dc
commit c541c60aa9
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -92,6 +92,7 @@ class PassUi(wx.Frame):
@redraw @redraw
def add_init(self): def add_init(self):
"""add_init"""
select_label: str = "Select GPG Key" select_label: str = "Select GPG Key"
if self.gpg_key: if self.gpg_key:
label: wx.StaticText = wx.StaticText(self.pnl, label="Selected GPG key:") label: wx.StaticText = wx.StaticText(self.pnl, label="Selected GPG key:")
@ -105,7 +106,7 @@ class PassUi(wx.Frame):
lambda event: self.gpg_button_clicked(), gpg_btn) lambda event: self.gpg_button_clicked(), gpg_btn)
if self.gpg_key: if self.gpg_key:
init_btn: wx.Button = wx.Button(self.pnl, label="Init Local Password Store") init_btn: wx.Button = wx.Button(self.pnl, label="Init Local Password Store")
git_btn: wx.Button = wx.Button(self.pnl, label="Init Git Password Store") git_btn: wx.Button = wx.Button(self.pnl, label="Clone Remote Password Store From Git")
self.sizer.Add(init_btn, 0, wx.EXPAND) # pylint: disable=no-member self.sizer.Add(init_btn, 0, wx.EXPAND) # pylint: disable=no-member
self.sizer.Add(git_btn, 0, wx.EXPAND) # pylint: disable=no-member self.sizer.Add(git_btn, 0, wx.EXPAND) # pylint: disable=no-member
self.Bind(wx.EVT_BUTTON, self.Bind(wx.EVT_BUTTON,

Loading…
Cancel
Save