Member Avatar
Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long …
by vegaseat 1,720 in Software Development ()
Member Avatar
Use the PySide (PyQT) GUI toolkit to play animated gif files.
by vegaseat 1,720 in Software Development ()
Member Avatar
Just the very basics on how to draw a rotated text using the Python GUI toolkit PySide (public PyQt). Please experiment and embellish.
by vegaseat 1,720 in Software Development ()
Member Avatar
The PySide (PyQT) GUI toolkit can be used to play wave sound files.
by vegaseat 1,720 in Software Development ()
Member Avatar
I have made a QTableView that displays images from disk, there are two seriously agonizing problem I am facing. First of after the windows shows up making it maximize or changing size of window is very slow, and secondly I want to display images height width dependong on what can …
by krystosan in Software Development ()
Member Avatar
How do I display images in QListView of size of standard thumbnail size like 250 x 200 , and file nametext should wrap to next line , right now the images displayed are very small and are not positioned under each other in proper row column order. import sys import …
by krystosan in Software Development ()
Member Avatar
Using the PySide GUI toolkit will make selecting, copying and pasting encrypted and decrypted text somewhat easier. Not ideal yet, but it will be a good start for those of you who are not very familiar with GUI programming.
by vegaseat 1,720 in Software Development ()
Member Avatar
I recently made an appication that utilizes pyqt , i could say i wrote the code pythonic and made everything work work as I wanted, but didnt used any data model , so later I realized I could have used data model since I am building list in the QListView …
by krystosan in Software Development ()
Member Avatar
A small test program exploring the PySide/PyQT Label widget. With HTML code you can do some nice formatting of the label's text.
by vegaseat 1,720 in Software Development ()
Member Avatar
The PySide/PyQT QValidator restricts the type of input a widget like QLineEdit can accept. Here is a simple test.
by vegaseat 1,720 in Software Development ()
Member Avatar
This PySide (PyQT) code sample shows you how to apply a StyleSheet to a GroupBox containing a number of RadioButtons.
by vegaseat 1,720 in Software Development ()
Member Avatar
from PySide import QtCore,QtGui import sys class ToolBarUI(QtGui.QMainWindow): def __init__(self,*args,**kwargs): super(ToolBarUI,self).__init__(*args,**kwargs) self.floatingToolBar() pass def buttons(self): self.btnVLay=QtGui.QVBoxLayout() self.incSavbtn=QtGui.QPushButton("Save") self.emailbtn=QtGui.QPushButton("Email") self.upldbtn=QtGui.QPushButton("Upload") self.setPrjbtn=QtGui.QPushButton("Set Project") self.setThumb=QtGui.QPushButton("Set thumb") self.shwMatbtn=QtGui.QPushButton("Show Material") self.fixtexbtn=QtGui.QPushButton("Fix Texture Paths") btns = [self.incSavbtn,self.emailbtn,self.upldbtn,self.setPrjbtn,self.setPrjbtn,self.setThumb,self.shwMatbtn,self.fixtexbtn] [self.btnVLay.addWidget(each) for each in btns] def floatingToolBar(self): self.buttons() self.setLayout(self.btnVLay) self.show() pass if __name__ =='__main__': app = QtGui.QApplication(sys.argv) app.setStyle("cleanlooks") win …
by krystosan in Software Development ()
Member Avatar
The UI is as following . http://img.my.csdn.net/uploads/201211/03/1351957960_1171.jpg What I want is : When I press the Enter key ,the label should shows “Enter” When I press The blank space key ,the label should shows “space” How to implement this ? I know I should reimplement the keyPressEvent handler ,but I …
by chao.lee.927 in Software Development ()
Member Avatar
To display system clock time in LCD format I just want to display system clock time in LCD format, also want the time to be displayed with the format of hh:mm:ss ,my code is as following ,but when I run it ,it is out of my expectaions ,so anyone can …
by chao.lee.927 in Software Development ()
Member Avatar
PySide (public license PyQT) is my preferred Python GUI toolkit. Here we explore how to test some of the widgets available and create a digital clock.
by vegaseat 1,720 in Software Development ()
Member Avatar
i finally started having a look at gui yesterday, and tried to do some things with PySide, however i have the following problem; Whats wrong with this code? [CODE] !/usr/bin/python # -*- coding: utf-8 -*- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): …
by pwolf 14 in Software Development ()
Member Avatar
Hi, I've posted two scripts that I would like to improve. The first one (SparePartsDemo.py) is a little utility that takes a .csv (.txt) data file exported from another application, builds a SQLite database,performs a request to select and sort records and write the results to a sqlite database file, …
by J-M DESMETTRE in Software Development ()