pyqt5

msgbox error while threading , GUI blocks [closed]

帅比萌擦擦* 提交于 2020-12-15 03:38:59
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have a problem while executing the following gui. it works normally if there's no msgbox, but when there is a mesbox it blocks. any idea why the gui blocks when there is message. thank you from PyQt5 import QtCore, QtGui, QtWidgets import threading import time class Ui

msgbox error while threading , GUI blocks [closed]

心不动则不痛 提交于 2020-12-15 03:38:33
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have a problem while executing the following gui. it works normally if there's no msgbox, but when there is a mesbox it blocks. any idea why the gui blocks when there is message. thank you from PyQt5 import QtCore, QtGui, QtWidgets import threading import time class Ui

Window Icon Not Displaying when Frozen with cx_Freeze

会有一股神秘感。 提交于 2020-12-13 07:29:04
问题 I’m using Python 3.6, PyQt5, and cx_Freeze in a Windows environment. The portion of code I use to display the icon on the main window and children windows is: if getattr(sys, 'frozen', False): # If frozen with cx_Freeze homePath = os.path.dirname(sys.executable) else: # Otherwise, if running unfrozen (e.g., within Spyder) homePath = os.path.dirname(__file__) iconFileName = os.path.join(homePath, 'iconLarge.ico') setWindowIcon(QIcon(iconFileName)) The frozen program defaults to a Windows

Is it possible to add text on top of a scrollbar?

北城以北 提交于 2020-12-13 04:44:21
问题 I would like to add some text to the left end side, the right end side and on the slider as in the figure below I don't understand how I can add text on top of a widget here the minimal example of the Qscrollbar (without texts) from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class Viewer(QMainWindow): def __init__(self, parent=None): super(Viewer, self).__init__() self.parent = parent self.centralWidget = QWidget() self.setCentralWidget(self

Is it possible to add text on top of a scrollbar?

↘锁芯ラ 提交于 2020-12-13 04:43:58
问题 I would like to add some text to the left end side, the right end side and on the slider as in the figure below I don't understand how I can add text on top of a widget here the minimal example of the Qscrollbar (without texts) from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class Viewer(QMainWindow): def __init__(self, parent=None): super(Viewer, self).__init__() self.parent = parent self.centralWidget = QWidget() self.setCentralWidget(self

Is it possible to add text on top of a scrollbar?

孤人 提交于 2020-12-13 04:43:07
问题 I would like to add some text to the left end side, the right end side and on the slider as in the figure below I don't understand how I can add text on top of a widget here the minimal example of the Qscrollbar (without texts) from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class Viewer(QMainWindow): def __init__(self, parent=None): super(Viewer, self).__init__() self.parent = parent self.centralWidget = QWidget() self.setCentralWidget(self

Python unable to import module within library [closed]

非 Y 不嫁゛ 提交于 2020-12-13 03:30:50
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 18 days ago . Improve this question I'm trying to use the QSerialPort module of PyQt5. Everything I have found has indicated that QtSerial which contains QSerialPort should come with PyQt5. For example, >>> from PyQt5 import QtSerial Traceback (most recent call last): File "<stdin>", line 1, in

Python unable to import module within library [closed]

安稳与你 提交于 2020-12-13 03:30:09
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 18 days ago . Improve this question I'm trying to use the QSerialPort module of PyQt5. Everything I have found has indicated that QtSerial which contains QSerialPort should come with PyQt5. For example, >>> from PyQt5 import QtSerial Traceback (most recent call last): File "<stdin>", line 1, in

Python unable to import module within library [closed]

人走茶凉 提交于 2020-12-13 03:28:59
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 18 days ago . Improve this question I'm trying to use the QSerialPort module of PyQt5. Everything I have found has indicated that QtSerial which contains QSerialPort should come with PyQt5. For example, >>> from PyQt5 import QtSerial Traceback (most recent call last): File "<stdin>", line 1, in

QCheckbox to check all other QCheckBoxes

为君一笑 提交于 2020-12-12 06:50:53
问题 My question is very similar to this post, Python PyQt - Checkbox to uncheck all other checkboxes. However, I am trying to check all other boxes when main checkbox is selected and at the same time, if any of the other boxes are selected independently, then I would like to deselect the main checkbox. I tried modifying the answer provided, but not able to put my head around the 'self.sender' signal. I am not able to change the selection when I deselect a checkbox. Here is the code that I