Re: [PyQt] binary file viewer with textEdit (PyQt)

2010-06-22 Thread Mark Summerfield
On 2010-06-22, sandokan wrote: > Hi, hope you can help me. I am trying to view whole contents of binary file > (PE file) in Qt TextEdit widget but still running into some problems (speed > is the main problem). I have tried these two ways: > 1) converting data using "codecs" > s = codecs.open(sel

Re: [PyQt] QXmlQuery example needed

2010-06-22 Thread Ruslan Popov
I have tried right now: q_str = 'doc("/home/rad/project/qt/manager/uis/logic.xml")/logic/rule query.setQuery(q_str) also I have handler like this: class Handler(QAbstractMessageHandler): def handleMessage(self, msg_type, desc, identifier, loc): print 'QUERY:', msg_type, desc, identif

[PyQt] QtWebKit segfault if libflashplayer.so is in plugin searchpath

2010-06-22 Thread Robin Wittler
Hello, if i execute the following short script and ./mozilla/plugins/libflashplayer.so exists, there will be a segfault. (process:9213): GLib-GObject-CRITICAL **: /build/buildd-glib2.0_2.24.1-1-i386-84Pp4V/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init() (process:9213):

Re: [PyQt] Problem connecting buttonClicked signal

2010-06-22 Thread Darryl Wallace
Hello > -Original Message- > From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt- > boun...@riverbankcomputing.com] On Behalf Of dizou > Sent: June-22-10 2:11 PM > To: pyqt@riverbankcomputing.com > Subject: [PyQt] Problem connecting buttonClicked signal > > > I have a bunch of QPushButto

Re: [PyQt] Problem connecting buttonClicked signal

2010-06-22 Thread dizou
Fixed this by changing buttonGroup to self.buttonGroup. Why would this matter? -- View this message in context: http://old.nabble.com/Problem-connecting-buttonClicked-signal-tp28963271p28963628.html Sent from the PyQt mailing list archive at Nabble.com. _

[PyQt] Problem connecting buttonClicked signal

2010-06-22 Thread dizou
I have a bunch of QPushButtons in a QButtonGroup. I am trying to connect the buttonClicked() signal with a method, but I am not able to. This is what I have: class DrawWidget(QWidget): def __init__(self, parent): QWidget.__init__(self, parent) self.Setup() def Se

[PyQt] Problem connecting buttonClicked signal

2010-06-22 Thread dizou
I have a bunch of QPushButtons in a QButtonGroup. I am trying to connect the buttonClicked() signal with a method, but I am not able to. This is what I have: class DrawWidget(QWidget): def __init__(self, parent): QWidget.__init__(self, parent) self.Setup() def Se

[PyQt] binary file viewer with textEdit (PyQt)

2010-06-22 Thread sandokan
Hi, hope you can help me. I am trying to view whole contents of binary file (PE file) in Qt TextEdit widget but still running into some problems (speed is the main problem). I have tried these two ways: 1) converting data using "codecs" s = codecs.open(self.filename,'rb','mbcs').read() self.ui.tex

Re: [PyQt] QXmlQuery example needed

2010-06-22 Thread David Boddie
On Tue Jun 22 07:03:51 BST 2010, Ruslan Popov wrote: > Can someone explain me how to use QXmlQuery. I have simple XML file on the > filesystem and I need to get one piece of it. My code following: > > out = QString() > query = QXmlQuery() > query.setMessageHandler(handler)

[PyQt] QXmlQuery example needed

2010-06-22 Thread Ruslan Popov
Hi all, Can someone explain me how to use QXmlQuery. I have simple XML file on the filesystem and I need to get one piece of it. My code following: out = QString() query = QXmlQuery() query.setMessageHandler(handler) q_str = 'doc("./uis/logic.xml")/logic/rule'