mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-05 08:51:19 -05:00
Fix Typerror for python 2.7, in window.restoreState function
This commit is contained in:
parent
96590ea2d3
commit
369e479f48
@ -171,12 +171,9 @@ def main():
|
||||
|
||||
def read_settings(window):
|
||||
settings = QSettings('QDarkStyle', 'QDarkStyle Example')
|
||||
pt = QPoint(200, 200)
|
||||
sz = QSize(400, 400)
|
||||
bt = QByteArray()
|
||||
pos = settings.value('pos', pt)
|
||||
size = settings.value('size', sz)
|
||||
state = settings.value('state', bt)
|
||||
pos = settings.value('pos', window.pos())
|
||||
size = settings.value('size', window.size())
|
||||
state = settings.value('state', window.saveState())
|
||||
window.restoreState(state)
|
||||
window.resize(size)
|
||||
window.move(pos)
|
||||
|
Loading…
Reference in New Issue
Block a user