Re: [PySide] New-style signals: no Signal.connect()?

2010-10-04 Thread Dan Halbert
On 10/4/2010 5:48 PM, Renato Araujo Oliveira Filho wrote: Hi Dan, I wrote this example base on your example, and works very well. from PySide.QtCore import QObject, Signal class C(QObject): sig = Signal() def foo(): print 2 c = C() c.sig.connect(foo) c.sig.emit() OUTPUT: # python t

Re: [PySide] New-style signals: no Signal.connect()?

2010-10-04 Thread Renato Araujo Oliveira Filho
Hi Dan, I wrote this example base on your example, and works very well. from PySide.QtCore import QObject, Signal class C(QObject): sig = Signal() def foo(): print 2 c = C() c.sig.connect(foo) c.sig.emit() OUTPUT: # python test.py 2 Which error do you get, when you try connect the sig

Re: [PySide] New-style signals: no Signal.connect() ?

2010-10-04 Thread Dan Halbert
On Monday, October 4, 2010 4:41pm, "Dan Halbert" said: >I tried to use new-style signals on the Ubuntu 0.4.1 pyside build: >from PySide.QtCore import * >sig = Signal() >def foo(): print 2 >sig.connect(foo) >AttributeError: 'Signal' object has no attribute 'connect' Sorry! Never mind - my exampl

[PySide] New-style signals: no Signal.connect() ?

2010-10-04 Thread Dan Halbert
I tried to use new-style signals on the Ubuntu 0.4.1 pyside build: from PySide.QtCore import * sig = Signal() def foo(): print 2 sig.connect(foo) AttributeError: 'Signal' object has no attribute 'connect' I'm confused. From the examples in http://www.pyside.org/docs/pyside/newsigslot.html I th

Re: [PySide] Possibility of acquiring QWidget* from Pyside?

2010-10-04 Thread Hugo Parente Lima
On Monday 04 October 2010 14:46:30 Stefan Larsson wrote: > I'll answer myself here... I just managed to compile a small test program > which executes more C++ centric compared to what is described in e.g. > http://lists.openbossa.org/pipermail/pyside/2010-October/001133.html where > a Python module

Re: [PySide] Possibility of acquiring QWidget* from Pyside?

2010-10-04 Thread Stefan Larsson
I'll answer myself here... I just managed to compile a small test program which executes more C++ centric compared to what is described in e.g. http://lists.openbossa.org/pipermail/pyside/2010-October/001133.html where a Python module is created. I did this by investigating the Shiboken include fi

Re: [PySide] Build and install QtCore only

