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


Groups > comp.lang.python > #80883 > unrolled thread

PySide 1.2.2 setMaxWidth and AeroSnap

Started byJuan Christian <juan0christian@gmail.com>
First post2014-11-16 15:51 +0000
Last post2014-11-16 15:51 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#80883 — PySide 1.2.2 setMaxWidth and AeroSnap

FromJuan Christian <juan0christian@gmail.com>
Date2014-11-16 15:51 +0000
SubjectPySide 1.2.2 setMaxWidth and AeroSnap
Message-ID<mailman.15888.1416153119.18130.python-list@python.org>

[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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web