An application window.
This is the base of Eagle programs, since it will hold every graphical
component.
An App window is split in 5 areas:
the first 3 have a vertical layout, the other have horizontal layout.
Every area has its own scroll bars that are shown automatically when
need.
Also provided is an extra area, that is shown in another window. This
is the preferences area. It have a vertical layout and components that
hold data are made persistent automatically. You should use PreferencesButton to show this area.
Extra information like author, description, help, version, license and
copyright are used in specialized dialogs. You may show these dialogs
with AboutButton
and HelpButton.
Widgets can be reach with
|
|
__init__(self,
title,
id=None,
center=None,
left=None,
right=None,
top=None,
bottom=None,
preferences=None,
quit_callback=None,
data_changed_callback=None,
author=None,
description=None,
help=None,
version=None,
license=None,
copyright=None,
statusbar=False)
App Constructor.
|
|
__getitem__(self,
name)
|
|
__setitem__(self,
name,
value)
|
|
get_widget_by_id(self,
widget_id)
Return referece to widget with provided id or None if not
found.
|
|
show_about_dialog(self)
Show AboutDialog of this App.
|
|
show_help_dialog(self)
Show HelpDialog of this App.
|
|
file_chooser(self,
action,
filename=None,
filter=None,
multiple=False)
Show FileChooser and return selected file(s).
|
|
show_preferences_dialog(self)
Show PreferencesDialog associated with this App.
|
|
__get_window__(self)
|
|
__add_to_app_list__(self)
|
|
__add_widget__(self,
widget)
|
|
__setup_gui__(self)
|
|
__setup_menus__(self)
|
|
__setup_gui_left__(self)
|
|
__setup_gui_right__(self)
|
|
__setup_gui_center__(self)
|
|
__setup_gui_top__(self)
|
|
__setup_gui_bottom__(self)
|
|
__setup_gui_preferences__(self)
|
|
__setup_connections__(self)
|
|
data_changed(self,
widget,
value)
Notify that widget changed it's value.
|
|
__do_close__(self)
|
|
__delete_event__(self,
*args)
|
|
__persistence_filename__(self)
|
|
save(self)
Save data from widgets to file.
|
|
load(self)
Load data to widgets from file.
|
|
close(self)
Close application window.
|
|
status_message(self,
message)
Display a message in status bar and retrieve its identifier for
later removal.
|
|
remove_status_message(self,
message_id)
Remove a previously displayed message.
|
|
timeout_add(self,
interval,
callback)
Register a function to be called after a given
timeout/interval.
|
|
idle_add(self,
callback)
Register a function to be called when system is idle.
|
|
io_watch(self,
file,
callback,
on_in=False,
on_out=False,
on_urgent=False,
on_error=False,
on_hungup=False)
Register a function to be called after an Input/Output event.
|
|
remove_event_source(self,
event_id)
Remove an event generator like those created by timeout_add,
idle_add or
io_watch.
|
:
__repr__ ,
__str__
:
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|