Re: [PyQt] How to translate strings after loading *.ui?

2010-06-17 Thread Ruslan Popov
I understand that there is a simple way - just assign right string when UI has loaded. But may be there is UI-way... On Thu, Jun 17, 2010 at 10:16 PM, Ruslan Popov wrote: > Hi all, > > I work on simple wizard. I define each type of dialog as *.ui and have the > translation problem. > How can I tr

[PyQt] PyQt Maya 2011

2010-06-17 Thread Taylor Carrasco
Has anyone successfully found a way to wrap Maya's windows in a way they can be minimized or can be pushed to the back? For instance, the script editor no longer has a minimize button on the top right and if bring up the script editor and click behind it on Maya's main canvas, the script editor st

[PyQt] PyQt build with mayapy

2010-06-17 Thread nickco
Set QMAKESPEC, DTDIR and DYLD_LIBRARy_PATH to my qt install directory (built from source and seems to be a good build (all files are there)) and I'm gettting the following failure dyld: library not loaded: libQtCore.4.dylib failure during the configure stage on OS X 10.6 Any clues? I saw thi

Re: [PyQt] How to get index of splitter

2010-06-17 Thread Russell Valentine
Frans, I believe before show is called no sizes are figured out of any of the widgets, unless they were set manually. I think it'll try to do it's best to comply with all the widgets current size policies. Usually whatever policy is default is good enough for me, only once in a while do I change

Re: [PyQt] newbie question about slots and signals

2010-06-17 Thread Robin Wittler
On 06/17/2010 08:07 PM, Darryl Wallace wrote: Thanks for the quick answer. The page doesn't load because of the proxy settings. In my enviroment the page loads (because of the existing proxy) but "load finished" is not printed. ;) With a stopped proxy (but enabled proxy settings) the "load finis

[PyQt] How to translate strings after loading *.ui?

2010-06-17 Thread Ruslan Popov
Hi all, I work on simple wizard. I define each type of dialog as *.ui and have the translation problem. How can I translate string defined in *.ui? For instance, I want to see this: Make your choice: as this when using russian locale: Сделай

Re: [PyQt] newbie question about slots and signals

2010-06-17 Thread Darryl Wallace
> Thanks for the quick answer. > The page doesn't load because of the proxy settings. > In my enviroment the page loads (because of the existing proxy) > but "load finished" is not printed. ;) > > With a stopped proxy (but enabled proxy settings) the "load finished" string > will be printed (and th

Re: [PyQt] newbie question about slots and signals

2010-06-17 Thread Robin Wittler
On 06/17/2010 07:52 PM, Darryl Wallace wrote: Hello -Original Message- From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of Robin Wittler Sent: June-17-10 1:22 PM To: pyqt@riverbankcomputing.com Subject: [PyQt] newbie question about slots an

Re: [PyQt] newbie question about slots and signals

2010-06-17 Thread Darryl Wallace
Hello -Original Message- From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of Robin Wittler Sent: June-17-10 1:22 PM To: pyqt@riverbankcomputing.com Subject: [PyQt] newbie question about slots and signals Hi, i am totaly new to pyqt4 and it

[PyQt] newbie question about slots and signals

2010-06-17 Thread Robin Wittler
Hi, i am totaly new to pyqt4 and it seems that i have a problem to understand how signals and slots working. First i thought this is all clear to me, but then i wrote this little code snippet and - surprise surprise - it didn't work. The moep method where never called. I've tried it with the Q

Re: [PyQt] Master-detail relationship with plain QTableView tables (no SQL database)

2010-06-17 Thread Vadym Honcharuk
thanks a lot, Mark! I made the following things: from MainForm self.connect(self.ui.srcTable.selectionModel(), QtCore.SIGNAL("currentRowChanged(QModelIndex, QModelIndex)"), self.frmTableFilter) further: def frmTableFilter(self): index = self.ui.srcTable.currentIndex() if index

Re: [PyQt] Master-detail relationship with plain QTableView tables (no SQL database)

2010-06-17 Thread Mark Summerfield
On 2010-06-14, Vadym Honcharuk wrote: > thank you, Mark! > > one more question about applying filter in the context of > QSortFilterProxyModel: [snip] > > Question what method is analog of SQL setFilter() in context of > QSortFilterProxyModel? There are two approaches you can take with QSortFilt

[PyQt] QThread::run does not worl as expected

2010-06-17 Thread David Mugnai
Hi phil, according to the docs, the QThread::run method should call exec (and thus start a new event loop), but this code doesn't work (it never ends) > #!/usr/bin/env python > #-*- coding: utf-8 -*- > > from PyQt4.Qt import * > > app = QApplication([]) > > class Start(QEvent): > def __in

Re: [PyQt] How to get index of splitter

2010-06-17 Thread F.A.Pinkse
Hello russell, Hmm, I thought .show() was a mere visible or not thing. Ok, It solved my problem of not knowing the size before I do a setSizes(). Calculating the numbers is totally clear. I am still puzzelled though what setSizes() is doing when you give it numbers not summing up to what spl