Results 201 - 225 of about 264 results out of about 3454 pages. (1.65 seconds)

PyQt/Handling an internal Qt MIME type . . . 1 match
...{{{ #!python import sys from PyQt4.QtCore import QDataStream, Qt, QVariant from PyQt4.QtGui import * class TreeModel(QStandardItemModel): def __init__(self, parent = None): ...

2.7k - rev: 1 (current) last modified: 2014-06-04 22:03:45

PyQt/Handling Qt's internal item MIME type . . . 1 match
...{{{ #!python import sys from PyQt4.QtCore import QDataStream, Qt, QVariant from PyQt4.QtGui import * class TreeModel(QStandardItemModel): def __init__(self, parent = None): ...

4.9k - rev: 1 (current) last modified: 2014-06-04 22:00:44

PyQt/Fading and unfading a widget with a delay . . . 1 match
...after the fade occurs. {{{ #!python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class Window(QWidget): def __init__(self, parent = None): Q...

1.1k - rev: 1 (current) last modified: 2014-06-05 22:22:34

PyQt/Fading Between Widgets . . . 1 match
...ets on different pages. {{{ import sys from PyQt4.QtCore import QTimeLine from PyQt4.QtGui import * class FaderWidget(QWidget): def __init__(self, old_widget, new_widget): ...

2.3k - rev: 1 (current) last modified: 2014-06-05 22:21:16

PyQt/Exposing Qt Classes to QtWebKit . . . 1 match
...ethods to !JavaScript. {{{ #!python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * js = \ """ QFile = function(path) { var nam...

3.2k - rev: 2 (current) last modified: 2014-06-07 22:33:51

PyQt/Exporting a file to other applications . . . 1 match
...ort sys from PyQt4.QtCore import QDir, QMimeData, Qt, QTemporaryFile, QUrl from PyQt4.QtGui import * class Window(QLabel): def __init__(self, parent = None): QLabel...

1.1k - rev: 1 (current) last modified: 2014-06-07 22:53:22

PyQt/Embedding Widgets in Web Pages . . . 1 match
... {{{ #!/usr/bin/env python import sys from PyQt4.QtCore import QSize, Qt from PyQt4.QtGui import * from PyQt4.QtWebKit import * html = \ """<html> <head> <title>Python Web Plug...

3.7k - rev: 1 (current) last modified: 2014-06-07 22:30:56

PyQt/Drawing highlighted rows in a calendar widget . . . 1 match
...urrent week in a calendar widget. {{{ #!python from PyQt4.QtCore import * from PyQt4.QtGui import * class WeekCalendar(QCalendarWidget): def __init__(self, *args): ...

1.2k - rev: 1 (current) last modified: 2014-06-05 21:45:19

PyQt/Customising tab bars . . . 1 match
...ead of the tab's normal size. {{{ #!python from PyQt4.QtCore import QSize from PyQt4.QtGui import * class TabBar(QTabBar): def tabSizeHint(self, index): if index ==...

1.9k - rev: 1 (current) last modified: 2014-06-07 00:09:04

PyQt/Customising a tab to contain a menu . . . 1 match
...pproach the problem. {{{ #!python import sys from PyQt4.QtCore import Qt from PyQt4.QtGui import * if __name__ == "__main__": app = QApplication(sys.argv) tabWidget = ...

0.9k - rev: 1 (current) last modified: 2014-06-07 00:18:39

PyQt/Creating a widget with a fixed aspect ratio . . . 1 match
.... {{{ #!python import sys from PyQt4.QtCore import pyqtSignal, QSize, Qt from PyQt4.QtGui import * class MyWidget(QWidget): clicked = pyqtSignal() keyPressed = pyqtSig...

2.2k - rev: 1 (current) last modified: 2014-06-07 12:50:46

PyQt/Creating a context menu for a tree view . . . 1 match
...t depths in the tree. {{{ #!python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * data = [ ("Alice", [ ("Keys", []), ("Purse", [ ...

2.2k - rev: 1 (current) last modified: 2014-06-07 21:43:36

PyQt/Compass widget . . . 1 match
...t:compasswidget.png}} {{{ #!python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class CompassWidget(QWidget): angleChanged = pyqtSignal(float) ...

3.8k - rev: 1 (current) last modified: 2014-06-07 13:03:22

PyQt/Binding widget properties to Python variables (bindable.py) . . . 0 matches

2.5k - rev: 1 (current) last modified: 2014-06-04 22:09:42

PyQt/Binding widget properties to Python variables . . . 1 match
...one way of doing this: {{{ #!python import sys from PyQt4.QtCore import * from PyQt4.QtGui import * def bind(objectName, propertyName, type): def getter(self): retu...

2.5k - rev: 1 (current) last modified: 2014-06-04 22:09:42

PyQt/Augmented Web Browser (augmented.py) . . . 0 matches

0.2k - rev: 1 (current) last modified: 2014-06-07 22:35:34

PyQt/Animated items using delegates and movies (movie_delegate.py) . . . 0 matches

6.1k - rev: 1 (current) last modified: 2014-06-07 16:38:10

PyQt/Animated items using delegates and movies . . . 1 match
...om, sys from PyQt4.QtCore import pyqtSignal, QObject, Qt, QTimer, QVariant from PyQt4.QtGui import * }}} The delegate class uses a QMovie instance to generate images to display f...

6.1k - rev: 1 (current) last modified: 2014-06-07 16:38:10

PyQt/Animated items using delegates . . . 1 match
... {{{ #!python import sys from PyQt4.QtCore import pyqtSignal, Qt, QVariant from PyQt4.QtGui import * # Icons used for animation: _icon0_xpm = [ "16 16 4 1", ". c None", ...

4.2k - rev: 1 (current) last modified: 2014-06-07 16:37:21

PyQt/Adding the Gopher Protocol to QtWebKit . . . 1 match
... os, sys from PyQt4.QtCore import QObject, QTimer, QUrl, QVariant, SIGNAL from PyQt4.QtGui import * from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkRe...

8.9k - rev: 1 (current) last modified: 2014-06-07 21:58:46

PyQt/Adding tab-completion to a QLineEdit . . . 1 match
...mplete piece of text. {{{ #!python import sys from PyQt4.QtCore import Qt from PyQt4.QtGui import QApplication, QLineEdit class LineEdit(QLineEdit): completion_items = [ ...

1.2k - rev: 1 (current) last modified: 2014-06-07 11:45:47

PyQt/Adding items to a list widget . . . 1 match
...g QListWidgetItem rather than just plain strings. {{{ #!python import sys from PyQt4.QtGui import * app = QApplication(sys.argv) listWidget = QListWidget() for i in range(10):...

0.7k - rev: 1 (current) last modified: 2014-06-07 16:43:55

PyQt/Adding custom signals to a simple painted widget . . . 1 match
.... {{{ #!python import sys from PyQt4.QtCore import pyqtSignal, QSize, Qt from PyQt4.QtGui import * class MyWidget(QWidget): clicked = pyqtSignal() keyPressed = pyqtSig...

1.7k - rev: 1 (current) last modified: 2014-06-07 12:48:38

PyQt/Adding auto-completion to a QLineEdit . . . 1 match
... used by a QLineEdit. {{{ #!python import sys from PyQt4.QtCore import Qt from PyQt4.QtGui import QApplication, QCompleter, QLineEdit, QStringListModel def get_data(model): ...

1.0k - rev: 1 (current) last modified: 2014-06-07 11:44:50

PyQt/Adding a background image to an MDI area (mdiarea_pixmap.py) . . . 0 matches

1.9k - rev: 2 (current) last modified: 2014-06-07 14:06:42

Previous 4 5 6 7 8 9 10 11 Next

Unable to edit the page? See the FrontPage for instructions.