dbus_drawing_board (version 0.2)
index
/home/kobi/Projects/DbusCairoPangoBoard/dbus_drawing_board.py

Dbus drawing board 
 
Dbus server for drawing on a board using Cairo and Pango
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
@copyright: (c) 2006 by Yaacov Zamir <kzamir@walla.co.il>
@license: GNU GPL, see COPYING for details.

 
Modules
       
cairo
dbus
gobject
gtk
pango
pangocairo
pygtk

 
Classes
       
dbus.service.Object(dbus.service.Interface)
CairoPangoBoard
gtk.Dialog(gtk.Window)
EntryDialog
gtk.DrawingArea(gtk.Widget)
DrowingBoard

 
class CairoPangoBoard(dbus.service.Object)
    # Dbus object
 
 
Method resolution order:
CairoPangoBoard
dbus.service.Object
dbus.service.Interface
__builtin__.object

Methods defined here:
__init__(self, bus_name, board, object_path='/org/hpython/CairoPangoBoard')
about_dialog(self)
Pop out an about 'Dbus drawing board' dialog
add(self, command)
Add a raw cairo command to the drawing board command list
the cairo context object name is 'cr'
see cairo documentation for more help:
http://www.cairographics.org/
 
example command:
'cr.line_to(10, 20)'
arc(self, x, y, r, a1=0, a2=6.2831853071795862)
Draw an arc with center point (x,y),
radius (radius) that starts at angle a1 and ends at angle a2 
(measured in radians).
backward(self, d)
Draw a line backward distance d
clear(self, x_start=-100.0, x_end=100, y_start=-100, y_end=100, line_width=1, r=1.0, g=1.0, b=0.90000000000000002)
Clear the drawing board command list and draw a colored backround
 
The x axis starts at x_start at leftmost point of drawing baord 
    and ends at x_end at the rightmost point
The y axis starts at y_start at leftmost point of drawing baord 
    and ends at y_end at the rightmost point
 
line_width sets the width of lines
 
r, g, b sets the color to the backround
    r the red color value from 0 to 1.
    g the green color value from 0 to 1.
    b the blue color value from 0 to 1.
    
Turtle point is set to 0,0 and turtle dirction to 0 rad.
dialog_destroy(self, dialog, arg)
dump(self, filename)
Dump all the commands in the drawing board command list
to file 'filename'
fill_clear(self)
Set the color of shapes to clear
 
shaped drawen from this point on will not be filled
fill_color(self, r, g, b, a=1.0)
Set the color of shapes
 
Shapes drawen from this point on will be filled by this color
 
r, g, b sets the color to the backround
    r the red color value from 0 to 1.
    g the green color value from 0 to 1.
    b the blue color value from 0 to 1.
    a the alfa chanell value from 0 to 1.
font_family(self, family)
Set the font family of texts
 
Texts drawen from this point on will use this font family
 
font_family example:
'David CLM'
font_size(self, size)
Set the font size of texts
 
Texts drawen from this point on will use this font size
font_weight(self, weight)
Set the font weight of texts
 
Texts drawen from this point on will use this font weight
 
Font weight can be normal or bold
forward(self, d)
Draw a line forward distance d
input_dialog(self, text='', default_text='', modal=True)
Pop out an input dialog with message 'text' and
default text 'default_text'
left(self, angle)
Turn left angle units (measured in radians).
line_color(self, r, g, b, a=1.0)
Set the color of lines
 
Lines drawen from this point on will use this color
 
r, g, b sets the color to the backround
    r the red color value from 0 to 1.
    g the green color value from 0 to 1.
    b the blue color value from 0 to 1.
    a the alfa chanell value from 0 to 1.
line_to(self, x, y)
Draw a line to point x, y
line_width(self, width)
Set the width of lines
 
Lines drawen from this point on will use this width
message_dialog(self, text='', type='question', modal=True)
Pop out a message dialog with text 'text' and type.
 
type can be: 'info', 'warning', 'question', 'error'
move_backward(self, d)
Move backward distance d
move_forward(self, d)
Move forward distance d
move_to(self, x, y)
Move to point x, y
rectangle(self, x, y, width, height, radius=0)
Draw a retangle with leftmost upmost point (x,y),
width, height are (width, height) and radius of is corners (radius)
right(self, angle)
Turn right ft angle units (measured in radians).
save_png(self, file_name)
Save the current viewport to a picture file 'file_name'.png
save_svg(self, file_name)
Save the current viewport to a picture file 'file_name'.svg
 
