Share and Money Management  0.16
Classes | Namespaces | Functions | Variables
helper.py File Reference

Functions and classes to simplify recurring actions. More...

Classes

class  gui.helper.ReverseDict
 A dictionary which can lookup values by key, and keys by value. More...

Namespaces

namespace  gui.helper
 Functions to support GUI functions e.g.

Functions

def gui.helper.formatShareNotesShort
 Returns additional note to a share - short formatted.
def gui.helper.formatShareNotesLong
 Returns additional note to a share - long formatted.
def gui.helper.formatCurrencySign
 Returns the sign of a currency or an empty string.
def gui.helper.formatCurrencyShort
 Returns the currency sign or code or an empty string.
def gui.helper.formatCurrencyLong
 Returns the formatted currency or an empty string.
def gui.helper.formatDate
 Returns the formatted date or an empty string.
def gui.helper.formatDecimal
 Returns the formatted decimal value or an empty string.
def gui.helper.formatDuration
 Returns the given duration formatted.
def gui.helper.formatDailyQuoteEvent
 Returns the DailyQuote.event formatted.
def gui.helper.formatExchange
 Returns the formatted exchange or an empty string.
def gui.helper.formatMoney
 Returns the formatted decimal value incl.
def gui.helper.formatPercent
 Returns the formatted decimal value incl.
def gui.helper.formatPosition
 Returns the formatted position or an empty string.
def gui.helper.formatShare
 Returns the formatted share or an empty string.
def gui.helper.formatShareShort
 Returns the formatted share or an empty string.
def gui.helper.formatShareKind
 Returns the type of the share or an empty string.
def gui.helper.formatTransactionKind
 Returns the transaction type as a string or an empty string.
def gui.helper.moneyfmt
 Convert Decimal to a money formatted string.
def gui.helper.wxdate2pydate
 Convert a date from wxDateTime to Python datetime.date.
def gui.helper.pydate2wxdate
 Convert a date from Python datetime.date to wxDateTime.
def gui.helper.formatTransactionElements
 Format all attributes of a Transaction for showing and sorting.

Variables

tuple gui.helper.RE_WHITESPACES = re.compile(r'\s{2,}|[\r\n]')
 Precompiled RE pattern to match two or more white spaces or single linebreak characters.
tuple gui.helper.DAYS_PER_YEAR = decimal.Decimal('365')
 Number of days in a year.

Detailed Description

Functions and classes to simplify recurring actions.