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: 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 Date: Sun, 16 Nov 2014 15:51:51 +0000 Subject: PySide 1.2.2 setMaxWidth and AeroSnap To: Python 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --001a113a741628da610507fbd76d Content-Type: text/plain; charset=UTF-8 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. --001a113a741628da610507fbd76d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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(QV= BoxLayout())

* Call to this module in another modu= le *
app =3D QApplication(sys.argv)
window =3D Mai= nWindow()
window.show()
app.exec_()
When I set the "setMaxWidth" I can't use the Wind= ows AeroSnap anymore, why?

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