Re: [PyQt] [Marble-devel] Marble with python bindings

2012-01-08 Thread heathmatlock
Hi Tony, Marble functions aren't currently supported by PyKDE, it's
something Simon, the PyKDE maintainer, might be working on, and if
not, I'll gladly put forth the time to fix this. I sent an email to
Simon a few mins ago and then saw your email, I'll let you know what
he says if he doesn't respond to this thread.

On Sun, Jan 8, 2012 at 4:25 PM, Tony Peña emperor...@gmail.com wrote:
 Hi list,
 this is part of my app
 and as all can see works in qtdesigner

 http://i.imgur.com/sNA50.png

 I'm try to develop an app and I want to use marble, but when I compiled,
 only can get the QWidget marble for QtDesigner, because when i put the
 marble into my app in the QTabWidget, all fine. and save but, i get this

 pyuic4 QtUI/MainWindow_UI.ui  modules/MainWindow_UI.py
 Unknown Qt widget: Marble.MarbleWidget

 I read some mail archives, not is with pyui4 else pykdeuic4 and with that
 got this errors

  pykdeuic4 QtUI/MainWindow_UI.ui  modules/MainWindow_UI.py
 Traceback (most recent call last):
   File /usr/bin/pykdeuic4, line 156, in module
     main()
   File /usr/bin/pykdeuic4, line 153, in main
     processUI(source_ui, output_filename, exe)
   File /usr/bin/pykdeuic4, line 91, in processUI
     winfo = comp.compileUi(uifile, output, None)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/Compiler/compiler.py,
 line 119, in compileUi
     w = self.parse(input_stream)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 927,
 in parse
     actor(elem)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 770,
 in createUserInterface
     self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 748,
 in traverseWidgetTree
     handler(self, child)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 224,
 in createWidget
     self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 748,
 in traverseWidgetTree
     handler(self, child)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 224,
 in createWidget
     self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 748,
 in traverseWidgetTree
     handler(self, child)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 224,
 in createWidget
     self.traverseWidgetTree(elem)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 748,
 in traverseWidgetTree
     handler(self, child)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 215,
 in createWidget
     self.stack.push(self.setupObject(widget_class, parent, elem))
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py, line 176,
 in setupObject
     obj =  self.factory.createQObject(clsname, name, args, is_attribute)
   File /usr/lib/python2.7/dist-packages/PyQt4/uic/objcreator.py, line 108,
 in createQObject
     raise NoSuchWidgetError(classname)
 PyQt4.uic.exceptions.NoSuchWidgetError: Unknown Qt widget:
 Marble.MarbleWidget

 other thing is this when I type at ipython

 In [1]: from PyKDE4.marble import *
 ---
 ImportError   Traceback (most recent call last)
 ipython-input-1-9cb3cfbadbf9 in module()
  1 from PyKDE4.marble import *

 ImportError: No module named marble

 so, what have to do? to can going devel?


 --
 Antonio Peña
 Secure email with PGP 0x8B021001 available at http://pgp.mit.edu
 Fingerprint: 74E6 2974 B090 366D CE71  7BB2 6476 FA09 8B02 1001

 ___
 Marble-devel mailing list
 marble-de...@kde.org
 https://mail.kde.org/mailman/listinfo/marble-devel




-- 
Heath Matlock
+1 256 274 4225
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Gesture programming in PyQt

2012-01-08 Thread Detlev Offenbach
Am Samstag, 7. Januar 2012, 18:31:16 schrieb Phil Thompson:
 On Sat, 7 Jan 2012 15:33:08 +0100, Detlev Offenbach
 
 det...@die-offenbachs.de wrote:
  Hi Phil,
  
  can you test my little test script on your side? I tried it over here
 
 with
 
  Python 3.2.2, Qt 4.7.4 and latest released sip/PyQt.
 
 What is it supposed to do?
 
 Phil

I used it to get some know how in gesture programming. The custom gesture 
should register swipes using the touchpad of e.g. a MacBook. I couldn't get it 
working because it crashed when the custome gesture recognizer is registered. 
The script itself doesn't do anything useful except printing some info about 
the gesture being handled.

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