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):
...
- 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):
...
- 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...
- 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):
...
- 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...
- 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...
- 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...
- 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):
...
- 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 ==...
- 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 = ...
- 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...
- 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", [
...
- 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)
...
- PyQt/Binding widget properties to Python variables (bindable.py) . . . 0 matches
- 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...
- PyQt/Augmented Web Browser (augmented.py) . . . 0 matches
- PyQt/Animated items using delegates and movies (movie_delegate.py) . . . 0 matches
- 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...
- 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",
...
- 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...
- 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 = [
...
- 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):...
- 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...
- 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):
...
- PyQt/Adding a background image to an MDI area (mdiarea_pixmap.py) . . . 0 matches