summaryrefslogtreecommitdiff
path: root/examples/pygtk-demo/pygtk-demo.py
Commit message (Collapse)AuthorAgeFilesLines
* Add 'import pygtk; pygtk.require('2.0') statements where neededDieter Verfaillie2011-02-171-5/+2
|
* Print gtk/pygtk version when running pygtk-demoJohn Stowers2010-10-161-1/+4
|
* Bug 311008 – pygtk-demo fixesGian Mario Tagliaretti2009-02-221-2/+4
| | | | | | | | | | | | | 2009-02-22 Gian Mario Tagliaretti <gianmt@gnome.org> Bug 311008 – pygtk-demo fixes * examples/pygtk-demo/pygtk-demo.py: Apply a patch from Andi Albrecht. * examples/pygtk-demo/demos/pixbufs.py: Remove deprecation Warnings. svn path=/trunk/; revision=3090
* examples/pygtk-demo/* Replace the pygtk-demo with the new version writtenJohn Finlay2004-10-011-59/+220
| | | | | * examples/pygtk-demo/* Replace the pygtk-demo with the new version written by Maik Hertha. Fixes #138823.
* New demo. Rearrange code a bit. Clean up a bit.Johan Dahlin2002-12-231-136/+146
| | | | | | * examples/pygtk-demo/demos/editable_cells.py: New demo. * examples/pygtk-demo/pygtk-demo.py: Rearrange code a bit. * examples/pygtk-demo/demos/*.py: Clean up a bit.
* clean up a bit and add broken stock icon registrationJohan Dahlin2002-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-25 Johan Dahlin <jdahlin@telia.com> * examples/pygtk-demo/demos/appwindow.py: clean up a bit and add broken stock icon registration * examples/pygtk-demo/pygtk-demo.py: Use set_size_request instead of set_usize * gtk/gtk.override (_wrap_gtk_widget_translate_coordinates): Impl (_wrap_gtk_editable_get_selection_bounds): Impl (_wrap_gtk_entry_get_layout_offsets): Impl * gtk/gtk.defs: Add GtkTreeView.columns_autosize * gtk/gtk-types.defs: Add a few fields 2002-02-21 Johan Dahlin <jdahlin@telia.com> * gtk/gtk.defs: Removed gtk_tree_view_column_cell_render, gtk_tree_view_column_cell_focus, gtk_tree_view_column_cell_draw_focus and gtk_tree_view_column_cell_set_dirty since they're now private in gtk.
* merge from short-class-names-branchJames Henstridge2001-09-141-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-14 James Henstridge <james@daa.com.au> merge from short-class-names-branch 2001-09-12 James Henstridge <james@daa.com.au> * codegen/codegen.py (write_class, write_interface): set the short name as the class name here. * gobjectmodule.c (pygobject_register_class): pass ec->tp_name as the name for the class passed to PyExtensionClass_Export*. * codegen/codegen.py (write_source): pass the C name to pygobject_register_class again. 2001-09-11 James Henstridge <james@daa.com.au> * gtk/__init__.py (create_pixmap): few fixups to get things to import correctly. * gtk/gtkmodule.c (init_gtk): there is no _pygdk_register_boxed(). * gtk/libglade.override (init): same here. * gtk/gtk.override (init): same here. * gtk/gdk.override (init): use short class names here. * gtk/gtkmodule.c (init_gtk): initialise both the gtk._gtk and gtk.gdk modules. * gtk/gtk.defs: don't include gdk.defs * gtk/gtk.override: remove all GDK override wrappers. * gtk/gdk.override: new file taking the overrides for GDK functions. * codegen/codegen.py (write_source): register only the short name of the GObject, interface or boxed type.
* more fixups to use pyg_type_from_object.James Henstridge2001-06-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | 2001-06-23 James Henstridge <james@daa.com.au> * gobjectmodule.c (pyg_signal_new): more fixups to use pyg_type_from_object. * gtk/gtk.override (_wrap_gtk_accel_group_new): don't use PyGtkAccelGroup_New (not sure why I am fixing this -- will change soon anyway). (_wrap_gtk_tree_store_set_value): use pyg_type_from_object here. (_wrap_gtk_list_store_set_value): same here. * codegen/argtypes.py (CustomBoxedArg): rename from BoxedArg. (BoxedArg): new code for standardised PyGBoxed handling. (ArgMatcher.register_custom_boxed): rename from register_boxed (ArgMatcher.register_boxed): new function for PyGBoxed types. (arg): use ArgMatcher.register_boxed to register GtkAccelGroup. * pygobject.h (pyg_boxed_check): change macro to check against the typecode, rather than python wrapper type.
* correct signal name.James Henstridge2001-06-111-1/+1
| | | | | | | | | 2001-06-12 James Henstridge <james@daa.com.au> * examples/pygtk-demo/pygtk-demo.py (create_list): correct signal name. * gtk/gtk.defs: update for changes made to gtk.
* toolbar demo.James Henstridge2001-03-301-3/+6
| | | | | | | | | 2001-03-30 James Henstridge <james@daa.com.au> * examples/pygtk-demo/demos/toolbar.py (main): toolbar demo. * examples/pygtk-demo/demos/buttonbox.py (main): add button box demo.
* moved rewritten testgtk demo hereJames Henstridge2001-03-301-0/+142
2001-03-30 James Henstridge <james@daa.com.au> * examples/pygtk-demo: moved rewritten testgtk demo here * gobjectmodule.c (pygobject_set_property): initialise the GValue to { 0, }, so set_property actually works. (pygobject_get_property): same here. * gtk/gtk.defs: updated enum/flag defs. * gtk/gdk.defs: updated enum/flag defs. * examples/gobject/signal.py (D.do_my_signal): add small example of overriding class closure for a signal introduced from python code. * codegen/h2def.py: add --onlyenums flag to only output enum defs.