When using the svg file format texts will not be saved
scale(self, x_start, x_end, y_start, y_end, rotation=0)
ReScale the drawing board
 
Commands from this point on will use the new axis system set
by this instracion
 
The x axis starts at x_start at leftmost point of drawing baord 
    and ends at x_end at the rightmost point
The y axis starts at y_start at leftmost point of drawing baord 
    and ends at y_end at the rightmost point
The drawing board rotation is set by rotation (measured in radians).
server_name(self)
Return server name
text(self, string, text_width=0, radius=0)
Draw a text at the current position,
current position will move to next line after drawing.
 
text_width: minimum width of text.
radius: radius of corners for the decoration rectangle
    drawen around text.
    if radius is 0 no decoration will be drawen.
text_color(self, r, g, b, a=1.0)
Set the color of texts
 
Texts drawen from this point on will use this color
 
r, g, b sets the color to the backround
    r the red color value from 0 to 1.
    g the green color value from 0 to 1.
    b the blue color value from 0 to 1.
    a the alfa chanell value from 0 to 1.
version(self)
Return server version

Methods inherited from dbus.service.Object:
Introspect(self)
__repr__(self)
__str__ = __repr__(self)

Data and other attributes inherited from dbus.service.Interface:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__metaclass__ = <class 'dbus.service.InterfaceType'>
__weakref__ = <attribute '__weakref__' of 'Interface' objects>
list of weak references to the object (if defined)

 
class DrowingBoard(gtk.DrawingArea)
    # Drawing window
 
 
Method resolution order:
DrowingBoard
gtk.DrawingArea
gtk.Widget
gtk.Object
gobject.GObject
__builtin__.object

Methods defined here:
__init__(self)
add_rectangle_path(self, x, y, width, height, radius)
draw(self, cr)
expose(self, widget, event)

Methods inherited from gtk.DrawingArea:
size(...)

Data and other attributes inherited from gtk.DrawingArea:
__gtype__ = <GType GtkDrawingArea (136642904)>

Methods inherited from gtk.Widget:
activate(...)
add_accelerator(...)
add_events(...)
add_mnemonic_label(...)
can_activate_accel(...)
child_focus(...)
child_notify(...)
class_path(...)
create_pango_context(...)
create_pango_layout(...)
destroy(...)
drag_begin(...)
drag_check_threshold(...)
drag_dest_add_image_targets(...)
drag_dest_add_text_targets(...)
drag_dest_add_uri_targets(...)
drag_dest_find_target(...)
drag_dest_get_target_list(...)
drag_dest_set(...)
drag_dest_set_proxy(...)
drag_dest_set_target_list(...)
drag_dest_unset(...)
drag_get_data(...)
drag_highlight(...)
drag_source_add_text_targets(...)
drag_source_get_target_list(...)
drag_source_set(...)
drag_source_set_icon(...)
drag_source_set_icon_pixbuf(...)
drag_source_set_icon_stock(...)
drag_source_set_target_list(...)
drag_source_unset(...)
drag_unhighlight(...)
ensure_style(...)
event(...)
freeze_child_notify(...)
get_accessible(...)
get_allocation(...)
get_ancestor(...)
get_child_requisition(...)
get_child_visible(...)
get_clipboard(...)
get_colormap(...)
get_composite_name(...)
get_direction(...)
get_display(...)
get_events(...)
get_extension_events(...)
get_modifier_style(...)
get_name(...)
get_no_show_all(...)
get_pango_context(...)
get_parent(...)
get_parent_window(...)
get_pointer(...)
get_root_window(...)
get_screen(...)
get_settings(...)
get_size_request(...)
get_style(...)
get_toplevel(...)
get_visual(...)
grab_add(...)
grab_default(...)
grab_focus(...)
grab_remove(...)
has_screen(...)
hide(...)
hide_all(...)
hide_on_delete(...)
intersect(...)
is_ancestor(...)
is_focus(...)
list_mnemonic_labels(...)
map(...)
menu_get_for_attach_widget(...)
mnemonic_activate(...)
modify_base(...)
modify_bg(...)
modify_fg(...)
modify_font(...)
modify_style(...)
modify_text(...)
path(...)
queue_clear(...)
queue_clear_area(...)
queue_draw(...)
queue_draw_area(...)
queue_resize(...)
queue_resize_no_redraw(...)
rc_get_style(...)
realize(...)
remove_accelerator(...)
remove_mnemonic_label(...)
render_icon(...)
reparent(...)
reset_rc_styles(...)
reset_shapes(...)
selection_add_target(...)
selection_add_targets(...)
selection_clear_targets(...)
selection_convert(...)
selection_owner_set(...)
selection_remove_all(...)
send_expose(...)
set_accel_path(...)
set_app_paintable(...)
set_child_visible(...)
set_colormap(...)
set_composite_name(...)
set_direction(...)
set_double_buffered(...)
set_events(...)
set_extension_events(...)
set_name(...)
set_no_show_all(...)
set_parent(...)
set_parent_window(...)
set_redraw_on_allocate(...)
set_scroll_adjustments(...)
set_sensitive(...)
set_size_request(...)
set_state(...)
set_style(...)
set_uposition(...)
set_usize(...)
shape_combine_mask(...)
show(...)
show_all(...)
show_now(...)
size_allocate(...)
size_request(...)
style_get_property(...)
thaw_child_notify(...)
translate_coordinates(...)
unmap(...)
unparent(...)
unrealize(...)

