Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
.addGrid(my_list, addRow=True) error in Windows 7 environment #151
app.addGrid( 'airflow_data_raw', [ ['Nozzle Diameter', 'Number of Nozzles', 'Differential Pressure', 'Static Pressure', 'Voltage', 'Current', 'Frequency'], ], row=1, column=0, colspan=3, addRow=True )
The button doesn't show up well:
Additionally, when pressed, the button throws an error:
Great to see someone trying out the beta widgets!
Grid is probably the MOST beta - sorry!
The button on the
Now, in your case, no
Short-term, you can populate the
The squashed button is linked in to the above assumption.
The extra column, where the
Again, short-term - setting the
I tried that, but it still doesn't add a new row:
def dummy(*args): print('dummy function executed', args) app.addGrid( 'airflow_data_raw', [ ['Nozzle Diameter', 'Number of Nozzles', 'Differential Pressure', 'Static Pressure', 'Voltage', 'Current', 'Frequency'], ], addRow=True, action=dummy )
Basically, there is never a row added.
No, that will just fix the button. You have to manage adding a new row yourself.
Pressing the Press button will just call your
If you don't want to do any processing, you can simply add the following code to
if args=="newRow": app.addGridRow('airflow_data_raw', app.getGridEntries('airflow_data_raw'))