Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt5.QtWidgets import QWidget, QLabel, QLineEdit, QDoubleSpinBox, QComboBox, QRadioButton, QPushButton, QHBoxLayout, QVBoxLayout
- class AlbumDatabase (QWidget):
- def __init__(self, parent=None):
- super().__init__(parent)
- self.createWidgets()
- self.arrangeWidgets()
- self.setWindowTitle ("Album Database")
- self.setMinimumSize (320,200)
- def createWidgets(self):
- self.albumtitleLabel = QLabel("Album Title: ")
- self.albumtitleTextEdit = QLineEdit()
- albumtitleLabel.setBuddy(albumtitleTextEdit)
- def arrangeWidgets (self):
- pass
- if __name__ == "__main__":
- import sys
- from PyQt5.QtWidgets import QApplication
- app = QApplication (sys.argv)
- window = AlbumDatabase()
- window.show()
- sys.exit (app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment