Re: [PyQt] QtDBus: Unable to convert Array of Object Paths

2011-12-04 Thread Chris Mayo

On 04/12/11 05:34, Phil Thompson wrote:

On Fri, 02 Dec 2011 17:37:50 +, Chris Mayo
cjm...@users.sourceforge.net  wrote:

On 02/12/11 01:42, Phil Thompson wrote:

On Thu, 01 Dec 2011 20:20:34 +, Chris Mayo
cjm...@users.sourceforge.net   wrote:

Can't get ee8b9c7eb565 to compile:

Generating the C++ source for the QtDBus module...
sip:




/var/tmp/portage/dev-python/PyQt4-4.9_pre20111201/work/PyQt-x11-gpl-snapshot-4.9-ee8b9c7eb565-2.7/sip/QtDBus/qdbusextratypes.sip:95:


A class, exception, namespace or mapped type has already been defined
with the same name
Error: Unable to create the C++ code.


This might have been due to a build problem. Try downloading the

snapshot

again (even though it has the same name).

Phil


After downloading again a lot of different errors, just the first few:


Sorry about that - it isn't triggered the way I normally build. Current
snapshot should be Ok.


No luck with 65564eb2fcf4 either:

x86_64-pc-linux-gnu-g++ -c -march=core2 -msse4.1 -ftree-vectorize -O2 
-pipe -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC 
-Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. 
-I/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/qpy/QtDBus 
-I/usr/include/python2.7 -I/usr/mkspecs/linux-g++ 
-I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtCore -I/usr/include/qt4 
-o sipQtDBusQDBusObjectPath.o sipQtDBusQDBusObjectPath.cpp
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp: 
In function ‘PyObject* meth_QDBusVariant_variant(PyObject*, PyObject*)’:
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:45:15: 
error: ‘QDBusVariant’ does not name a type
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:47:87: 
error: ‘sipCpp’ was not declared in this scope

...

Chris
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 4.4.19 released

2011-12-04 Thread detlev
Hi,

I just uploaded eric 4.4.19. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] ANN: eric 5.1.7 released

2011-12-04 Thread detlev
Hi,

I just uploaded eric 5.1.7. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QtDBus: Unable to convert Array of Object Paths

2011-12-04 Thread Phil Thompson
On Sun, 04 Dec 2011 12:52:47 +, Chris Mayo
cjm...@users.sourceforge.net wrote:
 On 04/12/11 05:34, Phil Thompson wrote:
 On Fri, 02 Dec 2011 17:37:50 +, Chris Mayo
 cjm...@users.sourceforge.net  wrote:
 On 02/12/11 01:42, Phil Thompson wrote:
 On Thu, 01 Dec 2011 20:20:34 +, Chris Mayo
 cjm...@users.sourceforge.net   wrote:
 Can't get ee8b9c7eb565 to compile:

 Generating the C++ source for the QtDBus module...
 sip:



/var/tmp/portage/dev-python/PyQt4-4.9_pre20111201/work/PyQt-x11-gpl-snapshot-4.9-ee8b9c7eb565-2.7/sip/QtDBus/qdbusextratypes.sip:95:

 A class, exception, namespace or mapped type has already been
defined
 with the same name
 Error: Unable to create the C++ code.

 This might have been due to a build problem. Try downloading the
 snapshot
 again (even though it has the same name).

 Phil

 After downloading again a lot of different errors, just the first few:

 Sorry about that - it isn't triggered the way I normally build. Current
 snapshot should be Ok.
 
 No luck with 65564eb2fcf4 either:
 
 x86_64-pc-linux-gnu-g++ -c -march=core2 -msse4.1 -ftree-vectorize -O2 
 -pipe -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC 
 -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. 

-I/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/qpy/QtDBus
 
 -I/usr/include/python2.7 -I/usr/mkspecs/linux-g++ 
 -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtCore -I/usr/include/qt4 
 -o sipQtDBusQDBusObjectPath.o sipQtDBusQDBusObjectPath.cpp

