frmdstryr / enamlx

Additional Qt Widgets for Enaml
MIT License
28 stars 9 forks source link

Project requirements #2

Closed petrushy closed 6 years ago

petrushy commented 9 years ago

Hi, Looks like an Interesting project!

I have tried to run the examples but get several errors related to qt. What are the project requirements? I'm on (anaconda) python 2.7.10, pyqt 4.10.4, enaml 0.9.8

Regards /P

for example: File "C:\Users\phy\Development\Source\enamlx\enamlx\qt\qt_table_widget.py", line 86, in set_resize_mode 'interactive':QtGui.QHeaderView.ResizeMode.Interactive, AttributeError: type object 'ResizeMode' has no attribute 'Interactive'

File "C:\Users\phy\Development\Source\enamlx\enamlx\qt\qt_abstract_item.py", line 129, in init_widget self.declaration.column = self.parent().items().index(self) AttributeError: 'QtTreeWidget' object has no attribute 'items'

frmdstryr commented 9 years ago

I've only been using PySide... looks like there are some minor differences. Please pull the latest and try.

petrushy commented 9 years ago

Hi, now it starts, great!

Some more bugs I think are related:

For the table widget I get an error clicking the name box:

File "C:\Users\phy\Development\Source\enamlx\enamlx\qt\qt_abstract_item.py", line 256, in is_checked return self.widget.checkState() == Qt.CheckState.Checked AttributeError: type object 'CheckState' has no attribute 'Checked'

typing a number in the age cell: File "C:\Users\phy\Development\Source\enamlx\enamlx\qt\qt_abstract_item.py", line 241, in on_item_selection_changed self.declaration.selected = selected TypeError: The 'selected' member on the 'TableWidgetItem' object must be of type 'bool'. Got object of type 'NoneType' instead.

Tree widget does not start, I get error message: File "C:\Users\phy\Development\Source\enamlx\enamlx\qt\qt_abstract_item.py", line 136, in init_widget self.declaration.column = self.parent().items().index(self) AttributeError: 'QtTreeWidget' object has no attribute 'items'

The table view example seems to run fine, great!

frmdstryr commented 9 years ago

Pull again...

frmdstryr commented 6 years ago

Stale. Please reopen if needed.