taburineagle / NeewerLite-Python

NeewerLite-Python is an un-official cross-platform Neewer LED light control app - written in Python, originally based off of the NeewerLite macOS Swift project by @keefo (Xu Lian)
MIT License
60 stars 11 forks source link

Current code fails to start GUI? #5

Closed fribse closed 2 years ago

fribse commented 2 years ago

I don't see a version string (whoops), but the code currently available shows this when I try to start the GUI:

D:\neewer>python NeewerLite-Python.py
Traceback (most recent call last):
  File "D:\neewer\NeewerLite-Python.py", line 1284, in <module>
    mainWindow = MainWindow()
  File "D:\neewer\NeewerLite-Python.py", line 84, in __init__
    self.connectMe() # connect the function handlers to the widgets
  File "D:\neewer\NeewerLite-Python.py", line 103, in connectMe
    self.Slider_HSL_1_H.valueChanged.connect(self.computeValueHSL)
AttributeError: 'MainWindow' object has no attribute 'Slider_HSL_1_H'
taburineagle commented 2 years ago

I think the problem with this one is the version of NeewerLite-Python.py you're using isn't the same version as the ui_NeewerLightUI.py file you're using (the newer one names that attribute as _Slider_HSI_1H, which is correct.) Both of those files have had some changes to fix the HSL/HSI naming situation.

fribse commented 2 years ago

Douh, you are absolutely right, I thought I had it updated, oh well, after updating BOTH files, it works perfectly. I can even turn the light on and off (which I couldn't get to work in the old code). So far it connects every time with this version.