Data and other attributes inherited from gtk.Widget:
allocation = <attribute 'allocation' of 'gtk.Widget' objects>
do_button_press_event = <built-in method do_button_press_event of gobject.GObjectMeta object>
do_button_release_event = <built-in method do_button_release_event of gobject.GObjectMeta object>
do_can_activate_accel = <built-in method do_can_activate_accel of gobject.GObjectMeta object>
do_client_event = <built-in method do_client_event of gobject.GObjectMeta object>
do_configure_event = <built-in method do_configure_event of gobject.GObjectMeta object>
do_delete_event = <built-in method do_delete_event of gobject.GObjectMeta object>
do_destroy_event = <built-in method do_destroy_event of gobject.GObjectMeta object>
do_direction_changed = <built-in method do_direction_changed of gobject.GObjectMeta object>
do_drag_begin = <built-in method do_drag_begin of gobject.GObjectMeta object>
do_drag_data_delete = <built-in method do_drag_data_delete of gobject.GObjectMeta object>
do_drag_data_get = <built-in method do_drag_data_get of gobject.GObjectMeta object>
do_drag_data_received = <built-in method do_drag_data_received of gobject.GObjectMeta object>
do_drag_drop = <built-in method do_drag_drop of gobject.GObjectMeta object>
do_drag_end = <built-in method do_drag_end of gobject.GObjectMeta object>
do_drag_leave = <built-in method do_drag_leave of gobject.GObjectMeta object>
do_drag_motion = <built-in method do_drag_motion of gobject.GObjectMeta object>
do_enter_notify_event = <built-in method do_enter_notify_event of gobject.GObjectMeta object>
do_event = <built-in method do_event of gobject.GObjectMeta object>
do_expose_event = <built-in method do_expose_event of gobject.GObjectMeta object>
do_focus = <built-in method do_focus of gobject.GObjectMeta object>
do_focus_in_event = <built-in method do_focus_in_event of gobject.GObjectMeta object>
do_focus_out_event = <built-in method do_focus_out_event of gobject.GObjectMeta object>
do_grab_focus = <built-in method do_grab_focus of gobject.GObjectMeta object>
do_grab_notify = <built-in method do_grab_notify of gobject.GObjectMeta object>
do_hide = <built-in method do_hide of gobject.GObjectMeta object>
do_hide_all = <built-in method do_hide_all of gobject.GObjectMeta object>
do_hierarchy_changed = <built-in method do_hierarchy_changed of gobject.GObjectMeta object>
do_key_press_event = <built-in method do_key_press_event of gobject.GObjectMeta object>
do_key_release_event = <built-in method do_key_release_event of gobject.GObjectMeta object>
do_leave_notify_event = <built-in method do_leave_notify_event of gobject.GObjectMeta object>
do_map = <built-in method do_map of gobject.GObjectMeta object>
do_map_event = <built-in method do_map_event of gobject.GObjectMeta object>
do_mnemonic_activate = <built-in method do_mnemonic_activate of gobject.GObjectMeta object>
do_motion_notify_event = <built-in method do_motion_notify_event of gobject.GObjectMeta object>
do_no_expose_event = <built-in method do_no_expose_event of gobject.GObjectMeta object>
do_parent_set = <built-in method do_parent_set of gobject.GObjectMeta object>
do_popup_menu = <built-in method do_popup_menu of gobject.GObjectMeta object>
do_property_notify_event = <built-in method do_property_notify_event of gobject.GObjectMeta object>
do_proximity_in_event = <built-in method do_proximity_in_event of gobject.GObjectMeta object>
do_proximity_out_event = <built-in method do_proximity_out_event of gobject.GObjectMeta object>
do_realize = <built-in method do_realize of gobject.GObjectMeta object>
do_screen_changed = <built-in method do_screen_changed of gobject.GObjectMeta object>
do_scroll_event = <built-in method do_scroll_event of gobject.GObjectMeta object>
do_selection_clear_event = <built-in method do_selection_clear_event of gobject.GObjectMeta object>
do_selection_get = <built-in method do_selection_get of gobject.GObjectMeta object>
do_selection_notify_event = <built-in method do_selection_notify_event of gobject.GObjectMeta object>
do_selection_received = <built-in method do_selection_received of gobject.GObjectMeta object>
do_selection_request_event = <built-in method do_selection_request_event of gobject.GObjectMeta object>
do_show = <built-in method do_show of gobject.GObjectMeta object>
do_show_all = <built-in method do_show_all of gobject.GObjectMeta object>
do_show_help = <built-in method do_show_help of gobject.GObjectMeta object>
do_size_allocate = <built-in method do_size_allocate of gobject.GObjectMeta object>
do_size_request = <built-in method do_size_request of gobject.GObjectMeta object>
do_state_changed = <built-in method do_state_changed of gobject.GObjectMeta object>
do_style_set = <built-in method do_style_set of gobject.GObjectMeta object>
do_unmap = <built-in method do_unmap of gobject.GObjectMeta object>
do_unmap_event = <built-in method do_unmap_event of gobject.GObjectMeta object>
do_unrealize = <built-in method do_unrealize of gobject.GObjectMeta object>
do_visibility_notify_event = <built-in method do_visibility_notify_event of gobject.GObjectMeta object>
do_window_state_event = <built-in method do_window_state_event of gobject.GObjectMeta object>
name = <attribute 'name' of 'gtk.Widget' objects>
parent = <attribute 'parent' of 'gtk.Widget' objects>
saved_state = <attribute 'saved_state' of 'gtk.Widget' objects>
set_activate_signal = <built-in method set_activate_signal of gobject.GObjectMeta object>
set_set_scroll_adjustments_signal = <built-in method set_set_scroll_adjustments_signal of gobject.GObjectMeta object>
state = <attribute 'state' of 'gtk.Widget' objects>
style = <attribute 'style' of 'gtk.Widget' objects>
window = <attribute 'window' of 'gtk.Widget' objects>

