Skip to content

Commit

Permalink
pequenos ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmboron committed Jan 30, 2021
1 parent e68cd9c commit f6a1a74
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
Binary file modified dbmehsys.db
Binary file not shown.
18 changes: 18 additions & 0 deletions principal.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,24 @@ def open_users_screen(self):
self.cbbPro_hor.setCurrentIndex(0)
self.user = UserWindow()
self.user.setWindowModality(Qt.ApplicationModal)
if not self.black:
self.user.setStyleSheet('')
self.black = False
else:
self.user.setStyleSheet(blackQss)
self.black = True
self.user.show()
self.cbbPro_hor.clear()

def open_addHor_screen(self):
self.cbbHor_hor.clear()
self.trabalho = TrabalhoWindow()
if not self.black:
self.trabalho.setStyleSheet('')
self.black = False
else:
self.trabalho.setStyleSheet(blackQss)
self.black = True
self.trabalho.show()

def change_style(self):
Expand All @@ -189,6 +201,12 @@ def change_style(self):

def open_sobre_screen(self):
self.sobre = SobreWindow()
if not self.black:
self.sobre.setStyleSheet('')
self.black = False
else:
self.sobre.setStyleSheet(blackQss)
self.black = True
self.sobre.show()

def on_menu_clientes(self):
Expand Down
8 changes: 4 additions & 4 deletions usuario.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ def on_btn_pes_usu_pressed(self):
self.table_user.setItem(row, 1, QTableWidgetItem(r[1]))
self.table_user.setItem(row, 2, QTableWidgetItem(r[2]))
self.table_user.setItem(row, 3, QTableWidgetItem(r[3]))
self.table_user.setItem(row, 4, QTableWidgetItem(r[4]))
self.table_user.setItem(row, 5, QTableWidgetItem(r[5]))
self.table_user.setItem(row, 6, QTableWidgetItem(r[6]))
self.table_user.setItem(row, 7, QTableWidgetItem(r[7]))
self.table_user.setItem(row, 4, QTableWidgetItem(str(r[4])[:-7] + '...'))
self.table_user.setItem(row, 5, QTableWidgetItem(str(r[5])))
self.table_user.setItem(row, 6, QTableWidgetItem(str(r[6])))
self.table_user.setItem(row, 7, QTableWidgetItem(str(r[7])))
row += 1
db.close()
except Exception as e:
Expand Down

0 comments on commit f6a1a74

Please sign in to comment.