Re: [PyQt] PyQt5 module not found

2013-07-05 Thread Shriramana Sharma
On Fri, Jul 5, 2013 at 8:52 PM, Dmitry Shachnev wrote: > > > As a work-around, you can try to comment out the WebKitWidgets-related > lines from debian/rules and debian/python3-pyqt5.qtwebkit.install. Thank you for this. It was not sufficient to comment them -- I had to remove them. I had to ins

[PyQt] [SIP] Segfault with nested template types

2013-07-05 Thread Casper Ti. Vector
test.h: > #include > #include > typedef QPair cell; > struct test { QMap pia; }; > extern test Test; > void pia_test(); test.cpp: > #include "test.h" > using namespace std; > test Test; > void pia_test() { > Test.pia[QPair(0, 0)] = QPair(0, 0); > } test.sip: > %Module test > %ModuleHeaderCode

Re: [PyQt] question about combobox

2013-07-05 Thread Vincent Vande Vyvre
Le 05/07/2013 17:32, Frank Schiro a écrit : Hi. I cant find documentation about this online, and a simple dir(self.combobox) shows about a million built in functions... So I was wondering what function do I need to use to change the combo box to what I want it to be ? If the combo box has 3 choi

[PyQt] question about combobox

2013-07-05 Thread Frank Schiro
Hi. I cant find documentation about this online, and a simple dir(self.combobox) shows about a million built in functions... So I was wondering what function do I need to use to change the combo box to what I want it to be ? If the combo box has 3 choices a,b,c and I want to set it to b when the u

Re: [PyQt] PyQt5 module not found

2013-07-05 Thread Dmitry Shachnev
On Fri, Jul 5, 2013 at 6:30 PM, Shriramana Sharma wrote: > Hi Scott/Dmitry -- if you have some time could I have a reply to this > mail of last week please? Thank you! > > On Wed, Jun 26, 2013 at 8:23 PM, Shriramana Sharma wrote: >> On Wed, Jun 26, 2013 at 6:46 PM, Dmitry Shachnev wrote: >>> I h

Re: [PyQt] QCoreApplication.translate()

2013-07-05 Thread Phil Thompson
On Fri, 05 Jul 2013 13:46:43 +0200, pa...@paolodestefani.it wrote: > Hi > I'm trying to internationalize my PyQt application. Following the pyqt > reference guide i'm trying to use QCoreApplication.translate() instead > of self.tr(). > Works but only if i write the full function. But if i want to

[PyQt] QCoreApplication.translate()

2013-07-05 Thread paolo
Hi I'm trying to internationalize my PyQt application. Following the pyqt reference guide i'm trying to use QCoreApplication.translate() instead of self.tr(). Works but only if i write the full function. But if i want to shorten it in this way: tr = QCoreApplication.translate and then using

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-05 Thread Casper Ti. Vector
[Shamelessly bumping this post in attempt to resolve this issue... Sorry for the disturbance; won't bump again even without reply :(] On Thu, Jul 04, 2013 at 06:21:48PM +0800, Casper Ti. Vector wrote: > [Mistakenly sent to the author instead of the mail list, now re-sent. > Plus, perhaps Phil can

Re: [PyQt] Problems with wrapping complex types using typedefs

2013-07-05 Thread Phil Thompson
On Fri, 5 Jul 2013 17:41:21 +0800, "Casper Ti. Vector" wrote: > For example, assuming all example use this header: >> %Module test >> %ModuleHeaderCode >> #include "test.h" >> %End >> %Include types.sip // Where map, pair and vector are wrapped. > > This code: >> std::map, std::vector > Test; > f

[PyQt] Problems with wrapping complex types using typedefs

2013-07-05 Thread Casper Ti. Vector
For example, assuming all example use this header: > %Module test > %ModuleHeaderCode > #include "test.h" > %End > %Include types.sip // Where map, pair and vector are wrapped. This code: > std::map, std::vector > Test; fails because sip complains: > sip: Test has an unsupported type - provide %Ge