Methods inherited from gtk.Object:
flags(...)
set_flags(...)
unset_flags(...)

Data and other attributes inherited from gtk.Object:
do_destroy = <built-in method do_destroy of gobject.GObjectMeta object>

Methods inherited from gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
chain(...)
connect(...)
connect_after(...)
connect_object(...)
connect_object_after(...)
disconnect(...)
emit(...)
emit_stop_by_name(...)
freeze_notify(...)
get_data(...)
get_property(...)
handler_block(...)
handler_disconnect(...)
handler_is_connected(...)
handler_unblock(...)
notify(...)
set_data(...)
set_property(...)
stop_emission(...)
thaw_notify(...)

Data and other attributes inherited from gobject.GObject:
__dict__ = <dictproxy object>
__gdoc__ = 'Object GtkDrawingArea\n\nSignals from GObject:\n n...widget_show_all() should not affect this widget\n\n'
__grefcount__ = <attribute '__grefcount__' of 'gobject.GObject' objects>
__new__ = <built-in method __new__ of gobject.GObjectMeta object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
props = <gobject.GProps object>

 
class EntryDialog(gtk.Dialog)
    
Method resolution order:
EntryDialog
gtk.Dialog
gtk.Window
gtk.Bin
gtk.Container
gtk.Widget
gtk.Object
gobject.GObject
__builtin__.object

Methods defined here:
__init__(self, message='', default_text='', modal=True)
click(self, button)
quit(self, w=None, event=None)

Methods inherited from gtk.Dialog:
add_action_widget(...)
add_button(...)
add_buttons(...)
get_has_separator(...)
get_response_for_widget(...)
response(...)
run(...)
set_alternative_button_order(...)
set_default_response(...)
set_has_separator(...)
set_response_sensitive(...)

Data and other attributes inherited from gtk.Dialog:
__gtype__ = <GType GtkDialog (136698704)>
action_area = <attribute 'action_area' of 'gtk.Dialog' objects>
vbox = <attribute 'vbox' of 'gtk.Dialog' objects>

