I’m learning Python by trying to build a simple plotting application and would like to have two windows in my main screen. I’m using the QSplitter module but am having no luck so far. I’d like the left portion to be used for inputting information via lineEdit() (for now) and the right to show the plot. So far I have
Tag: qmainwindow
Create a dependent window?
I want to create a secondary window which is free-floating in relation to the main window. But I also want it to close when the main window closes. Indeed, I want the application to end completely when the main window closes, and assumed this would be default behaviour. MRE: As the code is, closing the main window does not close
PyCharm showing wrong parameter info for PyQt methods
I don’t do a lot of work in GUI’s, but I’ve decided to move from occasionally using PyQt4 to PyQt5. My IDE is giving me warnings about some of the __init__ functions, particularly QWidget and QMainWindow. If you look at the IntelliSense’d parameters, you’ll see that the parentparameter has a default and the flags does not. The IDE tells me
Resize QMainWindow to minimal size after content of layout changes
I’m using a subclass of QMainWindow, in which I declared a central widget. This widget contains, among other things, a QGridLayout, which holds a set of buttons. The amount of buttons can grow or shrink, depending on the user’s input. The spacing is set to zero, so that all buttons are clumped together. By default, it looks like this: If
Qt Framework, PyQt5 and AttributeError: ‘MyApp’ object has no attribute ‘myAttribute’
Last week I started to learn Python and I developed some command line apps. Now I would like to develop apps with GUI. I searched in internet and I found a project that fits my needs: Qt Project (http://qt-project.org) and PyQt (http://www.riverbankcomputing.com/software/pyqt/intro). I installed Qt 5.3.2 Open Source, SIP 4.16.4, PyQt5 5.3.2 on Mac OS X 10.10 and python 2.7.6.