pyside

Creating MSI with cx_freeze and bdist_msi for PySide app

青春壹個敷衍的年華 提交于 2019-12-20 14:48:06
问题 I have a PySide application that I'm trying to package into an MSI using cx_freeze. I can successfully create an MSI installer, but I'm having trouble figuring out how to list additional modules to be included in the package. Here's my setup.py script: import sys from cx_Freeze import setup, Executable company_name = 'My Company Name' product_name = 'My Gui' bdist_msi_options = { 'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}', 'add_to_path': False, 'initial_target_dir': r'

Creating MSI with cx_freeze and bdist_msi for PySide app

邮差的信 提交于 2019-12-20 14:46:28
问题 I have a PySide application that I'm trying to package into an MSI using cx_freeze. I can successfully create an MSI installer, but I'm having trouble figuring out how to list additional modules to be included in the package. Here's my setup.py script: import sys from cx_Freeze import setup, Executable company_name = 'My Company Name' product_name = 'My Gui' bdist_msi_options = { 'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}', 'add_to_path': False, 'initial_target_dir': r'

PyQt vs PySide comparison [closed]

≡放荡痞女 提交于 2019-12-20 11:37:16
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I currently develop many applications in a Qt heavy C++/Python environment on Linux, porting to PC/Mac as needed. I use Python embedded in C++ as well as in a stand alone GUI. Qt is used fro xml parsing/event handling/GUI/threading and much more. Right now all my Python work

PyQt vs PySide comparison [closed]

馋奶兔 提交于 2019-12-20 11:37:15
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I currently develop many applications in a Qt heavy C++/Python environment on Linux, porting to PC/Mac as needed. I use Python embedded in C++ as well as in a stand alone GUI. Qt is used fro xml parsing/event handling/GUI/threading and much more. Right now all my Python work

How to plot on my GUI

孤者浪人 提交于 2019-12-20 10:38:06
问题 I'm designing a GUI with PyQt where I need to display a matplotlib/pylab window when I click on a button that makes the plot of the data from a function I've created. It's like a runtime used in Matlab. I want to keep the matplotlib/pylab window as my window everytime I press that button. 回答1: Here is a basic example that will plot three different samples using a QThread : #!/usr/bin/env python #-*- coding:utf-8 -*- import random from matplotlib.backends.backend_qt4agg import

Using Qt model/view framework to notify QGraphicsItem in a view of user-edit made in another view

我只是一个虾纸丫 提交于 2019-12-20 06:10:00
问题 I am trying to design a multiview application to use Qt's model/view framework so that I can move lots of complex logic out of my QGraphicsItem classes. As shown in the figure below, the application consists of two (or more) views each containing of an identical series of red vertical guide lines A1 , B1 , C1 ... at the same horizontal positions along each view. I'd like to ensure that when the user drags a guide line one view, say from a point A1 to A_1' as shown in the figure above, all

How to modify style hint without QProxyStyle?

给你一囗甜甜゛ 提交于 2019-12-20 04:26:13
问题 I use Python bindings of Qt (PySide or PyQt4). They don't have QProxyStyle . I want to change the value of a style hint. For example change the SH_Menu_SubMenuPopupDelay popup delay time of a submenu. In native C++ Qt I would use a QProxyStyle and override styleHint and filter for the style hint of interest and return the value I like. It's done here for example. But in the Python bindings I use QProxyStyle is not available. So how can a style hint of an existing style be modified there? 回答1:

PyQt listview with html rich text delegate moves text bit out of place(pic and code included)

北城余情 提交于 2019-12-20 03:47:11
问题 Got a listview where items need to make use of bold text, so a html delegate is the way to go. I looked around and found several solutions and out of them I made this code, but it has the issue that you can see in the gif, which shows the results with the use of the delegate and without. from PyQt4.QtCore import * from PyQt4.QtGui import * import sys class HTMLDelegate(QStyledItemDelegate): def __init__(self, parent=None): super(HTMLDelegate, self).__init__(parent) self.doc = QTextDocument

How do I load children from .ui file in PySide?

跟風遠走 提交于 2019-12-20 02:48:12
问题 For now I'm loading them like this: if __name__ == '__main__': app = QApplication(sys.argv) loader = QUiLoader() file = QFile('main.ui') file.open(QFile.ReadOnly) window = loader.load(file) file.close() window.show() # Here: window.centralwidget.findChild(QListWidget, 'listWidget').addItems(['Item {0}'.format(x) for x in range(100)]) sys.exit(app.exec_()) But I think it's uncomfortably, is there any other way, probably to load whole namespace or whatever? 回答1: At the moment, the PySide

QDialog: how to use question mark (?) button?

我只是一个虾纸丫 提交于 2019-12-19 17:13:51
问题 By default, QDialog windows have a question mark pushbutton in the upper-right corner. When I press it, the mouse cursor is changed to the 'Forbidden' cursor, and nothing else seems to happen. While there is lots of information generated from those who want to remove the question mark (at least three SO threads are devoted to the topic), the documentation for QDialog doesn't have anything about how to actually use it. How do I get my application to display information when the question mark