Methods inherited from gtk.Window:
activate_default(...)
activate_focus(...)
activate_key(...)
add_accel_group(...)
add_mnemonic(...)
begin_move_drag(...)
begin_resize_drag(...)
deiconify(...)
fullscreen(...)
get_accept_focus(...)
get_decorated(...)
get_default_size(...)
get_destroy_with_parent(...)
get_focus(...)
get_focus_on_map(...)
get_frame_dimensions(...)
get_gravity(...)
get_has_frame(...)
get_icon(...)
get_icon_list(...)
get_icon_name(...)
get_mnemonic_modifier(...)
get_modal(...)
get_position(...)
get_resizable(...)
get_role(...)
get_screen(...)
get_size(...)
get_skip_pager_hint(...)
get_skip_taskbar_hint(...)
get_title(...)
get_transient_for(...)
get_type_hint(...)
get_urgency_hint(...)
has_toplevel_focus(...)
iconify(...)
is_active(...)
maximize(...)
mnemonic_activate(...)
move(...)
parse_geometry(...)
present(...)
present_with_time(...)
propagate_key_event(...)
remove_accel_group(...)
remove_mnemonic(...)
reshow_with_initial_size(...)
resize(...)
set_accept_focus(...)
set_decorated(...)
set_default(...)
set_default_size(...)
set_destroy_with_parent(...)
set_focus(...)
set_focus_on_map(...)
set_frame_dimensions(...)
set_geometry_hints(...)
set_gravity(...)
set_has_frame(...)
set_icon(...)
set_icon_from_file(...)
set_icon_list(...)
set_icon_name(...)
set_keep_above(...)
set_keep_below(...)
set_mnemonic_modifier(...)
set_modal(...)
set_policy(...)
set_position(...)
set_resizable(...)
set_role(...)
set_screen(...)
set_skip_pager_hint(...)
set_skip_taskbar_hint(...)
set_title(...)
set_transient_for(...)
set_type_hint(...)
set_urgency_hint(...)
set_wmclass(...)
stick(...)
tooltips_get_info_from_tip_window(...)
unfullscreen(...)
unmaximize(...)
unstick(...)

Data and other attributes inherited from gtk.Window:
allow_grow = <attribute 'allow_grow' of 'gtk.Window' objects>
allow_shrink = <attribute 'allow_shrink' of 'gtk.Window' objects>
configure_notify_received = <attribute 'configure_notify_received' of 'gtk.Window' objects>
configure_request_count = <attribute 'configure_request_count' of 'gtk.Window' objects>
decorated = <attribute 'decorated' of 'gtk.Window' objects>
default_widget = <attribute 'default_widget' of 'gtk.Window' objects>
destroy_with_parent = <attribute 'destroy_with_parent' of 'gtk.Window' objects>
do_activate_default = <built-in method do_activate_default of gobject.GObjectMeta object>
do_activate_focus = <built-in method do_activate_focus of gobject.GObjectMeta object>
do_frame_event = <built-in method do_frame_event of gobject.GObjectMeta object>
do_keys_changed = <built-in method do_keys_changed of gobject.GObjectMeta object>
do_move_focus = <built-in method do_move_focus of gobject.GObjectMeta object>
do_set_focus = <built-in method do_set_focus of gobject.GObjectMeta object>
focus_widget = <attribute 'focus_widget' of 'gtk.Window' objects>
frame = <attribute 'frame' of 'gtk.Window' objects>
frame_bottom = <attribute 'frame_bottom' of 'gtk.Window' objects>
frame_left = <attribute 'frame_left' of 'gtk.Window' objects>
frame_right = <attribute 'frame_right' of 'gtk.Window' objects>
frame_top = <attribute 'frame_top' of 'gtk.Window' objects>
gravity = <attribute 'gravity' of 'gtk.Window' objects>
group = <attribute 'group' of 'gtk.Window' objects>
has_focus = <attribute 'has_focus' of 'gtk.Window' objects>
has_frame = <attribute 'has_frame' of 'gtk.Window' objects>
has_user_ref_count = <attribute 'has_user_ref_count' of 'gtk.Window' objects>
iconify_initially = <attribute 'iconify_initially' of 'gtk.Window' objects>
keys_changed_handler = <attribute 'keys_changed_handler' of 'gtk.Window' objects>
maximize_initially = <attribute 'maximize_initially' of 'gtk.Window' objects>
mnemonic_modifier = <attribute 'mnemonic_modifier' of 'gtk.Window' objects>
modal = <attribute 'modal' of 'gtk.Window' objects>
need_default_position = <attribute 'need_default_position' of 'gtk.Window' objects>
need_default_size = <attribute 'need_default_size' of 'gtk.Window' objects>
position = <attribute 'position' of 'gtk.Window' objects>
stick_initially = <attribute 'stick_initially' of 'gtk.Window' objects>
title = <attribute 'title' of 'gtk.Window' objects>
transient_parent = <attribute 'transient_parent' of 'gtk.Window' objects>
type = <attribute 'type' of 'gtk.Window' objects>
type_hint = <attribute 'type_hint' of 'gtk.Window' objects>
wm_role = <attribute 'wm_role' of 'gtk.Window' objects>
wmclass_class = <attribute 'wmclass_class' of 'gtk.Window' objects>
wmclass_name = <attribute 'wmclass_name' of 'gtk.Window' objects>

