Questions tagged [pyside]

Questions about using PySide, a Python Qt bindings project.

The PySide project provides LGPL-licensed Python bindings for the Qt cross-platform application and UI framework. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support all of the platforms as Qt itself.

3517 questions
1
vote
1 answer

How to show Qt.Tool window with minimize/maximize windows controls?

I have... class ToolWindow(QtWidgets.QMainWindow): """Generic window to be used as non-modal tool Usage: tool_win = ToolWindow() layout = QtWidgets.QHBoxLayout() button = QtWidgets.QPushButton('hello') …
fredrik
  • 9,631
  • 16
  • 72
  • 132
1
vote
1 answer

PySide & Python: How to send a dictionary via Signal/Slot?

Platform: Centos 6 & Python 2.6.6 After looking at every example and question about doing this, for the life of me I can't get it to work on my system. Most answers seem to revolve around using PyQt instead of PySide, which isn't an option for me: I…
PfunnyGuy
  • 750
  • 9
  • 22
1
vote
1 answer

Qt: No border on buttons making them non-clickable?

I'm trying to set a style to a button so that it has no border, but it seems the lack of border then makes the button non-clickable. Is there a better way of getting no border? button = QtGui.QPushButton(todo, self) button.move(0, i *…
Tryst
  • 313
  • 1
  • 6
  • 12
1
vote
1 answer

How to focus view on QLabel

I want to find QLabel with specific text and focus view on it. Finding widget with desired text is easy, but I couldn't figure out how to focus view on it. The code so far looks like this: import sys from PySide import QtCore, QtGui class…
as tek
  • 11
  • 3
1
vote
1 answer

PySide - QStackedLayout.setCurrentIndex() does not work as expected when it's inside a for-loop

I'm implementing a UI, which it contains several buttons on top, and there's a QStackedLayout object under those buttons, the purpose of clicking on different buttons should automatically switch to its associated QWidget, which is inside the…
PREDATOR
  • 45
  • 3
1
vote
0 answers

PySide: Place/move animated QMovie GIF in QSplashScreen

I'm having trouble getting this to work. I'd like to be able to place an animated GIF in a specific spot on my QSplashScreen. The GIF has to be animated using multiprocessing and the onNextFrame method so that it will play during the initial load…
Mike Bourbeau
  • 481
  • 11
  • 29
1
vote
0 answers

Sprite sheet animation vs GIF animation

I've done a little research and found how to play an animated GIF using QMovie here. I haven't been able to find much about playing a sprite sheet animation in PySide. I found this example, but I'm unable to translate the syntax. Which method…
Mike Bourbeau
  • 481
  • 11
  • 29
1
vote
1 answer

PySide Error - QPaintDevice: Cannot destroy paint device that is being painted

I'm baffled by this one. I tried moving the QPainter to it's own def as some have suggested, but it gives the exact same error. Here's the def I created. def PaintButtons(self): solid = QtGui.QPixmap(200, 32) paint = QtGui.QPainter() …
Tryst
  • 313
  • 1
  • 6
  • 12
1
vote
1 answer

Does QtUiTools.QUiLoader() require QFile as input for some reason?

I have: from PySide import QtGui, QtUiTools What is the difference between: ui_file = QtCore.QFile('my_ui.ui') ui_file.open(QtCore.QFile.ReadOnly) my_ui = QtUiTools.QUiLoader().load(ui_file) ui_file.close() and: self.ui =…
fredrik
  • 9,631
  • 16
  • 72
  • 132
1
vote
1 answer

PyInstaller error with PySide

I have been playing with PyInstaller on Windows 7 (64 bit). I am currently using PyInstaller 3.1.1 with Python 2.7.6. I created an app that creates a simple PySide GUI and generated a dist folder with an executable with this command: >…
Christopher Spears
  • 1,105
  • 15
  • 32
1
vote
1 answer

Inactivate pyside-generated windows for the duration of background task

I have a simple gui application written in python with pyside. There is a main window and also some modal QDialogs. Depending on the user's actions in some of these dialogs, the application might have to connect to a database and perform…
1
vote
1 answer

How to make an embedded python interpreter's local space share some variables with global space

I have written a command line widget in my pyside program. The structure is like this: class CommandWidget(QWidget): def __init__(self, parent = None): super(CommandWidget, self).__init__(parent) self.buffer=PyInterp(self) …
Johnnylin
  • 507
  • 2
  • 7
  • 26
1
vote
1 answer

PySide: Emiting signal from QThread in new syntax

I'm trying (and researching) with little success to emit a signal from a working Qthread to the main window. I don't seem to understand how I should go about this in the new syntax. Here's a simple example. from PySide.QtCore import * from…
1
vote
0 answers

pyside qdialog box or qaction icon is closing app

The issue is a combination of setting an icon on the action in the toolbar (or qpushbutton) and showing a qmessagebox when triggered. If I remove the icon, the message box displays. And if I remove the message box but keep the icon, the app stays…
1
vote
1 answer

pySide/ pyQt - Marker bar?

What would be the easiest way to create a marker bar in PySide/ PyQt, similar to (source: sideofsoftware.com) ?
n.jmurov
  • 123
  • 2
  • 12
1 2 3
99
100