/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:
 
 In function ‘PyObject* meth_QDBusVariant_variant(PyObject*, PyObject*)’:

/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:45:15:
 
 error: ‘QDBusVariant’ does not name a type

/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:47:87:
 
 error: ‘sipCpp’ was not declared in this scope
 ...

I can't reproduce this. This is with Qt v4.8.0rc but I don't think
QDBusVariant or qdbusextratypes.h has changed recently.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Translation updates needed for eric4 4.5

2011-12-04 Thread Detlev Offenbach
Hello all,

the current sources of the eric4 4.5 line of development (i.e. trunk) need 
some translation updates. I am intending to release 4.5.0 beginning of 2012. 
Whoever wants to help please get the sources and update the language in 
question using Qt Linguist. Once done, pease send the resulting .ts file back 
to me.

Here are the current statistics.

cs  7176 of 7441,  96.4%
de  7441 of 7441, 100%
es  7441 of 7441, 100%
fr  7254 of 7441,  97.5%
it  7320 of 7441,  98.4%
ru  7207 of 7441,  96.8%
tr  5288 of 7441,  71%
zh_CN.GB23126308 of 7441,  84.8%

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] ANN: eric 4.4.19 released

2011-12-04 Thread zw g
Bad luck.


HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ ll
total 264
-rw-r--r--   1 zhenweigui  staff  32856 Dec  4 20:04 LICENSE.GPL3
-rw-r--r--   1 zhenweigui  staff  10057 Dec  4 20:04 README
-rw-r--r--   1 zhenweigui  staff833 Dec  4 20:04 README-i18n.txt
-rw-r--r--   1 zhenweigui  staff   1077 Dec  4 20:04 THANKS
-rw-r--r--   1 zhenweigui  staff  30449 Dec  4 20:04 changelog
drwxr-xr-x  84 zhenweigui  staff   2856 Dec  4 20:04 eric
-rw-r--r--   1 zhenweigui  staff  32403 Dec  4 20:04 install.py
-rw-r--r--   1 zhenweigui  staff   4285 Dec  4 20:04 patch_modpython.py
-rw-r--r--   1 zhenweigui  staff   4091 Dec  4 20:04 uninstall.py

HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ sudo python install.py
Checking dependencies
Python Version: 2.7.2
Found PyQt4
Found QtHelp
Found QScintilla2
Qt Version: 4.7.4
PyQt Version:  4.8.6
QScintilla Version:  2.6
All dependencies ok.

Compiling user interface files...

Compiling source files...

Installing eric4 ...
An internal error occured.  Please report all the output of the program,
including the following traceback, to
eric4-b...@eric-ide.python-projects.org.

Traceback (most recent call last):
  File install.py, line 939, in module
main(sys.argv)
  File install.py, line 894, in main
installEric()
  File install.py, line 441, in installEric
createMacAppBundle(cfg['ericDir'])
  File install.py, line 483, in createMacAppBundle
