Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python gui programming using pyqt5

import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *

class window(QWidget):

   def __init__(self, parent = None):
      super(window, self).__init__(parent)
      self.resize(200,50)
      self.setWindowTitle("PyQt5")
      self.label = QLabel(self)
      self.label.setText("Hello World")
      font = QFont()
      font.setFamily("Arial")
      font.setPointSize(16)
      self.label.setFont(font)
      self.label.move(50,20)
      
def main():
   app = QApplication(sys.argv)
   ex = window()
   ex.show()
   sys.exit(app.exec_())
   
if __name__ == '__main__':
   main()
Comment

PREVIOUS NEXT
Code Example
Python :: python alert 
Python :: python selenium select dropdown 
Python :: python rotate pdf pages 
Python :: how to remove integer from string in python 
Python :: python get absolute path of file 
Python :: pig latin translator python 
Python :: python press key to break 
Python :: install python on ubuntu 
Python :: how to identify GPU with pytorch script 
Python :: add search field to django admin 
Python :: python regex count matches 
Python :: list files in directory python with extension 
Python :: shuffle dataframe python 
Python :: pytorch check if cuda is available 
Python :: how to open a software using python 
Python :: filter dataframe columns vy a list of columns 
Python :: python get time of day 
Python :: distance formula in python 
Python :: matplotlib marker hollow circle 
Python :: pandas reset row indices 
Python :: join video moviepy 
Python :: python split pdf pages 
Python :: python loop through files in directory recursively 
Python :: How to fix snap "pycharm-community" has "install-snap" change in progress 
Python :: anaconda-navigator command not found 
Python :: ban discord.py 
Python :: python confidence interval 
Python :: portscan with python 
Python :: python current date and time 
Python :: how to create correlation heatmap in python 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =