hello, I'm trying to make a couple of functions that add lines to the end of
a QTextEdit window. one to add html and one to add text. it's not working
and i can't figure out why or how to get around it. it doesn't seem to make
any sense.
here's my code.
def addline(self, text):
I figured out the problem with everything coming in reverse order. i needed
movePosition instead of setPosition. that seems to fix the color issue
also. i guess it's working fine so far, thanks anyway!
On Thu, Oct 8, 2009 at 3:47 AM, inhahe inh...@gmail.com wrote:
hello, I'm trying to make a
actually it doesn't solve the color issue. the weird thing with the color
issue is that it doesn't even make it black -- it makes it the color of the
first line which is in html, even though the first line has font
color=redsome text/font, so it should close the color at the end of it.
On Thu,
Hi,
seems there is a bug with the newest version of pyqt and sip,
with pyqt-4.5.4 and sip-4.8.2 is possible to override label events as follow:
self.imagelabel.mouseReleaseEvent=self.eventMouseRelease
this snippet does't work with pyqt-4.6 and sip-4.9, the event is never
triggered,
regards
I figured out how to do it, at least one way..using insertText with a format
argumentthanks anyway
On Thu, Oct 8, 2009 at 3:47 AM, inhahe inh...@gmail.com wrote:
hello, I'm trying to make a couple of functions that add lines to the end
of a QTextEdit window. one to add html and one to add
Jason H wrote:
I have a GUI application and I want to trigger an event after my GUI starts:
if __name__==__main__:
a = QApplication(sys.argv)
m=Main(False)
m.show()
a.exec_()
I put QTimer.singleShot(0, self.start)
after the m __init__ialization, both in the class, and
Thanks for this, Baz.
Indeed your example works as advertised. I'm going to work from that to create
a failing example.
Thanks!
- Original Message
From: Baz Walter baz...@ftml.net
To: pyqt@riverbankcomputing.com pyqt@riverbankcomputing.com
Sent: Thu, October 8, 2009 2:09:23 PM
Hi list, I'm trying to show an image in a tooltip, everything is fine in my
Debian but in Windows doesn't work, it shows plaint text only.
Does PyQt tooltips supports html in windows?
I use PyQt 4.4.2
Cheers, Manuel.
___
PyQt mailing list
Hi,
In previous PyQt versions, the QClipboard.text() method accepted a
Python string as an argument:
QtGui.QApplication.clipboard().text('xml')
With PyQt 4.6, this throws an exception:
TypeError: argument 1 of QClipboard.text() has an invalid type
But it seems to work OK with a QString
Ok, to get it, try this:
import pdb
import sys
from PyQt4 import QtCore, QtGui
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
QtCore.QTimer.singleShot(0, self.start)
def start(self):
pdb.set_trace()
print
On Thu, 8 Oct 2009 21:11:45 -0400, Doug Bell do...@bellz.org wrote:
Hi,
In previous PyQt versions, the QClipboard.text() method accepted a
Python string as an argument:
QtGui.QApplication.clipboard().text('xml')
With PyQt 4.6, this throws an exception:
TypeError: argument 1 of
11 matches
Mail list logo