Guest User

Untitled

a guest
Oct 23rd, 2015
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. from PyQt5.QtWidgets import QWidget, QLabel, QLineEdit, QDoubleSpinBox, QComboBox, QRadioButton, QPushButton, QHBoxLayout, QVBoxLayout
  2.  
  3. class AlbumDatabase (QWidget):
  4. def __init__(self, parent=None):
  5. super().__init__(parent)
  6. self.createWidgets()
  7. self.arrangeWidgets()
  8. self.setWindowTitle ("Album Database")
  9. self.setMinimumSize (320,200)
  10.  
  11. def createWidgets(self):
  12.  
  13. self.albumtitleLabel = QLabel("Album Title: ")
  14. self.albumtitleTextEdit = QLineEdit()
  15. albumtitleLabel.setBuddy(albumtitleTextEdit)
  16.  
  17. def arrangeWidgets (self):
  18. pass
  19.  
  20. if __name__ == "__main__":
  21. import sys
  22. from PyQt5.QtWidgets import QApplication
  23. app = QApplication (sys.argv)
  24. window = AlbumDatabase()
  25. window.show()
  26. sys.exit (app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment