You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
only the first character of the path is kept. This is because when using the same widget to open a file, a more generic call is made (to be Qt4 and Qt5 compatible I guess) and it is possible to get back a tuple and not just a string.
Potential solution
Possible solutions to this issue could be:
Test the type of the value and treat differently tuples and strings
Check if one is using the widget for opening or saving
The text was updated successfully, but these errors were encountered:
Source of issue
When using the ControlFile widget, the call to the underlying Qt method to get a file path is correct but here:
pyforms-gui/pyforms_gui/controls/control_file.py
Line 51 in 0f6cd96
only the first character of the path is kept. This is because when using the same widget to open a file, a more generic call is made (to be Qt4 and Qt5 compatible I guess) and it is possible to get back a tuple and not just a string.
Potential solution
Possible solutions to this issue could be:
value
and treat differently tuples and stringsThe text was updated successfully, but these errors were encountered: