aroberge / easygui_qt

Inspired by easygui, designed for PyQt
BSD 3-Clause "New" or "Revised" License
59 stars 18 forks source link

Improved keyboard usage with multichoice selector #23

Closed achennu closed 8 years ago

achennu commented 8 years ago

Great project, appreciate the effort that's gone into it.

I found the multi-choice selector to be a bit awkwardly arranged for keyboard input. The button layout was in the order:

  1. Select all
  2. Clear all
  3. Ok
  4. Cancel

This put the default selection focus on select all. So when using with a keyboard, after makign the selection the user presses Enter with the intention to finalize, what actually happens is that all choices are selected. This is easily fixed by placing the buttons in the order Ok, Cancel, Select All, Clear All.

This provides the least amount of surprise for a keyboard-warrior user, and also conforms to the idea that the muti-choices default action should be finalize, and not selecting all.

Additionally, there is a bug in this selector. I will raise a separate issue regarding it.

aroberge commented 8 years ago

Thanks. I started this project essentially as an excuse to explore the Qt framework; I have no use for desktop GUI frameworks. I'm glad others think it can be useful.

achennu commented 8 years ago

For what it's worth, it's not a bad exploration. I think a fundamental problem might be that Qt would allow only one QApplication to run, which might lead to this library becoming an exit-application button. (I haven't tested this).