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

Module gmListWidgets

source code


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

License: GPL v2 or later

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.
  cItemPickerDlg
  cReportListCtrl
Functions
 
get_choices_from_list(parent=None, msg=None, caption=None, columns=None, choices=None, data=None, selections=None, edit_callback=None, new_callback=None, delete_callback=None, refresh_callback=None, single_selection=False, can_return_empty=False, ignore_OK_button=False, left_extra_button=None, middle_extra_button=None, right_extra_button=None, list_tooltip_callback=None)
Let user select item(s) from a list.
source code
 
shorten_text(text=None, max_length=None) source code
Variables
  __doc__ = """GNUmed list controls and widge...

Imports: sys, types, logging, threading, time, locale, os, io, csv, regex, pydt, wx, listmixins, gmTools, gmDispatcher, decorate_window_title, undecorate_window_title, wxgGenericListSelectorDlg, wxgGenericListManagerPnl, wxgItemPickerDlg


Function Details

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

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

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

- left/middle/right_extra_button: (label, tooltip, <callback> [, wants_list_ctrl])
        <wants_list_ctrl> is optional
        <callback> is called with item_data (or listctrl) as the only argument
        if <callback> returns TRUE, the listctrl will be refreshed, if a refresh_callback is available

returns:
        on [CANCEL]: None
        on [OK]:
                if any items selected:
                        if single_selection:
                                the data of the selected item
                        else:
                                list of data of selected items
                else:
                        if can_return_empty is True AND [OK] button was pressed:
                                empty list
                        else:
                                None


Variables Details

__doc__

Value:
"""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

...