Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97336
| Path | csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <kwpolska@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'width': 0.07; 'cc:addr :python-list': 0.09; 'subject:not': 0.11; 'size,': 0.13; 'resize': 0.16; 'skip:q 50': 0.16; 'subject:screen': 0.16; 'width,': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cc:no real name:2**0': 0.22; 'header :In-Reply-To:1': 0.24; 'chris': 0.26; 'message- id:@mail.gmail.com': 0.27; 'interface': 0.29; 'url:mailman': 0.30; 'code': 0.30; 'window': 0.30; 'fixed': 0.31; 'especially': 0.32; 'screen': 0.32; 'url:python': 0.33; 'url:listinfo': 0.34; 'changing': 0.34; 'previous': 0.34; 'received:google.com': 0.35; 'located': 0.36; 'url:org': 0.36; 'child': 0.36; 'event.': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'url:mail': 0.40; 'still': 0.40; 'layout.': 0.84; 'approach.': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fScRkj4sKw7cQLatEXufrQexuM7m6TQ8oXTtW+Snxj4=; b=mfeXzUYb2KYa+SJWzw9QICcl0FhXBsyUa8HLRC+hB0qGMAUI0SB9cg3RFK8UU34jPG dS9Ld1qav7aU4iOqYZkNLNmleIJaaLucPXj3gBmTKQHMFMDuI05EL2/xwRzxb9hsu7cd POe8/C65p34Y15+SiO9fH6+M0kHP84xYqWKY8Vut8QPfbs1XOZokY721O6zPa3VhfBTR Uqkt9r1ZLYMhwb+9R0zFoCZRVCdyztRLLbjX1xYDnnQ3HbJHzVgULFfUWyVsgyVslCzr /E1g+WkXe/A5NjeRbe7M0L6POXoCvLHjl0kWctIjn6Ym0fCPvR8tO/KZ32Gx4yDUto0L X/PA== |
| MIME-Version | 1.0 |
| X-Received | by 10.31.15.212 with SMTP id 203mr8473993vkp.30.1443792344527; Fri, 02 Oct 2015 06:25:44 -0700 (PDT) |
| In-Reply-To | <0536254e-4101-4b7c-a848-61a5c3e1a064@googlegroups.com> |
| References | <24851466-7de1-408f-a0a0-548d42d21ab4@googlegroups.com> <mailman.299.1443716363.28679.python-list@python.org> <0536254e-4101-4b7c-a848-61a5c3e1a064@googlegroups.com> |
| Date | Fri, 2 Oct 2015 15:25:44 +0200 |
| Subject | Re: PySide window does not resize to fit screen |
| From | Chris Warrick <kwpolska@gmail.com> |
| To | Hedieh Ebrahimi <hemla21@gmail.com> |
| Cc | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.339.1443792347.28679.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1443792347 news.xs4all.nl 23854 [2001:888:2000:d::a6]:38567 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:97336 |
Show key headers only | View raw
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