Skip to content

Commit

Permalink
little debugging
Browse files Browse the repository at this point in the history
* added ifNotGenerated flag set to False after generating RSA keys
* added transparent background to editKey window
* changed text representation of ERROR popup
  • Loading branch information
mattix1710 committed Jun 21, 2022
1 parent edbb764 commit 73161c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions digitalSignatureTRNG_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def editKey(self, instance):
#create TextInput and Button for saving
self.editText = TextInput(
hint_text = 'Here should be your RSA public key',
text = self.currentPublicKey,
text = self.currentPublicKey,
size_hint=(1, 0.8))

layoutPopUpButtonsBox = BoxLayout(size_hint=(1,0.2))
Expand All @@ -514,6 +514,7 @@ def editKey(self, instance):
title = 'Edit RSA public key',
content = relative,
size_hint=(0.8,0.8),
background_color = [0, 0, 0, 0.9],
auto_dismiss=False,
)

Expand Down Expand Up @@ -595,6 +596,7 @@ def launchGenerator(self, instance):
print("===================================================")

#exit from this function and dismiss INFO popup
self.ifNotGenerated = False
self.generatingRSA = False
self.enableAllWidgets()
self.generatePopup.dismiss()
Expand Down Expand Up @@ -631,7 +633,8 @@ def hashReceived(self, instance):
print("ERROR: original message not hashed!") # before HASHing the original message
errorHashingMessage = Label(
size_hint = (1, 0.9),
text = 'First hash the original message (step 4)',
text = 'First hash the original message\n(step 4)',
halign = 'center',
font_name = Constants.MAIN_FONT_LOCATION,
font_size = '30sp'
)
Expand Down

0 comments on commit 73161c9

Please sign in to comment.