Skip to content

Commit

Permalink
Update [KRIS_gui.py]
Browse files Browse the repository at this point in the history
Correcting a bug with the path bar
  • Loading branch information
lasercata authored Mar 6, 2021
1 parent e73d945 commit 7c9893a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions KRIS_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def chk_ciph(cipher):


#------path bar
tab_cipher_lay.addWidget(self.create_path_bar(tab=2, mn_size=610), 0, 0, 1, -1)#, alignment=Qt.AlignTop)
tab_cipher_lay.addWidget(self.create_path_bar(tab=0, mn_size=610), 0, 0, 1, -1)#, alignment=Qt.AlignTop)

#------widgets
#---text editor e
Expand Down Expand Up @@ -812,7 +812,7 @@ def change_dir(self):
QMessageBox.about(QWidget(), tr('!!! Directory error !!!'), tr('The directory was NOT found !!!'))
return False

for tab in range(5):
for tab in range(1):
self.path_ent[tab].setText(getcwd()) #actualise every path bar.

for text_editor in self.lst_txt:
Expand All @@ -825,7 +825,7 @@ def change_dir_up(self):
'''Change the current directory up'''

chdir('..')
for tab in range(5):
for tab in range(1):
self.path_ent[tab].setText(getcwd()) #actualise every path bar.

for text_editor in self.lst_txt:
Expand All @@ -849,7 +849,7 @@ def change_dir_gui(self):
QMessageBox.about(QWidget(), tr('!!! Directory error !!!'), tr('The directory was NOT found !!!'))
return False

for tab in range(5):
for tab in range(1):
self.path_ent[tab].setText(getcwd()) #actualise every path bar.

for text_editor in self.lst_txt:
Expand Down

0 comments on commit 7c9893a

Please sign in to comment.