Re: [PyQt] non ascii names in QObject?

2011-11-24 Thread Hans-Peter Jansen
On Thursday 24 November 2011, 12:19:09 Victor Varvariuc wrote: > #!/usr/bin/env python3 > > from PyQt4 import QtGui, QtCore, uic > > class Form(QtGui.QDialog): > > def __init__(self, parentWidget): > super().__init__(parentWidget) > self.setupUi() > > def setupUi(self): >

Re: [PyQt] Resizing window to smartly fit the contents

2011-11-24 Thread Matt Newell
On Thursday, November 24, 2011 09:49:51 AM Tom Bennett wrote: > Hi Tayfun, > > On Thu, Nov 24, 2011 at 2:26 AM, Tayfun Kayhan wrote: > > Let *self.win* be your widget, then *self.win.sizeHint()* returns the > > ideal or recommended size of your widget. > > *self.win.minimumSizeHint()* returns the

Re: [PyQt] Resizing window to smartly fit the contents

2011-11-24 Thread Tom Bennett
Hi Tayfun, On Thu, Nov 24, 2011 at 2:26 AM, Tayfun Kayhan wrote: > Let *self.win* be your widget, then *self.win.sizeHint()* returns the > ideal or recommended size of your widget. > *self.win.minimumSizeHint()* returns the minimum recommended size. you > can set these to resize your widget. > >

[PyQt] non ascii names in QObject?

2011-11-24 Thread Victor Varvariuc
#!/usr/bin/env python3 from PyQt4 import QtGui, QtCore, uic class Form(QtGui.QDialog): def __init__(self, parentWidget): super().__init__(parentWidget) self.setupUi() def setupUi(self): uic.loadUi('test.ui', self) def тест(self): '''This method has n

Re: [PyQt] Resizing window to smartly fit the contents

2011-11-24 Thread Tayfun Kayhan
Let self.win be your widget, then self.win.sizeHint() returns the ideal or recommended size of your widget.  self.win.minimumSizeHint() returns the minimum recommended size. you can set these to resize your widget. From: Tom Bennett To: pyqt@riverbankcomputing