Methods inherited from gtk.Bin:
get_child(...)

Data and other attributes inherited from gtk.Bin:
child = <attribute 'child' of 'gtk.Bin' objects>

Methods inherited from gtk.Container:
__iter__(...)
x.__iter__() <==> iter(x)
__len__(...)
x.__len__() <==> len(x)
__nonzero__(...)
x.__nonzero__() <==> x != 0
add(...)
add_with_properties(...)
check_resize(...)
child_get(...)
child_get_property(...)
child_set(...)
child_set_property(...)
child_type(...)
children(...)
forall(...)
foreach(...)
get_border_width(...)
get_children(...)
get_focus_chain(...)
get_focus_hadjustment(...)
get_focus_vadjustment(...)
get_resize_mode(...)
propagate_expose(...)
remove(...)
resize_children(...)
set_border_width(...)
set_focus_chain(...)
set_focus_child(...)
set_focus_hadjustment(...)
set_focus_vadjustment(...)
set_reallocate_redraws(...)
set_resize_mode(...)
unset_focus_chain(...)

Data and other attributes inherited from gtk.Container:
border_width = <attribute 'border_width' of 'gtk.Container' objects>
do_add = <built-in method do_add of gobject.GObjectMeta object>
do_check_resize = <built-in method do_check_resize of gobject.GObjectMeta object>
do_child_type = <built-in method do_child_type of gobject.GObjectMeta object>
do_remove = <built-in method do_remove of gobject.GObjectMeta object>
do_set_focus_child = <built-in method do_set_focus_child of gobject.GObjectMeta object>
focus_child = <attribute 'focus_child' of 'gtk.Container' objects>
has_focus_chain = <attribute 'has_focus_chain' of 'gtk.Container' objects>
need_resize = <attribute 'need_resize' of 'gtk.Container' objects>
reallocate_redraws = <attribute 'reallocate_redraws' of 'gtk.Container' objects>
resize_mode = <attribute 'resize_mode' of 'gtk.Container' objects>

Methods inherited from gtk.Widget:
activate(...)
add_accelerator(...)
add_events(...)
add_mnemonic_label(...)
can_activate_accel(...)
child_focus(...)
child_notify(...)
class_path(...)
create_pango_context(...)
create_pango_layout(...)
destroy(...)
drag_begin(...)
drag_check_threshold(...)
drag_dest_add_image_targets(...)
drag_dest_add_text_targets(...)
drag_dest_add_uri_targets(...)
drag_dest_find_target(...)
drag_dest_get_target_list(...)
drag_dest_set(...)
drag_dest_set_proxy(...)
drag_dest_set_target_list(...)
drag_dest_unset(...)
drag_get_data(...)
drag_highlight(...)
drag_source_add_text_targets(...)
drag_source_get_target_list(...)
drag_source_set(...)
drag_source_set_icon(...)
drag_source_set_icon_pixbuf(...)
drag_source_set_icon_stock(...)
drag_source_set_target_list(...)
drag_source_unset(...)
drag_unhighlight(...)
draw(...)
ensure_style(...)
event(...)
freeze_child_notify(...)
get_accessible(...)
get_allocation(...)
get_ancestor(...)
get_child_requisition(...)
get_child_visible(...)
get_clipboard(...)
get_colormap(...)
get_composite_name(...)
get_direction(...)
get_display(...)
get_events(...)
get_extension_events(...)
get_modifier_style(...)
get_name(...)
get_no_show_all(...)
get_pango_context(...)
get_parent(...)
get_parent_window(...)
get_pointer(...)
get_root_window(...)
get_settings(...)
get_size_request(...)
get_style(...)
get_toplevel(...)
get_visual(...)
grab_add(...)
grab_default(...)
grab_focus(...)
grab_remove(...)
has_screen(...)
hide(...)
hide_all(...)
hide_on_delete(...)
intersect(...)
is_ancestor(...)
is_focus(...)
list_mnemonic_labels(...)
map(...)
menu_get_for_attach_widget(...)
modify_base(...)
modify_bg(...)
modify_fg(...)
modify_font(...)
modify_style(...)
modify_text(...)
path(...)
queue_clear(...)
queue_clear_area(...)
queue_draw(...)
queue_draw_area(...)
queue_resize(...)
queue_resize_no_redraw(...)
rc_get_style(...)
realize(...)
remove_accelerator(...)
remove_mnemonic_label(...)
render_icon(...)
reparent(...)
reset_rc_styles(...)
reset_shapes(...)
selection_add_target(...)
selection_add_targets(...)
selection_clear_targets(...)
selection_convert(...)
selection_owner_set(...)
selection_remove_all(...)
send_expose(...)
set_accel_path(...)
set_app_paintable(...)
set_child_visible(...)
set_colormap(...)
set_composite_name(...)
set_direction(...)
set_double_buffered(...)
set_events(...)
set_extension_events(...)
set_name(...)
set_no_show_all(...)
set_parent(...)
set_parent_window(...)
set_redraw_on_allocate(...)
set_scroll_adjustments(...)
set_sensitive(...)
set_size_request(...)
set_state(...)
set_style(...)
set_uposition(...)
set_usize(...)
shape_combine_mask(...)
show(...)
show_all(...)
show_now(...)
size_allocate(...)
size_request(...)
style_get_property(...)
thaw_child_notify(...)
translate_coordinates(...)
unmap(...)
unparent(...)
unrealize(...)

