Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread Jarosław Białas
I accidentally send below message only to David, repostion to groups. On 01.07.2011 19:57, David Boddie wrote: On Wed Jun 29 10:38:07 BST 2011, Jarosław Białas wrote: Recently I tried to use my c++ library in Python using SIP. In SIP configuration file I added some extra libraries like QtGu

Re: [PyQt] QPainter::end: Painter ended with 2 saved states

2011-07-01 Thread Hans-Peter Jansen
Hi Eric, sorry for the delay. On Tuesday 28 June 2011, 21:42:51 Eric Frederich wrote: > Here is a reworked example. > Do you see any potential problems with this one? > Is the call to setText okay? Sure, it's done from the main thread, hence in the main thread context. > Is it okay to access th

Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread David Boddie
On Wed Jun 29 10:38:07 BST 2011, Jarosław Białas wrote: > Recently I tried to use my c++ library in Python using SIP. > In SIP configuration file I added some extra libraries like QtGui,fftw3 > and ssl. > Compilation and linking pass without any warnings or errors: > > g++ -c -pipe -fPIC -O2 -Wall

Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread Jarosław Białas
Hello again, In the case that somebody want to help me with that problem, I attached some files. import os import sipconfig # The name of the SIP build file generated by SIP and used by the build # system. build_file = "md5test.sbf" # Get the SIP configuration information. config = sipconfig.C

Re: [PyQt] Weird pyqtSignal behaviour

2011-07-01 Thread Demetrius Cassidy
On WinXP Pro and Python 2.7.1 this is what I get: >>> class CX(QtCore.QObject): ... asig = QtCore.pyqtSignal() ... def __init__(self): ... QtCore.QObject.__init__(self) ... print self.asig ... >>> k = CX() Using latest stable SIP and PyQt4 with Qt 4.7.2 On Mon, Jun 27, 2011 at 3:29 PM, Giuseppe

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
Hi, me again :) I got it working but wanted to get an affimation, what do you think of this approach? if __name__ == "__main__": from locale import getlocale from os.path import exists app = QtGui.QApplication(sys.argv) if getlocale()[0]: if exists("translations/" + getloc

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
That works like a charm thanks :) 01 Temmuz 2011 12:17 tarihinde Sebastian Wiesner yazdı: > 2011/7/1 Yaşar Arabacı : > > Thanks, appearantly I also needed to create a .pro file for pylupdate to > > know which files to convert to. > > Alternatively you can specifiy the files to translate and the

Re: [PyQt] Fwd: translation of ui

2011-07-01 Thread Sebastian Wiesner
2011/7/1 Yaşar Arabacı : > Thanks, appearantly I also needed to create a .pro file for pylupdate to > know which files to convert to. Alternatively you can specifiy the files to translate and the translations to update on the command line: pylupdate4 -ts > I created a language file and transl

[PyQt] Fwd: translation of ui

2011-07-01 Thread Yaşar Arabacı
I accidentally mailed below message only to Sebastian, repostion to groups. -- Yönlendirilmiş ileti -- Kimden: Yaşar Arabacı Tarih: 01 Temmuz 2011 12:07 Konu: Re: [PyQt] translation of ui Kime: Sebastian Wiesner Thanks, appearantly I also needed to create a .pro file for pylupd

[PyQt] translation of ui

2011-07-01 Thread Yaşar Arabacı
Hi, I was wondering how can I generate translation file for a ui generated by QtDesigner. I have no early experience of using translations, so I can't figure it out how to make this work. Should I mark strings in my main module or does QtDesigner somehow provide it for me? ___