itprorh66 / SolarPV-Simulator

A Python Project to model the operation of an off grid Solar Power System in order to define correct sizing information.
MIT License
26 stars 4 forks source link

Panel Window: Cannot Change Manufacturer without Getting Error #23

Closed stevencarpenter102 closed 3 years ago

stevencarpenter102 commented 3 years ago

working off 1fd177020 commit

I am noticing this error after this procedure:

  1. Open “Panel” Form
  2. Select a manufacturer, then click out of focus
  3. Select a model, then click out of focus
  4. Click on manufacturer drop down again and change to another manufacturer, then click out of focus.
  5. Click on Model.
  6. Immediately, you should see the error in the last image.

Based on setting some breakpoints…it seems the validate_mfg_setting() and validate_mdl_setting() appear to be executing every time the manufacturer or model dropdown menus are click into or out of (focusin and focusout). However, this is set to ‘focusout’ only in define_layout() (see image below). This problem should do away if we can get it to properly only validate upon focusing out for each dropdown.

stevencarpenter102 commented 3 years ago

fe978c275704 fixes this problem for Panel window, but should check inverter window before closing out this issue

stevencarpenter102 commented 3 years ago

Resolved this issue for inverter window in this commit: 0e689e6