[PyKDE] Missing enums
Boudewijn Rempt
boud at valdyas.org
Fri Oct 19 16:38:20 BST 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think that there are some enums missing from the latest release of
PyQt:
Xlib: extension "GLX" missing on display ":0.0".
Traceback (most recent call last):
File "<stdin>", line 59, in ?
File "<stdin>", line 51, in main
File "<stdin>", line 25, in __init__
AttributeError: WNorthWestGravity
Mutex destroy failure: Device or resource busy
(The last line is interesting, too).
I tried this with the following script:
#!/usr/bin/env python
#
# redisplay.py - A Qt based redisplay object for Kalam.
#
# Belongs to Kalam, a Python interpretation of Finseth's
# The Craft of Text Editing
# (http://www.finseth.com/~fin/craft/)
#
import unittest, sys, string, codecs, time
from qt import *
TRUE = 1
FALSE = 0
class Redisplay(QScrollView):
def __init__(self, parent = None, name = "Redisplay"):
QScrollView.__init__(self, parent, name,
Qt.WNorthWestGravity or
Qt.WRepaintNoErase or
Qt.WResizeNoErase)
self.__cursorLine = 0
self.__cursorOn = FALSE
self.__cursorColumn = 0
self.__selectionMark = None
viewport = self.viewport()
viewport.setBackgroundMode(Qt.NoBackground)
viewport.setFocusPolicy(Qt.WheelFocus)
viewport.setCursor(Qt.IbeamCursor)
viewport.setFont(QFont("courier new"))
def main(args):
app=QApplication(args)
editor = Redisplay()
editor.setCaption("Test of Kalam, the pure-python editor")
editor.setGeometry(100,20,600,800)
app.setMainWidget(editor)
editor.show()
app.exec_loop()
if __name__=="__main__":
main(sys.argv)
- --
Boudewijn Rempt | http://www.valdyas.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE70Dq1N8fj6DnPxOgRAhvAAJ0Vv+UAnOAlgUIOgzmD7fCfFLG7yQCfaG6i
ndBfOgtK7CMCOe2vcpCw5/w=
=1R5l
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list