File tree Expand file tree Collapse file tree 10 files changed +21
-20
lines changed
Expand file tree Collapse file tree 10 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 66
77from PyQt5 .QtWidgets import QApplication
88from PyQt5 .QtWidgets import QDialog
9+ from PyQt5 .QtWidgets import QDialogButtonBox
10+ from PyQt5 .QtWidgets import QFormLayout
911from PyQt5 .QtWidgets import QLineEdit
1012from PyQt5 .QtWidgets import QVBoxLayout
11- from PyQt5 .QtWidgets import QFormLayout
12- from PyQt5 .QtWidgets import QDialogButtonBox
1313
1414
1515class Dialog (QDialog ):
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QWidget
9- from PyQt5 .QtWidgets import QLineEdit
108from PyQt5 .QtWidgets import QFormLayout
9+ from PyQt5 .QtWidgets import QLineEdit
10+ from PyQt5 .QtWidgets import QWidget
1111
1212app = QApplication (sys .argv )
1313window = QWidget ()
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QWidget
9- from PyQt5 .QtWidgets import QPushButton
108from PyQt5 .QtWidgets import QGridLayout
9+ from PyQt5 .QtWidgets import QPushButton
10+ from PyQt5 .QtWidgets import QWidget
1111
1212app = QApplication (sys .argv )
1313window = QWidget ()
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QWidget
9- from PyQt5 .QtWidgets import QPushButton
108from PyQt5 .QtWidgets import QHBoxLayout
9+ from PyQt5 .QtWidgets import QPushButton
10+ from PyQt5 .QtWidgets import QWidget
1111
1212app = QApplication (sys .argv )
1313window = QWidget ()
Original file line number Diff line number Diff line change 66
77# 1. Import `QApplication` and all the required widgets
88from PyQt5 .QtWidgets import QApplication
9- from PyQt5 .QtWidgets import QWidget
109from PyQt5 .QtWidgets import QLabel
10+ from PyQt5 .QtWidgets import QWidget
1111
1212# 2. Create an instance of QApplication
1313app = QApplication (sys .argv )
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QMainWindow
98from PyQt5 .QtWidgets import QLabel
9+ from PyQt5 .QtWidgets import QMainWindow
1010from PyQt5 .QtWidgets import QStatusBar
1111from PyQt5 .QtWidgets import QToolBar
1212
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QWidget
9- from PyQt5 .QtWidgets import QPushButton
108from PyQt5 .QtWidgets import QLabel
9+ from PyQt5 .QtWidgets import QPushButton
1110from PyQt5 .QtWidgets import QVBoxLayout
11+ from PyQt5 .QtWidgets import QWidget
1212
1313
1414def greeting ():
Original file line number Diff line number Diff line change 22
33"""Signals and slots example."""
44
5- import sys
65import functools
6+ import sys
77
88from PyQt5 .QtWidgets import QApplication
9- from PyQt5 .QtWidgets import QWidget
10- from PyQt5 .QtWidgets import QPushButton
119from PyQt5 .QtWidgets import QLabel
10+ from PyQt5 .QtWidgets import QPushButton
1211from PyQt5 .QtWidgets import QVBoxLayout
12+ from PyQt5 .QtWidgets import QWidget
1313
1414
1515def greeting (who ):
Original file line number Diff line number Diff line change 55import sys
66
77from PyQt5 .QtWidgets import QApplication
8- from PyQt5 .QtWidgets import QWidget
98from PyQt5 .QtWidgets import QPushButton
109from PyQt5 .QtWidgets import QVBoxLayout
10+ from PyQt5 .QtWidgets import QWidget
1111
1212app = QApplication (sys .argv )
1313window = QWidget ()
Original file line number Diff line number Diff line change 1313"""PyCalc is a simple calculator built using Python and PyQt5."""
1414
1515import sys
16+
1617from functools import partial
1718
1819# Import QApplication and the required widgets from PyQt5.QtWidgets
20+ from PyQt5 .QtCore import Qt
1921from PyQt5 .QtWidgets import QApplication
20- from PyQt5 .QtWidgets import QMainWindow
21- from PyQt5 .QtWidgets import QWidget
22- from PyQt5 .QtWidgets import QVBoxLayout
2322from PyQt5 .QtWidgets import QGridLayout
2423from PyQt5 .QtWidgets import QLineEdit
24+ from PyQt5 .QtWidgets import QMainWindow
2525from PyQt5 .QtWidgets import QPushButton
26- from PyQt5 .QtCore import Qt
26+ from PyQt5 .QtWidgets import QVBoxLayout
27+ from PyQt5 .QtWidgets import QWidget
2728
2829__version__ = "0.1"
2930__author__ = "Leodanis Pozo Ramos"
You can’t perform that action at this time.
0 commit comments