Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80883

PySide 1.2.2 setMaxWidth and AeroSnap

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <juan0christian@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.134
X-Spam-Level *
X-Spam-Evidence '*H*': 0.74; '*S*': 0.01; 'width': 0.09; 'python': 0.11; 'def': 0.12; 'windows': 0.15; 'app': 0.19; 'module': 0.19; 'import': 0.22; "shouldn't": 0.24; 'code:': 0.26; 'message- id:@mail.gmail.com': 0.30; 'skip:q 20': 0.31; 'class': 0.32; 'skip:m 30': 0.32; 'another': 0.32; 'skip:_ 10': 0.34; "can't": 0.35; 'tool': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; "didn't": 0.36; 'skip:& 10': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'kind': 0.63; 'limit': 0.70; '600,': 0.84; 'look.': 0.84; 'why?': 0.91; 'anymore,': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=L7jDr+H0sZt9YJOsY4EZFgsEl+rY8pDelJkFKHv0nlk=; b=cFdl2kLsOOhjmlP4ElBNqFHFgpXSXvGP5v1pHnFxZdcI8ASArY9Sj2wrzFoQejlhLd t6esBPI4OiT2AUkl2Ox7fxT3sEFpJZNsXvHuB8lVnkE7jmh55CU/d21J6Kyy6Rar+XsF cv+Por8Foh//Smc5eNd+yYJuwGOh4Z9P8NYFxEaUZiNmRy1jx9BIwj25B7ksfuXn1u0k 10WcwMj8ELDMwuAvtIKYhMX0oE0JXMslTmli4kVwc1zrjwumryaQN0VBd45bGgCtX1+Z rPx/6YPKWe7reAT8Z332gBTpIeXKYRnbQVMYZ87bjcC2l5khQ2WYKIZPAimR5zhi16V0 p5xA==
X-Received by 10.140.43.196 with SMTP id e62mr26943885qga.10.1416153111515; Sun, 16 Nov 2014 07:51:51 -0800 (PST)
MIME-Version 1.0
From Juan Christian <juan0christian@gmail.com>
Date Sun, 16 Nov 2014 15:51:51 +0000
Subject PySide 1.2.2 setMaxWidth and AeroSnap
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=001a113a741628da610507fbd76d
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.15888.1416153119.18130.python-list@python.org> (permalink)
Lines 54
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416153119 news.xs4all.nl 2871 [2001:888:2000:d::a6]:41801
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80883

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

PySide 1.2.2
Python 3.4.2

Code:

from PySide.QtGui import *

class MainWindow(QWidget):
def __init__(self):
QWidget.__init__(self)
self.setMinimumSize(600, 700)
self.setMaximumWidth(600)
self.setLayout(QVBoxLayout())

* Call to this module in another module *
app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec_()

When I set the "setMaxWidth" I can't use the Windows AeroSnap anymore, why?

I didn't set a "setMaxHeight", so this shouldn't lock me from doing the
snap. Without the "setMaxWidth" the AeroSnap works as usual, but I need to
limit my width to 600, because I need my tool to have this kind of
"short-width, long-height" look.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

PySide 1.2.2 setMaxWidth and AeroSnap Juan Christian <juan0christian@gmail.com> - 2014-11-16 15:51 +0000

csiph-web