shutil.copy(os.path.join(sourceDir, pixmaps, eric_2.icns),
NameError: global name 'sourceDir' is not defined

HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$


Hope this helps.


Gui



On Sun, Dec 4, 2011 at 9:42 PM, detlev det...@die-offenbachs.de wrote:

 Hi,

 I just uploaded eric 4.4.19. It is a maintenance release fixing some bugs.
 It
 is available via the eric web site.

 http://eric-ide.python-projects.org/index.html

 Regards,
 Detlev
 --
 Detlev Offenbach
 det...@die-offenbachs.de
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: eric 4.4.19 released

2011-12-04 Thread Detlev Offenbach
Oops, that should not happen. I just uploaded a new package with a corrected 
install script.

Detlev

Am Sonntag, 4. Dezember 2011, 23:05:36 schrieb zw g:
 Bad luck.
 
 
 HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ ll
 total 264
 -rw-r--r--   1 zhenweigui  staff  32856 Dec  4 20:04 LICENSE.GPL3
 -rw-r--r--   1 zhenweigui  staff  10057 Dec  4 20:04 README
 -rw-r--r--   1 zhenweigui  staff833 Dec  4 20:04 README-i18n.txt
 -rw-r--r--   1 zhenweigui  staff   1077 Dec  4 20:04 THANKS
 -rw-r--r--   1 zhenweigui  staff  30449 Dec  4 20:04 changelog
 drwxr-xr-x  84 zhenweigui  staff   2856 Dec  4 20:04 eric
 -rw-r--r--   1 zhenweigui  staff  32403 Dec  4 20:04 install.py
 -rw-r--r--   1 zhenweigui  staff   4285 Dec  4 20:04 patch_modpython.py
 -rw-r--r--   1 zhenweigui  staff   4091 Dec  4 20:04 uninstall.py
 
 HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ sudo python install.py
 Checking dependencies
 Python Version: 2.7.2
 Found PyQt4
 Found QtHelp
 Found QScintilla2
 Qt Version: 4.7.4
 PyQt Version:  4.8.6
 QScintilla Version:  2.6
 All dependencies ok.
 
 Compiling user interface files...
 
 Compiling source files...
 
 Installing eric4 ...
 An internal error occured.  Please report all the output of the program,
 including the following traceback, to
 eric4-b...@eric-ide.python-projects.org.
 
 Traceback (most recent call last):
   File install.py, line 939, in module
 main(sys.argv)
   File install.py, line 894, in main
 installEric()
   File install.py, line 441, in installEric
 createMacAppBundle(cfg['ericDir'])
   File install.py, line 483, in createMacAppBundle
 shutil.copy(os.path.join(sourceDir, pixmaps, eric_2.icns),
 NameError: global name 'sourceDir' is not defined
 
 HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$
 
 
 Hope this helps.
 
 
 Gui
 
 On Sun, Dec 4, 2011 at 9:42 PM, detlev det...@die-offenbachs.de wrote:
  Hi,
  
  I just uploaded eric 4.4.19. It is a maintenance release fixing some
  bugs. It
  is available via the eric web site.
  
  http://eric-ide.python-projects.org/index.html
  
  Regards,
  Detlev
  --
  Detlev Offenbach
  det...@die-offenbachs.de
  ___
  PyQt mailing listPyQt@riverbankcomputing.com
  http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QtDBus: Unable to convert Array of Object Paths

2011-12-04 Thread Chris Mayo



No luck with 65564eb2fcf4 either:

x86_64-pc-linux-gnu-g++ -c -march=core2 -msse4.1 -ftree-vectorize -O2
-pipe -fPIC -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC
-Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I.


-I/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/qpy/QtDBus


-I/usr/include/python2.7 -I/usr/mkspecs/linux-g++
-I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtCore -I/usr/include/qt4
-o sipQtDBusQDBusObjectPath.o sipQtDBusQDBusObjectPath.cpp


/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:


In function ‘PyObject* meth_QDBusVariant_variant(PyObject*, PyObject*)’:


/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:45:15:


error: ‘QDBusVariant’ does not name a type


/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp:47:87:


error: ‘sipCpp’ was not declared in this scope
...


I can't reproduce this. This is with Qt v4.8.0rc but I don't think
QDBusVariant or qdbusextratypes.h has changed recently.



The only includes at the top of the generated 
PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp 
are:



#include sipAPIQtDBus.h


#line 241 
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/sip/QtCore/qvariant.sip

#include qvariant.h
#line 35 
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp



If I manually add:
 #include qdbusextratypes.h
make appears to complete.

Chris
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: eric 4.4.19 released

2011-12-04 Thread zw g
Yes, just confirmed that problem sloved.

Gui


On Sun, Dec 4, 2011 at 11:35 PM, Detlev Offenbach
det...@die-offenbachs.dewrote:

 Oops, that should not happen. I just uploaded a new package with a
 corrected
 install script.

 Detlev

 Am Sonntag, 4. Dezember 2011, 23:05:36 schrieb zw g:
  Bad luck.
 
 
  HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ ll
  total 264
  -rw-r--r--   1 zhenweigui  staff  32856 Dec  4 20:04 LICENSE.GPL3
  -rw-r--r--   1 zhenweigui  staff  10057 Dec  4 20:04 README
  -rw-r--r--   1 zhenweigui  staff833 Dec  4 20:04 README-i18n.txt
  -rw-r--r--   1 zhenweigui  staff   1077 Dec  4 20:04 THANKS
  -rw-r--r--   1 zhenweigui  staff  30449 Dec  4 20:04 changelog
  drwxr-xr-x  84 zhenweigui  staff   2856 Dec  4 20:04 eric
  -rw-r--r--   1 zhenweigui  staff  32403 Dec  4 20:04 install.py
  -rw-r--r--   1 zhenweigui  staff   4285 Dec  4 20:04 patch_modpython.py
  -rw-r--r--   1 zhenweigui  staff   4091 Dec  4 20:04 uninstall.py
 
  HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ sudo python install.py
  Checking dependencies
  Python Version: 2.7.2
  Found PyQt4
  Found QtHelp
  Found QScintilla2
  Qt Version: 4.7.4
  PyQt Version:  4.8.6
  QScintilla Version:  2.6
  All dependencies ok.
 
  Compiling user interface files...
 
  Compiling source files...
 
  Installing eric4 ...
  An internal error occured.  Please report all the output of the program,
  including the following traceback, to
  eric4-b...@eric-ide.python-projects.org.
 
  Traceback (most recent call last):
File install.py, line 939, in module
  main(sys.argv)
File install.py, line 894, in main
  installEric()
File install.py, line 441, in installEric
  createMacAppBundle(cfg['ericDir'])
File install.py, line 483, in createMacAppBundle
  shutil.copy(os.path.join(sourceDir, pixmaps, eric_2.icns),
  NameError: global name 'sourceDir' is not defined
 
  HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$
 
 
  Hope this helps.
 
 
  Gui
 
  On Sun, Dec 4, 2011 at 9:42 PM, detlev det...@die-offenbachs.de wrote:
   Hi,
  
   I just uploaded eric 4.4.19. It is a maintenance release fixing some
   bugs. It
   is available via the eric web site.
  
   http://eric-ide.python-projects.org/index.html
  
   Regards,
   Detlev
   --
   Detlev Offenbach
   det...@die-offenbachs.de
   ___
   PyQt mailing listPyQt@riverbankcomputing.com
   http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 --
 Detlev Offenbach
 det...@die-offenbachs.de

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Refresh a treeWidget but not it's expand/collapse

2011-12-04 Thread Christopher Evans
What's the best way to refresh/rebuild a treeWidget without blowing away
the user's depth traversal and framing?

Anyone have a small fn for this? I guess you query the state of all
leaves/branches of the treeWidget then reapply it?

-- 
CE
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QMetaObject.newInstance does not work as expected

2011-12-04 Thread Phil Thompson
On Thu, 1 Dec 2011 17:43:03 +0100, Henning Schröder
henning.schroe...@gmail.com wrote:
 Hello,
 again I tried to seek to push the boundaries.This time I tried to load
 a C++ widget inside a library into PyQt using ctypes (without extra
 sip bindings).
 I worked well :) but I cannot call a constructor with arguments.
 The attached code reaches the except-block with PyQt 4.8.5
 To test just call: qmake  make   python test.py
 
 Regards
 Henning

The call to newInstance() should be something like...

hello = mo.newInstance(Q_ARG(QWidget, win))

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QtDBus: Unable to convert Array of Object Paths

2011-12-04 Thread Chris Mayo




The only includes at the top of the generated
PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp
are:


#include sipAPIQtDBus.h


#line 241
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/sip/QtCore/qvariant.sip

#include qvariant.h
#line 35
/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp



If I manually add:
#include qdbusextratypes.h
make appears to complete.



All my mistake. In trying to investigate the first compilation problem I 
was zapping out the #include qdbusextratypes.h in qdbusextratypes.sip 
and forget to remove it when trying out the newer snapshots. Sorry for 
wasting your time.


I now have working arrays of object paths.

Chris
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-04 Thread Chris Mayo

With Python 2 I can do (where /dev/sr0 is a cdrom):

bus = QtDBus.QDBusConnection.systemBus()
device_iface = QtDBus.QDBusInterface('org.freedesktop.UDisks',
	'/org/freedesktop/UDisks/devices/sr0', 'org.freedesktop.UDisks.Device', 
bus)

reply = device_iface.call(DriveEject, QStringList())


But with Python 3 this won't work because of QStringList. If I modify it 
with:


reply = device_iface.call(DriveEject, [, ])
print(reply.errorMessage())

I get:

Method DriveEject with signature av on interface 
org.freedesktop.UDisks.Device doesn't exist


Chris

PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QtDBus: Unable to convert Array of Object Paths

2011-12-04 Thread Phil Thompson
On Sun, 04 Dec 2011 20:06:35 +, Chris Mayo
cjm...@users.sourceforge.net wrote:

 The only includes at the top of the generated

PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp
 are:


 #include sipAPIQtDBus.h


 #line 241

/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/sip/QtCore/qvariant.sip

 #include qvariant.h
 #line 35

/var/tmp/portage/dev-python/PyQt4-4.9_pre20111204/work/PyQt-x11-gpl-snapshot-4.9-65564eb2fcf4-2.7/QtDBus/sipQtDBusQDBusVariant.cpp



 If I manually add:
 #include qdbusextratypes.h
 make appears to complete.

 
 All my mistake. In trying to investigate the first compilation problem I

 was zapping out the #include qdbusextratypes.h in qdbusextratypes.sip 
 and forget to remove it when trying out the newer snapshots. Sorry for 
 wasting your time.
 
 I now have working arrays of object paths.
 
 Chris

Excellent. Let me know if anything else feels wrong or if there might be
a better way to do things.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Segmentation Fault in FileDialog

2011-12-04 Thread Ramiro Algozino
Hello!

 I'm having an issue with a FileDialog, a getSaveFileName type in
particullar. I get a Segmentation Fault when I accept the dialog if
the file doesn't exist. When I overwrite an exisiting file the
segmentation doesn't occur.

This is happening in Fedora 16 (Gnome3) and I have an user report
saying that the same problem is present in Ubuntu 11.10.

This is the code snippet I'm using [0]:

    def saveCode(self):
        fn = QtGui.QFileDialog.getSaveFileName(
            self,
            self.trUtf8('Save QRCode'),
            filter=self.trUtf8('PNG Images (*.png);; All Files (*.*)'),
            #options=QtGui.QFileDialog.DontUseNativeDialog
            )

 I've found that if setting the option flag DontUseNativeDialog the
segmentation doesn't appear and everything work as expected. Also, the
problem is only present if I import the pynotify library.

 Not importing the PyNotify library I get this Warning when the file
doesn't exist:

(python:7829): Gtk-WARNING **: Unable to retrieve the file info for
`file:///home/ramiro/proyectos/qr-tools/borrame2.png': Error al
mostrar la información del estado del archivo
«/home/ramiro/proyectos/qr-tools/borrame2.png»: No existe el fichero o
el directorio.

¿Is this a PyQt / Qt problem?

Thank you very much!

[0] You can see the complete code here:
http://bazaar.launchpad.net/~qr-tools-developers/qr-tools/trunk/view/head:/qtqr.py
--
Ramiro Algozino
http://ramiroalgozino.com.ar/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt