Skip to content

Commit

Permalink
atualização do pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Davipcrs committed Jan 10, 2023
1 parent c86cd53 commit bfedea1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ def main():
window = MainWindow()
window.show()

with open("style/dark/darktheme.qss", "r") as f:
_style = f.read()
app.setStyleSheet(_style)
try:
with open("style/dark/darktheme.qss", "r") as f:
_style = f.read()
app.setStyleSheet(_style)

except:
with open("data\darktheme.qss") as f:
_style = f.read()
app.setStyleSheet(_style)



Expand All @@ -28,3 +34,4 @@ def main():
main()


##pyinstaller --windowed .\gui\main.py --paths C:\Users\davip\Documents\Projetos\2DpsNotes --add-data 'C:\Users\davip\Documents\Projetos\2DpsNotes\style\dark\darktheme.qss;data'

0 comments on commit bfedea1

Please sign in to comment.