Gnumed.wxpython.gmGuiHelpers

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

# Module gmGuiHelpers

source code

GNUmed GUI helper classes and functions.

This module provides some convenient wxPython GUI helper thingies that are widely used throughout GNUmed.

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

License: GPL v2 or later (details at http://www.gnu.org)

Classes
| cThreeValuedLogicPhraseWheel
| c2ButtonQuestionDlg
| c3ButtonQuestionDlg
| cMultilineTextEntryDlg Editor for a bit of text.
| cFileDropTarget Generic file drop target class.

Functions
clipboard2text() | source code
clipboard2file(check_for_filename=False) | source code
text2clipboard(text=None, announce_result=False) | source code
file2clipboard(filename=None, announce_result=False) | source code
file2scaled_image(filename=None, height=100) | source code
save_screenshot_to_file(filename=None, widget=None, settle_time=None) Take screenshot of widget. | source code
decorate_window_title(title) | source code
undecorate_window_title(title) | source code
gm_show_error(aMessage=None, aTitle=None, error=None, title=None) | source code
gm_show_info(aMessage=None, aTitle=None, info=None, title=None) | source code
gm_show_warning(aMessage=None, aTitle=None) | source code
gm_show_question(aMessage='programmer forgot to specify question', aTitle='generic user question dialog', cancel_button=False, question=None, title=None) | source code

Imports: os, logging, sys, io, time, pyDT, wx, gmMatchProvider, gmExceptions, gmLog2, gmTools, gmDispatcher, gmPhraseWheel, wxg2ButtonQuestionDlg, wxg3ButtonQuestionDlg, wxgMultilineTextEntryDlg

Function Details

### save_screenshot_to_file(filename=None, widget=None, settle_time=None) | source code
Take screenshot of widget. <settle_time> in milliseconds