Re: Applying PySide's QAbstractTableModel Programming Software Development by Mark_94 Even although this topic is 11 years old (in 2024), it's still very helpfulby showing how to properly program in Python3. I've readily translated it to PySide6 and it works fine except for one tiny prob: sorting the MP column with "TypeError: '<' not supported between instances of 'str' and 'float'". I'm not sure how to fix it. Re: IDE for PyQt.. Programming Software Development by MikaelHalen PyQT can be a hassle to setup in Eclipse but when it is set up it works pretty nicely! There is [URL="http://popdevelop.com/2010/04/setting-up-ide-and-creating-a-cross-platform-qt-python-gui-application/"]a guide at popdevelop[/URL] that shows you how to setup Eclipse in Windows to work with PyQT, with code completion and all. Re: error in configuring PyQt Programming Software Development by e-papa PyQt-win-gpl-4.8.3, i already have it and i have extracted it. Re: Python GUI Programming Programming Software Development by vegaseat PyQT was no problem on Windows XP. I downloaded and installed: [url]http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-Py2.5-gpl-4.4.3-1.exe[/url] The cumbersome split between QtCore and QtGui is made simpler if you use the import statements show below ... [code=python]# a simple window using PyQT # with 2 buttons and a label … Re: Python GUI Programming Programming Software Development by Ene Uran PyQT has an interesting widget called a dial (circular slider). Here is a simple applcation: [code=python]# use a PyQT QDial knob to select a temperature # show Celsius and corresponding Fahrenheit values # as the knob is rotated # tested with PyQT4.5 and Python3.0 # ene import sys # has minimal namespace conflicts from PyQt4.QtCore … Re: Python GUI Programming Programming Software Development by vegaseat PyQt, or in this case PySide, allows you to look at a given web page via PySide.QtWebKit.QWebView() ... [code]# PySide is the official LGPL-licensed version of PyQT # You can download and use the Windows self-extracting installer # PySide-1.0.0qt472.win32-py2.7.exe # from: http://developer.qt.nokia.com/wiki/PySide_Binaries_Windows # modified … Re: New python 3 modules Programming Software Development by Stefano Mtangoo PyQT is out for QT fans. It is in pyQT 4.5 For more, see here: [url]http://www.riverbankcomputing.co.uk/news/pyqt-45[/url] Re: Suggestion needed from python geeks.. Help please... Programming Software Development by snippsat PyQt support python 3.x [url]http://www.riverbankcomputing.co.uk/software/pyqt/intro[/url] This post has many PyQt example. [url]http://www.daniweb.com/forums/thread191210.html[/url] There are also example of new function for Tkinter. Tkinter version that comes with the Python 3.1 installation includes expansion module ttk. Look at … Re: Need Python Form Builder Programming Software Development by arunpawar PyQT has commercial form builder for which you have to pay. Pyside which is open source implementation of QT like PyQT is new and yet to have a form builder. I guess it'll take time. Re: python & guis Programming Software Development by scru PyQt is by far the best gui toolkit for python. wxPython and pyGTK can't compare to it. It is a truly cross platform commercial grade library with excellent documentation. The only reason it doesn't have a broader user base is because the free version is under a gpl license (soon to be changed) I have tried all the other main ones and have been … Re: killer gui in python... Programming Software Development by scru PyQt and PyGTK work on linux. The latter may not be as customizable as the former though, since GTK rather uses the user's theme for customization. I hope when you go about making your "killer gui" you don't customize it to the extent that it becomes unusable. Re: Python 2 or 3?? Really confused Programming Software Development by snippsat PyQt is compitable with python 3,and of course build in Tkinter. [url]http://www.riverbankcomputing.co.uk/news[/url] For beginner there is a massive amount of quality book/tutorials/forum help that are almost all inn pyhon 2.x. Is not a smart ting to overlook all that info because you look only for for python 3 stuff. Re: Python 2 vs Python 3 Programming Software Development by telmo96 PyQt rules, and you can use QtDesigner to help. PyQt + external runtime... need help Programming Software Development by Tcll [Click Here](hey there everyone... :) I need some help with an external runtime interface with PyQt... here's my current code: import API API.init() #show the Qt window _init_(depth) #(this module): print text to both the console and the Qt window (checking for updates to API) API.run(files) #take over the Qt window with API... how can I make … PyQT Designer error Programming Software Development by Srin I wanted to install a GUI toolkit for python and pyqt looked good but when I install the complete binary on the pyqt site and run designer, I get this error when I try to go to the code [IMG]http://i167.photobucket.com/albums/u154/Final_04/pyqtdesignererror.png[/IMG] Anyone know how to fix it? And if not, can I manually code with the pyqt … Re: PyQT Designer error Programming Software Development by nabla2 I don't know how to fix error from the screenshot, but i PyQt folder you can find three utility programs: [LIST] [*][B]pyuic4.bat[/B] corresponds to the Qt uic utility. It converts GUIs created using Qt Designer to Python code. [*][B]pyrcc4.exe[/B] corresponds to the Qt rcc utility. It embeds arbitrary resources (eg. icons, images, translation… Re: pyqt QTableView printing ( c++ translate to python) Programming Software Development by HiHe Here is a typical example using PyQT: '''pqt_tableview2.py use PyQT's QTableView and QAbstractTableModel to present tabular data a rather simplified experiment tested with PyQT 4.8 and Python 3.2 ''' from PyQt4.QtCore import * from PyQt4.QtGui import * class MyWindow(QWidget): def … PyQt designer - calling widget form from main window Programming Software Development by Dan08 Hi, I just installed PyQt Designer to start creating UI's with python, I've used WxPython and TKinter before, but never really done anything with PyQt. So for some of you this might be a very simple question that I can't seem to find with google. I really like how it all works and I can create a UI very quickly, a bit like Visual Basic, but now I … Re: PyQt save an qgraphicsview Programming Software Development by woooee I would try render first, but I have never tried it. From the docs at [url]http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qgraphicsview.html[/url] [QUOTE] QGraphicsView.render (self, QPainter, QRectF target = QRectF(), QRect source = QRect(), Qt.AspectRatioMode mode = Qt.KeepAspectRatio) Renders the source rect, which is in view … Re: [PyQt] Reimplementing close and other events.. Programming Software Development by python.noob Solved the issue.. posted the same question in qt forum.. visit this thread.. [URL="http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-catch-close-event-in-this-program-pyqt-26554.html"]http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-catch-close-event-in-this-program-pyqt-26554.html[/URL] I don't know why nobody has … PyQt save an qgraphicsview Programming Software Development by pdini Hi all, I developed a GUI application using PyQt which comport a QGraphicsView. In this QGraphicsView I have a QGraphicsScene with a lot of items (more than 10'000): polygons, rectangles, texts, etc. How can I save it as an image like it appears on the screen (.png for example)? I couldn't find any example of this. Should I use QImage or … Re: pyqt QTableView printing ( c++ translate to python) Programming Software Development by HiHe A typical QPrint example for PyQT: #!/usr/bin/env python """ Lets get the print thing working http://www.riverbankcomputing.com/pipermail/pyqt/2009-January/021592.html """ from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtWebKit as QtWebKit import sys… Re: pyqt QTableView printing ( c++ translate to python) Programming Software Development by iraj.jelo vey thanx dear . but i want print a tableView on the paper. i need example for QPrinter and print vew :) [here](http://www.qtcentre.org/threads/3796-QTableView-printing?highlight=Qprinter) is code for c++ and qt but i neet for python and pyqt Re: pyqt QTableView printing ( c++ translate to python) Programming Software Development by iraj.jelo very thanx dear . but i want print a tableView on the paper. i need example for QPrinter and print vew :) here is code for c++ and qt but i neet for python and pyqt Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by xopenex Hi guys, still Noob here, so i apologize for not using the correct terminology. I will be as detailed and accurate as possible! I've been using QT Designer, and been trying to figure out how to "combine" the GUI ive created with the python script I wrote before making a GUI. I had my .py script made before I even knew about PyQT, QtGUI,… Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by vegaseat Here is an example how to connect a button to a label ... [code]''' run_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "button_label1.ui" it contains a QMainWindow form with a QPushButton and a QLabel select the QPushButton and use the Desiger's "Edit Signals/… Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by vegaseat The PyQT or PySide Designer creates an XML code file with extension .ui that really does not have to be translated to a Python code .py file. I find the the XML file more readable than the Python file you make from it. All you need to write is the UI loader program in Python that loads the forms and widgets and then acts on it. You can quickly … Re: Python, PyQT, understanding modules, classes, and objects... :) Programming Software Development by HiHe I took vegaseat's sample code and made it even simpler: [code]''' run_form_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "form_button_label1.ui" it contains a QWidget form with a QPushButton and a QLabel The QPushButton and QLabel are not connected using the … how to load external PyQt Stylesheet using QString object Programming Software Development by krystosan Hello, I have got [this](http://www.yasinuludag.com/darkorange.stylesheet) a Qt stylesheet, how do I load it to my PyQt module after creating a QString Object. if I do from PyQt4 import QtCore s = QtCore.QString('c:\myProject\darkFantasy.stylesheet') the above code loads the path string rather than the actual stylesheet. So how do I … Play Wave Sound Files with PySide/PyQT Programming Software Development by vegaseat The PySide (PyQT) GUI toolkit can be used to play wave sound files.