Package Gnumed :: Package wxpython :: Module gmListWidgets
[frames] | no frames]

Module gmListWidgets

source code

GNUmed list controls and widgets.

TODO:

        From: Rob McMullen <rob.mcmullen@gmail.com>
        To: wxPython-users@lists.wxwidgets.org
        Subject: Re: [wxPython-users] ANN: ColumnSizer mixin for ListCtrl

        Thanks for all the suggestions, on and off line.  There's an update
        with a new name (ColumnAutoSizeMixin) and better sizing algorithm at:

        http://trac.flipturn.org/browser/trunk/peppy/lib/column_autosize.py


Version: $Revision: 1.37 $

Author: Karsten Hilbert <Karsten.Hilbert@gmx.net>

License: GPL

Classes
  cGenericListSelectorDlg
A dialog holding a list and a few buttons to act on the items.
  cGenericListManagerPnl
A panel holding a generic multi-column list and action buttions.
  cReportListCtrl
Functions
 
get_choices_from_list(parent=None, msg=None, caption=None, choices=None, selections=None, columns=None, data=None, edit_callback=None, new_callback=None, delete_callback=None, refresh_callback=None, single_selection=False, can_return_empty=False, ignore_OK_button=False)
Let user select item(s) from a list.
source code

Imports: sys, types, wx, listmixins, gmPerson, gmTools, gmDispatcher, gmGuiHelpers, wxgGenericListSelectorDlg, wxgGenericListManagerPnl


Function Details

get_choices_from_list(parent=None, msg=None, caption=None, choices=None, selections=None, columns=None, data=None, edit_callback=None, new_callback=None, delete_callback=None, refresh_callback=None, single_selection=False, can_return_empty=False, ignore_OK_button=False)

source code 
Let user select item(s) from a list.

- edit_callback: (item data)
- new_callback: ()
- delete_callback: (item data)
- refresh_callback: (listctrl)

returns None if cancelled
returns list (may be empty) of selected items