pysimplesql icon indicating copy to clipboard operation
pysimplesql copied to clipboard

Widget enhancements

Open ssweber opened this issue 2 years ago • 3 comments

Running list of widget enhancement ideas:

  • [x] How share more code between subclassed tk/ttk and subclassed sg versions (eg _CellEditCombo and subclassed sg.Combo)
  • [x] More flexible date/datetime formatting.
  • [ ] TkTimePicker for CellEdit
  • [ ] Filepicker
  • [x] Refactor Input to use validatecommand
  • [x] Framework to allow input to validatecommand a variety of scenarios:
    • [x] Restrict to domain/dtype. Eg int, float. This would be easy. About localization, eg , comma instead of periods.
    • [ ] Datepicker for Input like CellEdit.
    • [ ] Enhance datepicker to auto-insert / or - between yyyy/mm/dd
    • [ ] Datetime/time picker
    • [x] Min/max settings (either int, or str length)
    • [x] Popups for invalid inputs via invalidcommand

ssweber avatar May 25 '23 01:05 ssweber

tksheet is another interesting possibility we could look at integrating.

ssweber avatar May 31 '23 17:05 ssweber

Oh wow, that is crazy cool! I never really got very deep in Tkinter. I know I need to at some point - time just always seems to get in the way! I'm glad you seem very well versed!

On Wed, May 31, 2023 at 1:48 PM ssweber @.***> wrote:

tksheet https://github.com/ragardner/tksheet is another interesting possibility we could look at integrating.

— Reply to this email directly, view it on GitHub https://github.com/PySimpleSQL/pysimplesql/issues/318#issuecomment-1570656077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQX2REXF2LZCYLYD6B2FGOTXI576XANCNFSM6AAAAAAYOFDF54 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

PySimpleSQL avatar Jun 03 '23 17:06 PySimpleSQL

Most of the basic validation logic will be handled by the new specialized Column classes. Working on those currently - will pass info popups to user about why the validation failed, eg “This field is required”, or “This field only accepts integers”, etc

ssweber avatar Jun 25 '23 13:06 ssweber