2010-10-04 Thread Sebastian Wiesner
2010/10/4 Hugo Parente Lima : > You can disable the modules using the variables: > > -DDISABLE_QtGui=ON > -DDISABLE_QtNetwork=ON > etc... Thank you, works perfectly. Sebastian Wiesner ___ PySide mailing list PySide@lists.openbossa.org http://lists.openb

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Didier 'OdyX' Raboud
Lacko Roman wrote: > Hi, > > I have problem building stable binaries under ubuntu (10.04, python 2.6). > Build failed with error: > > [ 39%] Running generator for test binding... > /home/roman/PySide/pyside-pkgsetup/modules/output-py2.6- qt4.7.0/bin/generatorrunner: > error while loading shared

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Lacko Roman
Hi, I have no success: Compiling pyside... Scanning dependencies of target pyside [ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/dynamicqmetaobject.cpp.o [ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/signalmanager.cpp.o [ 0%] Building CXX object libpyside/CMakeFiles/pysi

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Thomas Sturm
Try export LD_LIBRARY_PATH=/home/roman/PySide/pyside-pkgsetup/modules/output-py2.6-qt4.7.0/lib The dir on the right hand side might be slightly different. Just check, where the lib actually lives. I had the same problem on Ubuntu. I think later on during the build there was a message the the p

Re: [PySide] Build and install QtCore only

2010-10-04 Thread Matti Airas
On 04.10.2010 17:12, ext Hugo Parente Lima wrote: We use icecc to speed up the compilation, but you will need at least 3 machines to achieve any real gain with icecc. I beg to differ. :-) My main work computer is a pretty modest laptop on which any PySide compilation takes ages, but I use ice

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Anderson Lizardo
2010/10/4 Lacko Roman : > /home/roman/PySide/pyside-pkgsetup/modules/output-py2.6-qt4.7.0/bin/generatorrunner: > error while loading shared libraries: libgenrunner.so.0.6: cannot open > shared object file: No such file or directory > make[2]: *** > [PySide/QtCore/PySide/QtCore/qabstracteventdisp

Re: [PySide] Build and install QtCore only

2010-10-04 Thread Hugo Parente Lima
On Saturday 02 October 2010 14:08:33 Sebastian Wiesner wrote: > Hallo, > > as the topic says, how do I build and install PySide.QtCore only, but > no other Qt modules (especially not QtGui)? I've not found any CMake > variables to configure the list of modules to built. I know, that I > can do

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Lacko Roman
Hi, I know, but I need to build packages usable with setuptools and easy_install. Regards -Roman > -Original Message- > From: pyside-boun...@lists.openbossa.org [mailto:pyside- > boun...@lists.openbossa.org] On Behalf Of Didier 'OdyX' Raboud > Sent: Monday, October 04, 2010 1:13 PM > To:

Re: [PySide] PyQt4 to PySide issues - QTreeWidgetItemIterator and winId()

2010-10-04 Thread Matti Airas
On 02.10.2010 22:39, ext Stefan wrote: Hi, I downloaded PySide 4.1 and replaced my PyQt4 imports with PySide. I stumbled upon two problems. Hi Stefan, I've made two bug reports against the issues: http://bugs.openbossa.org/show_bug.cgi?id=399 http://bugs.openbossa.org/show_bug.cgi?id=400 I

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Lacko Roman
I reply to myself :) Use -DQT_QMAKE_EXECUTABLE= R. > -Original Message- > From: pyside-boun...@lists.openbossa.org [mailto:pyside- > boun...@lists.openbossa.org] On Behalf Of Lacko Roman > Sent: Monday, October 04, 2010 12:03 PM > To: Carlos Gonçalves > Cc: pyside@lists.openbossa.org > Su

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Lacko Roman
Option "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes" works :) Thanks -Roman > -Original Message- > From: Anderson Lizardo [mailto:anderson.liza...@openbossa.org] > Sent: Monday, October 04, 2010 1:39 PM > To: Lacko Roman > Cc: Carlos Gonçalves; pyside@lists.openbossa.org > Subject: Re: [PySid

Re: [PySide] Build and install QtCore only

2010-10-04 Thread Lacko Roman
I'm allready working also on linux version of easy_install-able package :) > -Original Message- > From: Sebastian Wiesner [mailto:lunary...@googlemail.com] > Sent: Sunday, October 03, 2010 12:21 PM > To: Lacko Roman > Cc: Kenneth Arnold; pys...@srvrec006.openbossa.org > Subject: Re: [PySi

[PySide] PySide packages distribution [on Windows]

2010-10-04 Thread Lacko Roman
Hi recenly have fixed some bugs in packaging and discovered that the split of PySide into two small packages will be not possible. Solution is to create two fully independent packages so the second "PySideDev" will contain everything form "PySide" + all developer tools, documentation and example

[PySide] Hybrid application with PySide

2010-10-04 Thread Oleksandr Iakovliev
Hi PySide folks, I has been recently asked a lot about creation hybrid applications using PySide (some time ago I published manual of doing it with PyQt) So, I made a new small tutorial - now same idea is available with PySide: http://lynxline.com/superhybrids-part-2-now-qt-pyside/ _

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Lacko Roman
Thanks, And is it possible to set which Qt to use when i have installed both 4.6 and 4.7 on my system ? Regards -Roman > -Original Message- > From: Carlos Gonçalves [mailto:carlos.ei.goncal...@gmail.com] On Behalf Of > Carlos Gonçalves > Sent: Saturday, October 02, 2010 1:11 AM > To: Lac

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Marcin Łyko
Hi, I have similar problem when I try to build the pyside-qt4.6+0.4.1 source package downloaded from http://www.pyside.org/files/pyside-qt4.6 +0.4.1.tar.bz2 on Debian/Linux. I use the below commands: $ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=False $ make but I get output with the followi

Re: [PySide] build under ubuntu failed

2010-10-04 Thread Matti Airas
On 04.10.2010 13:33, ext Lacko Roman wrote: Hi, I have no success: /home/roman/PySide/pyside-pkgsetup/modules/output-py2.6-qt4.7.0/bin/generatorrunner: error while loading shared libraries: libgenrunner.so.0.6: cannot open shared object file: No such file or directory make[2]: *** [PySide/Qt

Re: [PySide] Hybrid application with PySide

2010-10-04 Thread Matti Airas
On 04.10.2010 12:34, ext Oleksandr Iakovliev wrote: Hi PySide folks, I has been recently asked a lot about creation hybrid applications using PySide (some time ago I published manual of doing it with PyQt) So, I made a new small tutorial - now same idea is available with PySide: http://lynxlin