Data and other attributes inherited from gtk.Widget:
allocation = <attribute 'allocation' of 'gtk.Widget' objects>
do_button_press_event = <built-in method do_button_press_event of gobject.GObjectMeta object>
do_button_release_event = <built-in method do_button_release_event of gobject.GObjectMeta object>
do_can_activate_accel = <built-in method do_can_activate_accel of gobject.GObjectMeta object>
do_client_event = <built-in method do_client_event of gobject.GObjectMeta object>
do_configure_event = <built-in method do_configure_event of gobject.GObjectMeta object>
do_delete_event = <built-in method do_delete_event of gobject.GObjectMeta object>
do_destroy_event = <built-in method do_destroy_event of gobject.GObjectMeta object>
do_direction_changed = <built-in method do_direction_changed of gobject.GObjectMeta object>
do_drag_begin = <built-in method do_drag_begin of gobject.GObjectMeta object>
do_drag_data_delete = <built-in method do_drag_data_delete of gobject.GObjectMeta object>
do_drag_data_get = <built-in method do_drag_data_get of gobject.GObjectMeta object>
do_drag_data_received = <built-in method do_drag_data_received of gobject.GObjectMeta object>
do_drag_drop = <built-in method do_drag_drop of gobject.GObjectMeta object>
do_drag_end = <built-in method do_drag_end of gobject.GObjectMeta object>
do_drag_leave = <built-in method do_drag_leave of gobject.GObjectMeta object>
do_drag_motion = <built-in method do_drag_motion of gobject.GObjectMeta object>
do_enter_notify_event = <built-in method do_enter_notify_event of gobject.GObjectMeta object>
do_event = <built-in method do_event of gobject.GObjectMeta object>
do_expose_event = <built-in method do_expose_event of gobject.GObjectMeta object>
do_focus = <built-in method do_focus of gobject.GObjectMeta object>
do_focus_in_event = <built-in method do_focus_in_event of gobject.GObjectMeta object>
do_focus_out_event = <built-in method do_focus_out_event of gobject.GObjectMeta object>
do_grab_focus = <built-in method do_grab_focus of gobject.GObjectMeta object>
do_grab_notify = <built-in method do_grab_notify of gobject.GObjectMeta object>
do_hide = <built-in method do_hide of gobject.GObjectMeta object>
do_hide_all = <built-in method do_hide_all of gobject.GObjectMeta object>
do_hierarchy_changed = <built-in method do_hierarchy_changed of gobject.GObjectMeta object>
do_key_press_event = <built-in method do_key_press_event of gobject.GObjectMeta object>
do_key_release_event = <built-in method do_key_release_event of gobject.GObjectMeta object>
do_leave_notify_event = <built-in method do_leave_notify_event of gobject.GObjectMeta object>
do_map = <built-in method do_map of gobject.GObjectMeta object>
do_map_event = <built-in method do_map_event of gobject.GObjectMeta object>
do_mnemonic_activate = <built-in method do_mnemonic_activate of gobject.GObjectMeta object>
do_motion_notify_event = <built-in method do_motion_notify_event of gobject.GObjectMeta object>
do_no_expose_event = <built-in method do_no_expose_event of gobject.GObjectMeta object>
do_parent_set = <built-in method do_parent_set of gobject.GObjectMeta object>
do_popup_menu = <built-in method do_popup_menu of gobject.GObjectMeta object>
do_property_notify_event = <built-in method do_property_notify_event of gobject.GObjectMeta object>
do_proximity_in_event = <built-in method do_proximity_in_event of gobject.GObjectMeta object>
do_proximity_out_event = <built-in method do_proximity_out_event of gobject.GObjectMeta object>
do_realize = <built-in method do_realize of gobject.GObjectMeta object>
do_screen_changed = <built-in method do_screen_changed of gobject.GObjectMeta object>
do_scroll_event = <built-in method do_scroll_event of gobject.GObjectMeta object>
do_selection_clear_event = <built-in method do_selection_clear_event of gobject.GObjectMeta object>
do_selection_get = <built-in method do_selection_get of gobject.GObjectMeta object>
do_selection_notify_event = <built-in method do_selection_notify_event of gobject.GObjectMeta object>
do_selection_received = <built-in method do_selection_received of gobject.GObjectMeta object>
do_selection_request_event = <built-in method do_selection_request_event of gobject.GObjectMeta object>
do_show = <built-in method do_show of gobject.GObjectMeta object>
do_show_all = <built-in method do_show_all of gobject.GObjectMeta object>
do_show_help = <built-in method do_show_help of gobject.GObjectMeta object>
do_size_allocate = <built-in method do_size_allocate of gobject.GObjectMeta object>
do_size_request = <built-in method do_size_request of gobject.GObjectMeta object>
do_state_changed = <built-in method do_state_changed of gobject.GObjectMeta object>
do_style_set = <built-in method do_style_set of gobject.GObjectMeta object>
do_unmap = <built-in method do_unmap of gobject.GObjectMeta object>
do_unmap_event = <built-in method do_unmap_event of gobject.GObjectMeta object>
do_unrealize = <built-in method do_unrealize of gobject.GObjectMeta object>
do_visibility_notify_event = <built-in method do_visibility_notify_event of gobject.GObjectMeta object>
do_window_state_event = <built-in method do_window_state_event of gobject.GObjectMeta object>
name = <attribute 'name' of 'gtk.Widget' objects>
parent = <attribute 'parent' of 'gtk.Widget' objects>
saved_state = <attribute 'saved_state' of 'gtk.Widget' objects>
set_activate_signal = <built-in method set_activate_signal of gobject.GObjectMeta object>
set_set_scroll_adjustments_signal = <built-in method set_set_scroll_adjustments_signal of gobject.GObjectMeta object>
state = <attribute 'state' of 'gtk.Widget' objects>
style = <attribute 'style' of 'gtk.Widget' objects>
window = <attribute 'window' of 'gtk.Widget' objects>

