Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows all maximized #89

Open
jjgalvez opened this issue Jan 23, 2019 · 0 comments
Open

windows all maximized #89

jjgalvez opened this issue Jan 23, 2019 · 0 comments

Comments

@jjgalvez
Copy link

jjgalvez commented Jan 23, 2019

unless I get a geometry apps are full screen. To fix I modified start_app to include a maximize and a minimize option, and set the default to showNormal. Please consider fixing this "bug"

`def start_app(ClassObject, geometry=None, maximize=False, minimize=False, stylesheet=None):
from confapp import conf

app = QApplication(sys.argv)

conf += 'pyforms_gui.settings'

mainwindow = StandAloneContainer(ClassObject)

myapp = mainwindow.centralWidget()

if geometry is not None:
    mainwindow.show()
    mainwindow.setGeometry(*geometry)
elif maximize:
    mainwindow.showMaximized()
elif minimize:
    mainwindow.showMinimized()
else:
    mainwindow.showNormal()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant