gui Package

gui Package

constants Module

leap.gui.constants.pause_for_user()

locale_rc Module

leap.gui.locale_rc.qCleanupResources()
leap.gui.locale_rc.qInitResources()

mainwindow_rc Module

leap.gui.mainwindow_rc.qCleanupResources()
leap.gui.mainwindow_rc.qInitResources()

progress Module

classes used in progress pages from first run wizard

class leap.gui.progress.ImgWidget(parent=None, img=None)

Bases: PyQt4.QtGui.QWidget

paintEvent(event)
class leap.gui.progress.InlineValidationPage(parent=None)

Bases: PyQt4.QtGui.QWizardPage, leap.gui.progress.WithStepsMixIn

setupValidationFrame()
showStepsFrame()
class leap.gui.progress.ProgressStep(stepname, done, index=None)

Bases: object

Data model for sequential steps to be used in a progress page in connection wizard

DONE = 1
NAME = 0
classmethod columns()
class leap.gui.progress.ProgressStepContainer

Bases: object

a container for ProgressSteps objects access data in the internal dict

addStep(step)
columns
removeAllSteps()
removeStep(step)
step(identity)
class leap.gui.progress.StepsTableWidget(parent=None)

Bases: PyQt4.QtGui.QTableWidget

initializes a TableWidget suitable for our display purposes, like removing header info and grid display

class leap.gui.progress.ValidationPage(parent=None)

Bases: PyQt4.QtGui.QWizardPage, leap.gui.progress.WithStepsMixIn

class to be used as an intermediate between two pages in a wizard. shows feedback to the user and goes back if errors, goes forward if ok. initializePage triggers a one shot timer that calls do_checks. Derived classes should implement _do_checks and _do_validation

hide_progress()
initializePage()
isComplete()
show_progress()
stepChanged
class leap.gui.progress.WithStepsMixIn

Bases: object

This Class is a mixin that can be inherited by InlineValidation pages (which will display a progress steps widget in the same page as the form) or by Validation Pages (which will only display the progress steps in the page, below a progress bar widget)

STEPS_TIMER_MS = 100
add_status_line(message)

adds a new status line and mark the next-to-last item as done

clean_errors()
clean_wizard_errors(pagename=None)
clearTable()
do_checks()

main entry point for checks. it calls _do_checks in derived classes, and it expects it to be a generator yielding a tuple in the form ((“message”, progress_int), checkfunction)

fail(err=None)

return failed state and send error notification as a nice side effect. this function is called from the _do_checks check functions returned in the generator.

go_back()
go_next()
is_done()
launch_checks()
onStepStatusChanged(status, progress=None)
pop_first_error()
populateStepsTable()
processStepsQueue()

consume steps queue and pass messages to the ui updater functions

resizeTable()
set_checked_icon(current=True)
set_checking_icon()
set_done()
set_error(name, error)
set_failed_icon()
set_item_icon(img=':/images/Dialog-accept.png', current=True)

mark the last item as done

set_undone()
setupSteps()
setupStepsProcessingQueue()

should be called from the init method of the derived classes

styles Module

threads Module

class leap.gui.threads.FunThread(fun=None, parent=None)

Bases: PyQt4.QtCore.QThread

begin()
run()

utils Module

utility functions to work with gui objects

leap.gui.utils.delay(obj, method_str=None, call_args=None)

Triggers a function or slot with a small delay. this is a mainly a hack to get responsiveness in the ui in cases in which the event loop freezes and the task is not heavy enough to setup a processing queue.

leap.gui.utils.layout_widgets(layout)

return a generator with all widgets in a layout

Table Of Contents

Previous topic

tests Package

Next topic

firstrun Package

This Page