Methods inherited from gtk.Object:
flags(...)
set_flags(...)
unset_flags(...)

Data and other attributes inherited from gtk.Object:
do_destroy = <built-in method do_destroy of gobject.GObjectMeta object>

Methods inherited from gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
chain(...)
connect(...)
connect_after(...)
connect_object(...)
connect_object_after(...)
disconnect(...)
emit(...)
emit_stop_by_name(...)
freeze_notify(...)
get_data(...)
get_property(...)
handler_block(...)
handler_disconnect(...)
handler_is_connected(...)
handler_unblock(...)
notify(...)
set_data(...)
set_property(...)
stop_emission(...)
thaw_notify(...)

Data and other attributes inherited from gobject.GObject:
__dict__ = <dictproxy object>
__gdoc__ = 'Object GtkDialog\n\nSignals from GObject:\n notify...he dialog has a separator bar above its buttons\n\n'
__grefcount__ = <attribute '__grefcount__' of 'gobject.GObject' objects>
__new__ = <built-in method __new__ of gobject.GObjectMeta object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
props = <gobject.GProps object>

 
Functions
       
cos(...)
cos(x)
 
Return the cosine of x (measured in radians).
main(title, width, height, board_width, board_height)
sin(...)
sin(x)
 
Return the sine of x (measured in radians).

 
Data
        __aplication__ = 'Dbus drawing board'
__author__ = 'Yaacov Zamir <kzamir@walla.co.il>'
__credits__ = 'Yaacov Zamir'
__version__ = '0.2'
pi = 3.1415926535897931

 
Author
        Yaacov Zamir <kzamir@walla.co.il>

 
Credits
        Yaacov Zamir