Re: [PyQt] Dilemma: Pqt or wxpython

2012-09-13 Thread Hans-Peter Jansen
Am Dienstag, 11. September 2012, 16:39:01 schrieb Gour:
 On Tue, 11 Sep 2012 15:14:42 +0100
 
 Tony Lynch tly...@xype.com wrote:
  Qt is much better than wx in general, and more widely used. I'd go for
  Qt/PyQt every time,
 
 One pro for wx might be using native toolkits and (probably) looking
 better which is possible concern on Windows  Mac OS X platforms?

Well, after fixing all those platform specific wx glitches and coping with 
behavior deviations, given those are fixable at python level, you start to 
get an basic idea, why Qt is done that way.

Note, that even the DotNet framework follows a similar approach...

While dated, here are some more details:

http://www.gossamer-threads.com/lists/python/python/391333?do=post_view_threaded#391333

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


Re: [PyQt] Error when attempting to use load UI files into Python

2012-09-13 Thread Phil Thompson
On Wed, 12 Sep 2012 18:43:10 -0400, Scott Lanahan lanah...@gmail.com
wrote:
 Hi,
 
 I'm desperately trying to use uic.loadUi to load my main window into
 Python. I cannot get it to work for the main window, but it works fine
for
 various widgets that are in the same Qt project. When I try to load the
.ui
 file, I get the following error:
 Traceback (most recent call last):
   File options.py, line 25, in module
 myapp = uic.loadUi('mainwindow.ui')
   File /usr/lib/python2.7/site-packages/PyQt4/uic/__init__.py, line
223,
 in loadUi
 return DynamicUILoader(package).loadUi(uifile, baseinstance)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/Loader/loader.py,
line
 71, in loadUi
 return self.parse(filename, basedir)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
929,
 in parse
 actor(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
770,
 in createUserInterface
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
459,
 in createLayout
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
502,
 in handleItem
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
459,
 in createLayout
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
502,
 in handleItem
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
459,
 in createLayout
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
502,
 in handleItem
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
459,
 in createLayout
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
502,
 in handleItem
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
459,
 in createLayout
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
502,
 in handleItem
 self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
748,
 in traverseWidgetTree
 handler(self, child)
   File /usr/lib/python2.7/site-packages/PyQt4/uic/uiparser.py, line
224,
 in createWidget
 self.traverseWidgetTree(elem)
   File 

Re: [PyQt] sip: template %MappedType doesn't allow /AllowNone/

2012-09-13 Thread Phil Thompson
On Mon, 10 Sep 2012 23:31:20 +0200, mathias.b...@gmx.de wrote:
 Phil,
 
 While using /AlloNone/ on a normal mapped type directive like
 
 %MappedType boost::optionalfs::path /AllowNone/
 
 works, sip tells me
 
 Deprecation warning : type_mappings.sip.h:269: Annotation is invalid
 
 for
 
 templateType
 %MappedType boost::optionalType /AllowNone/
 
 If this is intended, why this limitiation?

Lazy programming on my part - fixed in hg.

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


Re: [PyQt] sip: template %MappedType doesn't allow /AllowNone/

2012-09-13 Thread Mathias . Born
On 13.09.2012, 18:44:19 Phil Thompson wrote:
 On Mon, 10 Sep 2012 23:31:20 +0200, mathias.b...@gmx.de wrote:
 Phil,
 
 While using /AlloNone/ on a normal mapped type directive like
 
 %MappedType boost::optionalfs::path /AllowNone/
 
 works, sip tells me
 
 Deprecation warning : type_mappings.sip.h:269: Annotation is invalid
 
 for
 
 templateType
 %MappedType boost::optionalType /AllowNone/
 
 If this is intended, why this limitiation?

 Lazy programming on my part - fixed in hg.

 Phil

Great, thanks!

Best Regards,
Mathias Born

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


Re: [PyQt] Convert string to QString

2012-09-13 Thread Python.py
Hello everybody, I was trying to make some changes in my program to see if it
would work, but it was pious then left as before. Getting to play some
videos, but many can not. Even extensions being equal. I'm storing the path
of videos into one file, hence I get the video I want to watch and squeegee.
But not everyone works 

This part of the code I find the way I want to watch the video:


Found the path of the video, I run using the lib mpylayer.


Now I can not find out why only some videos work most do not. 




--
View this message in context: 
http://python.6.n6.nabble.com/Convert-string-to-QString-tp4987160p4988670.html
Sent from the PyQt mailing list archive at Nabble.com.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt