-
Pyinstaller packaging py error ImportError: No module named FileDialog.
I use pyinstaller to package the environment is python2.7.11,pyinstaller 3.3.1. there are only these two py files
manage_utils.py
mainform.py.,pyinstaller -F mainform.py,
,
how did this happen? And the path of program execution seems to have chang...
-
How the Python file generated by PyUIC runs out of the interface, and how the custom slot function implements the specific code.
Qtdesigner designs the interface, saves it as a UI file, converts it into a Python file through PyUIC, and imports the classes of this file into another python file, main.py. (in order to separate the UI, it is convenient to edit UI), .
from mainUI impo...
-
PyQt5 uses QThread to separate UI and logic, and as a result, UI still gets stuck.
class Ux(QMainWindow, window.Ui_MainWindow):
@pyqtSlot()
def do_stop_search(self):
pass
@pyqtSlot(dict)
def do_append_result(self, item):
pass
def on_btn_search_clicked(self):
self.search = SearchThread(s...
-
On the problem of extracting cookie from python simulated landing
want to use python to open a web page, log in to the system, extract cookie and other operations, because that system is very painful, so the implementation of bag-grabbing simulation has been given up.
now we have realized the function of extracting ...
-
How does QMessageBox output variables in PyQt5?
look up some methods about the use of QMessageBox.information on the Internet, but basically all of them are about C CPP, there is little information about PyQt5, and format and tr (). Arg () are not easy to use. how to output variables through QMessag...
-
How does pyqt5 QWebEngine play domestic videos in full screen?
questions are as follows:
how to enforce the use of H5 player?
what if the full screen button is invalid?
Test Code:
import sys
from PyQt5 import QtWidgets, QtGui, QtCore
from PyQt5.QtWebEngineWidgets import *
def _fullScreenRequested( request...
-
PyQt5 thread blocking?
read serial port data and display it to textbrower in real time, but thread will block. Ask for advice
-sharp -*- coding: utf-8 -*-
-sharp Form implementation generated from reading ui file 22.ui
-sharp
-sharp Created by: PyQt5 UI code generator...
-
Novice about PyQt environment?
which of the following two lines of commands are installed? Do you need to install both of these in the Qt environment, or just one of them? Qt novice, recently watching the installation of the Qt environment, a little confused:
pip3 install PyQt5
...
-
Does PyQt5 already have its own QT library?
after I install PyQt5, I can directly call Qt s control to write GUI. I just want to make sure. ...
-
Installing pyqt5, under windows may cause the execution to fail due to a compilation error.
my environment is windows. With py2.7, installed, I installed the virtual environment of py3.6 with virtualenv. The installation of PyQt5, in this virtual environment was successful, but many of the related modules could not be found. Run the code (or i...
-
The content of logging in python is displayed in the problem of multithreading in pyqt.
stackoverflow found the processing of logging
but copying the original code will prompt
QObject::connect: Cannot queue arguments of type QTextBlock
(Make sure QTextBlock is registered using qRegisterMetaType().)
QObject::connect: Cannot que...
-
To a previously written python program, using pyqt5 to add gui but multi-input and no response
I wrote a crawler when I was learning python. That is, to capture the title, introduction, price, and buyer s comments of some goods. Today, I want to learn from pyqt5, so I want to add a gui to the reptile directly.
after running, the main form is ...
-
How does pyqt5 display a part of a picture?
such as
QPixmap( . res shadow left_top.png )
is used to make the upper left corner of the window shadow, but this requires 8 pictures, can you use different parts of a picture? Similar to the nine palace grid cut chart Thank you
...
-
Translate code interpretation of pyqt5?
def paintEvent(self, paintEvent):
painter = QPainter(self)
painter.translate(self.width() 2, self.height() 2)
painter.rotate(45)
painter.translate(-self.width() 2, -self.height() 2) -sharp
as shown in the figure and code, according ...
-
Why it is possible for PyQt5 to be overwritten by using QMediaPlayer and label,label in the same widget1
[problem description] to develop a graphical interface using pyqt5, you need to display videos and pictures in the same place in the window, that is, to display a picture after the video is played. My idea is to build a widget, the widgt as the VedioOu...
-
Interaction between pyqt5 QWebEngineView and js
new QWebChannel(qt.webChannelTransport,
function(channel) {
{
window.my_object = channel.objects.my_object;
alert(my_object.test.myHello()); 1
}
});
after the above code uses python to insert into the page (html introduces ...