Refactor: sorting methods, and make some

things clearer
This commit is contained in:
Micke Nordin 2021-07-09 13:33:02 +02:00
parent 17b78797dc
commit c541c60aa9
Signed by untrusted user who does not match committer: micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -92,6 +92,7 @@ class PassUi(wx.Frame):
@redraw
def add_init(self):
"""add_init"""
select_label: str = "Select GPG Key"
if self.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)
if self.gpg_key:
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(git_btn, 0, wx.EXPAND) # pylint: disable=no-member
self.Bind(wx.EVT_BUTTON,