Skip to content

Commit 490bf1b

Browse files
committed
Fixed logo position
1 parent e4c8ab6 commit 490bf1b

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.idea
22
__pycache__
3+
build
4+
dist

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import multiprocessing
1010
from presence import set_discord_rpc_filename, update_presence
1111
from QImageWidget import QImageWidget
12+
1213
# Give imports up
1314

1415
Ui_MainWindow, QtBaseClass = uic.loadUiType('EditorUI.ui')
@@ -107,7 +108,7 @@ def resizeEvent(self, event):
107108
self.codeEdit.resize(self.size().width() - codepos.left() - 10, self.size().height() - codepos.top() - 30)
108109
self.foldersList.resize(folderpos.width(), self.size().height() - folderpos.top() - 30)
109110
if not self.codeEdit.isVisible():
110-
self.logo.setScale((self.width() // 1.6, self.height() // 1.6), Qt.KeepAspectRatio)
111+
self.logo.setScale((self.height() // 1.6, self.height() // 1.6), Qt.KeepAspectRatio)
111112
self.logo.move((self.width() - self.logo.width()) // 2, (self.height() - self.logo.height()) // 2)
112113

113114
# Themes
@@ -248,6 +249,7 @@ def log_uncaught_exceptions(ex_cls, e, tb): # Let errors cry
248249

249250
if __name__ == '__main__':
250251
# Give presence up
252+
multiprocessing.freeze_support()
251253
p = multiprocessing.Process(target=update_presence)
252254
#p.daemon = True
253255
p.start()

main.spec

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
block_cipher = None
5+
6+
7+
a = Analysis(
8+
['main.py'],
9+
pathex=[],
10+
binaries=[],
11+
datas=[],
12+
hiddenimports=['codeeditor'],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
16+
excludes=[],
17+
win_no_prefer_redirects=False,
18+
win_private_assemblies=False,
19+
cipher=block_cipher,
20+
noarchive=False,
21+
)
22+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
23+
24+
exe = EXE(
25+
pyz,
26+
a.scripts,
27+
a.binaries,
28+
a.zipfiles,
29+
a.datas,
30+
[],
31+
name='main',
32+
debug=False,
33+
bootloader_ignore_signals=False,
34+
strip=False,
35+
upx=True,
36+
upx_exclude=[],
37+
runtime_tmpdir=None,
38+
console=False,
39+
disable_windowed_traceback=False,
40+
argv_emulation=False,
41+
target_arch=None,
42+
codesign_identity=None,
43+
entitlements_file=None,
44+
icon='icon.ico',
45+
)

0 commit comments

Comments
 (0)