Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97336
| References | <24851466-7de1-408f-a0a0-548d42d21ab4@googlegroups.com> <mailman.299.1443716363.28679.python-list@python.org> <0536254e-4101-4b7c-a848-61a5c3e1a064@googlegroups.com> |
|---|---|
| Date | 2015-10-02 15:25 +0200 |
| Subject | Re: PySide window does not resize to fit screen |
| From | Chris Warrick <kwpolska@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.339.1443792347.28679.python-list@python.org> (permalink) |
On 2 October 2015 at 15:10, Hedieh Ebrahimi <hemla21@gmail.com> wrote: > Thanks Laura, > > In my user interface I have many group boxes that are located inside the main widget. All the group boxes and their child widgets have fixed sizes. > > How can I use the width and height I get from availableGeometry or ScreenGeometry to multiply > > screenGeometry = QApplication.instance().desktop().screenGeometry() > availGeometry = QApplication.instance().desktop().availableGeometry() > width, height = availGeometry.width(), availGeometry.height() > > to resize my geometry by a ratio? Is this a good approach? > -- > https://mail.python.org/mailman/listinfo/python-list This is NOT a good approach. A good approach involves using a layout. See my previous e-mail for details. Geometry is not going to help you here, especially since you would need a ton of code to resize everything on **any** window size change event. And you especially do not need the screen size, because it would still hinder changing window sizes. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
PySide window does not resize to fit screen Hedieh Ebrahimi <hemla21@gmail.com> - 2015-10-01 06:44 -0700
Re: PySide window does not resize to fit screen Chris Warrick <kwpolska@gmail.com> - 2015-10-01 17:07 +0200
Re: PySide window does not resize to fit screen Laura Creighton <lac@openend.se> - 2015-10-01 18:19 +0200
Re: PySide window does not resize to fit screen Hedieh Ebrahimi <hemla21@gmail.com> - 2015-10-02 06:10 -0700
Re: PySide window does not resize to fit screen Chris Warrick <kwpolska@gmail.com> - 2015-10-02 15:25 +0200
Re: PySide window does not resize to fit screen Hedieh Ebrahimi <hemla21@gmail.com> - 2015-10-05 01:18 -0700
Re: PySide window does not resize to fit screen Laura Creighton <lac@openend.se> - 2015-10-05 12:51 +0200
Re: PySide window does not resize to fit screen Hedieh Ebrahimi <hemla21@gmail.com> - 2015-10-05 04:20 -0700
Re: PySide window does not resize to fit screen Chris Warrick <kwpolska@gmail.com> - 2015-10-05 15:32 +0200
Re: PySide window does not resize to fit screen Michael Torrie <torriem@gmail.com> - 2015-10-05 10:28 -0600
Re: PySide window does not resize to fit screen wxjmfauth@gmail.com - 2015-10-05 11:28 -0700
csiph-web