Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small suggestions to PySide6 tutorials #25

Open
imamedic opened this issue Oct 23, 2024 · 0 comments
Open

Small suggestions to PySide6 tutorials #25

imamedic opened this issue Oct 23, 2024 · 0 comments

Comments

@imamedic
Copy link

imamedic commented Oct 23, 2024

  • PySide6 Widgets
     QComboBox.NoInsert (or whatever policy) should likely be QComboBox.InsertPolicy.NoInsert
  • super(MainWindow, self).__init__() could be super().__init__() throughout...as of Python3.0 super was changed to drop explicit naming of parent class source reference
  • PySide6 Layouts  for n, color in enumerate(["red", "green", "blue", "yellow"]): could be for color in ["red", "green", "blue", "yellow"]
  • in menus lesson label.setAlignment(Qt.AlignCenter) should likely be label.setAlignment(Qt.AlignmentFlag.AlignCenter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant