I am going to create a GUI screen using Pyqt5 for the first time.
The code is written by accessing Ubuntu on Virtual BOx remotely from Tera Term.
GUI code in PyQt5 and python3  Copy and paste and start with a clean window.
#-*-coding: utf-8-*- import sys from PyQt5.QtWidgets import * def main (): app = QApplication (sys.argv) w = QWidget () w.resize (250,150) w.setWindowTitle ('Window01') w.show () sys.exit (app.exec_ ()) if __name__ == '__main__': main ()
When this is executed on Tera Term,
qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display.
I get an error. When I ran it on an Ubuntu terminal, a clean window was displayed without any problems.
Can this window be displayed on the host Windows OS instead of Virtual Box Ubuntu? ?
Thank you for teaching me.
Answer # 1
I think X11 forwarding etc. should be examined. I think some effort will be required.
You can also use Virtual Box seamless mode. However, this is a "what a" method.
It doesn't run on the host's windows anyway, so if you want an application that runs on the host, you can run python on the host.
- python - tkinter window display
- python 3x - i want to display a window in python
- python chord i want to display a spectrogram of the generated sound
- graph display method in python (matplotlib, seaborn) whether data frame transformation is necessary, etc
- python 3x - [python3] [pyqt5] combo box default display
- python - to eliminate the error display of import pgzrun in pygame zero
- python 3x - cannot display png file
- python 3x - i want to display the waveform of a wav file in pyqtgraph
- python 3x - i want to display dictionary type data in two columns
- python - how to display how many words you have in the read file
- python - tkinter image display error
- [python] matplotlib? i want to display the sound signal in a spectrogram
- python 3x - [python3] [pyqt5] how to disable input acceptance of textedit
- python - get and display twitter timeline
- python 3x - python seaborn what is the hatch drawn by default subplot? i want to display the correlation coefficient!
- python 3x - i want to solve the problem that the window freezes with pysimplegui
- python - i want to display the variables defined in the class that inherits createview in createhtml
- python - i want to display the individual number while keeping the clustering result in matplotlib
- python 3x - i use the count method but it doesn't display properly
- python - how to remove a list from a tuple and store only the value
- http error 503: service unavailable when doing amazon scraping with python
- python - i want to simplify the program that sequentially retrieves from the list
- python - regarding the problem that tries to decompose a string apostrophe using a dictionary but fails
- python - common behavior for everything in django
- python - i want to split one array into two without duplication
- about the problem that float subtraction does not work in numerical calculation in python
- python - something went wrong in the jupiter lab
- python - how to deal with error when converting pandas datetime type
- i want to read python time series data while shifting by 1 day