[Pygui] Listbox? Scrollbars? Text Widget?

David Cortesi davecortesi at gmail.com
Mon Apr 25 02:54:47 CEST 2011


Although in comparison to tkinter, pygui is conceptually cleaner and
more maintainable, it still has some functional lacks, and I'm curious
as to where the following rank on the to-do list.

1. The listbox (a/o combobox), a scrollable stack of text items that
can be selected, singly or in multiples (e.g  with shift-click,
ctl-/cmd-click).

2. The textedit class appears to be quite basic in comparison to the
tk/tkinter text widget which has, e.g., multiple fonts, format tags,
marked locations, undo-redo stacks, search, support for embedded
graphics and widgets.

3. Menu-bar menus are supported, but what about contextual ('pop-up') menus?

4. Looking at the tkinter implementation of scrolling, it makes
horizontal and vertical scrollbars separate widgets with
semi-automatic callback between the scrolled item and the bar. The
advantage is the programmer can customize the bar; disadvantage:
complexity, platform inconsistency.

In PyGui scrollbars appear to be implicit and managed entirely by the
scrolled item (which is currently only the scrollable view, yes?) The
advantage is simplicity and consistent use of OS platform widgetry.
But -- what happens when other scrollable widgets are added, e.g. the
listbox? (Or, would every scrollable item be a child of scrollable
view...?)

Thanks for your efforts,

Dave Cortesi


More information about the Pygui mailing list