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

Missing Qt attributes #125

Open
mdziczkowski opened this issue Mar 30, 2024 · 0 comments
Open

Missing Qt attributes #125

mdziczkowski opened this issue Mar 30, 2024 · 0 comments

Comments

@mdziczkowski
Copy link
Contributor

Hello. When trying to run the Python version of TS2, I got following output:

NOTE: the location path has been trunchated for privacy reasons

$ ./start-ts2.py 

Traceback (most recent call last):
  File "ts2-py/./start-ts2.py", line 51, in <module>
    import ts2.application
  File "ts2-py/ts2/application.py", line 25, in <module>
    from ts2 import mainwindow
  File "ts2-py/ts2/mainwindow.py", line 36, in <module>
    from ts2 import simulation
  File "ts2-py/ts2/simulation.py", line 29, in <module>
    from ts2 import utils, trains
  File "ts2-py/ts2/trains/__init__.py", line 21, in <module>
    from ts2.trains.traintype import TrainType, TrainTypesModel
  File "ts2-py/ts2/trains/traintype.py", line 26, in <module>
    class TrainTypesModel(QtCore.QAbstractTableModel):
  File "ts2-py/ts2/trains/traintype.py", line 43, in TrainTypesModel
    def data(self, index, role=Qt.DisplayRole):
                               ^^^^^^^^^^^^^^
AttributeError: type object 'Qt' has no attribute 'DisplayRole'
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