summaryrefslogtreecommitdiff
path: root/examples/pygtk-demo
Commit message (Collapse)AuthorAgeFilesLines
* Add 'import pygtk; pygtk.require('2.0') statements where neededDieter Verfaillie2011-02-1730-5/+63
|
* Fix response signal in pygtk-demo/print_editorJohn Stowers2010-10-161-3/+3
| | | | * fixes bug 614720
* Print gtk/pygtk version when running pygtk-demoJohn Stowers2010-10-161-1/+4
|
* Add new Gtk-2.20 APIJohn Stowers2010-07-092-0/+174
| | | | | | | | * Notably this adds GtkSpinner, GtkOffscreenWindow, GtkCellRendererSpinner, GtkToolPalette objects * Add new api to other objects * Add gtk.ToolbarPalette demo * Add gtk.Spinner demo
* Add a gtk.InfoBar demoJohn Stowers2010-05-081-0/+87
|
* Fixed invocation of FileChooserDialog in print-editor demoPietro Battiston2009-07-171-2/+2
|
* Code maintenance: add .gitignore filesPaul Pogonyshev2009-04-191-0/+2
|
* Bug 311008 – pygtk-demo fixesGian Mario Tagliaretti2009-02-222-4/+6
| | | | | | | | | | | | | 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
* wrap gtk.IconView.get_tooltip_context and use it in the demo, fixes #539743Gian Mario Tagliaretti2008-06-231-0/+29
| | | | svn path=/trunk/; revision=2998
* wrap gtk.TreeView.get_tooltip_context and use it in the demo, fixes #530145Gian Mario Tagliaretti2008-06-221-21/+8
| | | | svn path=/trunk/; revision=2996
* add new example textscroll.py by Muntyan, fixes #522047Gian Mario Tagliaretti2008-05-181-0/+133
| | | | svn path=/trunk/; revision=2982
* Fix change display demo, patch by Yevgen Muntyan. fixes #354896.Gian Mario Tagliaretti2007-12-161-1/+1
| | | | svn path=/trunk/; revision=2943
* Trivial fix in examples/pygtk-demo/demos/hypertext.pyPaul Pogonyshev2007-12-111-2/+2
| | | | svn path=/trunk/; revision=2934
* Add tooltip demo and move builder demo to pygtk-demoGian Mario Tagliaretti2007-07-203-0/+520
| | | | svn path=/trunk/; revision=2854
* Remove .cvsignore archivesJohan Dahlin2007-01-162-12/+0
| | | | svn path=/trunk/; revision=2801
* status icon demo, by Nikos KouremenosGustavo J. A. M. Carneiro2006-11-191-0/+31
|
* update printing exampleGustavo J. A. M. Carneiro2006-06-151-3/+3
|
* update print editor example to match gtk+ api changesGustavo J. A. M. Carneiro2006-05-201-1/+2
|
* add Print Editor demoGustavo J. A. M. Carneiro2006-05-081-0/+449
|
* pyflakesJohan Dahlin2006-04-037-8/+10
|
* Run reindent.py on all python codeJohan Dahlin2006-04-0310-57/+49
|
* Check for null, so it can be used with a model filter, fixes #311459Johan Dahlin2006-04-021-5/+8
| | | | | | * examples/pygtk-demo/demos/treemodel.py: Check for null, so it can be used with a model filter, fixes #311459 (Stephen Kennedy)
* reviewed by: JohanJohan Dahlin2006-04-021-4/+11
| | | | | * examples/pygtk-demo/demos/pixbufs.py: Remove discontinuous motion, fixes #327931
* remove FIXME comment in pixbuf demo regarding missing draw_rgb_image_dithalignGustavo J. A. M. Carneiro2006-01-261-2/+0
|
* shut up CVSManish Singh2005-03-051-1/+1
|
* Don't use gtk.TRUE/gtk.FALSE anymore.Johan Dahlin2005-02-234-11/+11
|
* install pygtk-demoGustavo J. A. M. Carneiro2005-02-171-0/+7
|
* gtk.AboutDialog exampleGustavo J. A. M. Carneiro2005-02-171-1/+9
|
* Use stock items and other fixes for examples.Johan Dahlin2004-12-233-5/+5
| | | | Fixes #156402 (Alan Horkan)
* examples/pygtk-demo/demos/dnd.py Fix popup dest code and use gobjectJohn Finlay2004-10-031-25/+23
| | | | | * examples/pygtk-demo/demos/dnd.py Fix popup dest code and use gobject timeout functions.
* examples/pygtk-demo/* Replace the pygtk-demo with the new version writtenJohn Finlay2004-10-0138-1775/+3994
| | | | | * examples/pygtk-demo/* Replace the pygtk-demo with the new version written by Maik Hertha. Fixes #138823.
* forgot to add a titleGustavo J. A. M. Carneiro2004-08-161-1/+2
|
* fsmw's GtkEntryCompletion exampleGustavo J. A. M. Carneiro2004-08-161-0/+71
|
* pep-8Johan Dahlin2004-07-281-53/+54
|
* Add 'Images' demo from Bug 100873: All demos from gtk-demo should be portedGustavo J. A. M. Carneiro2004-04-103-0/+163
|
* appwindow demo postfixGustavo J. A. M. Carneiro2004-03-071-1/+1
|
* pygtk appwindow demo fix (stock item registration)Gustavo J. A. M. Carneiro2004-03-072-5/+3
|
* Allow some parameters to be NULL.Johan Dahlin2003-03-071-0/+218
| | | | | | | | | | | | * gtk/gtk.defs (gtk_label_new_with_mnemonic, gtk_label_new) (render_icon): Allow some parameters to be NULL. * gtk/gtk.override (_wrap_gtk_stock_lookup) (_wrap_gtk_stock_list_ids) (_wrap_gtk_tree_view_insert_column_with_data_func): Impl. (ignore-glob): Remove gtk_accelerator_* * examples/pygtk-demo/demos/stock_browser.py: Ported from C
* New demo. Rearrange code a bit. Clean up a bit.Johan Dahlin2002-12-2314-286/+456
| | | | | | * 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.
* mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>:James Henstridge2002-08-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | 2002-08-24 James Henstridge <james@daa.com.au> mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>: * gtk/gtk.override: ignore more socket/plug functions on win32. * gtk/gdk.override: gdk_pixmap_lookup is not implemented on win32. * gtk/Makefile.am (common_ldflags): and here. * pango.override (PyPangoAttribute_Type): initialise tp_alloc and tp_new in the init() function, rather than in the structure definition itself. * Makefile.am (common_ldflags): pass -no-undefined if we are on windows. * configure.in: turn on win32 DLL support, and add OS_WIN32 and PLATFORM_WIN32 conditionals for use in makefiles.
* update to use this function. (ArgMatcher.register_boxed): short circuit ifJames Henstridge2002-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-07 James Henstridge <james@daa.com.au> * codegen/argtypes.py (GtkTreePathArg.write_return): update to use this function. (ArgMatcher.register_boxed): short circuit if there is already a handler for the boxed type (helps with setting custom handlers for boxed types). * gtk/gtk-types.c (pygdk_rectangle_from_pyobject): new function to parse a GdkRectangle from a PyObject. * gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path): print a warning if the return value could not be converted to a GtkTreePath. * gtk/gtk.override (_wrap_gtk_tree_model_get_value): don't assume tree paths are tuples. * codegen/argtypes.py (GtkTreePathArg.write_param): fix up code generator to get rid of assumption that tree paths are tuples, and catch case where pygtk_tree_path_from_pyobject() returns NULL. * gtk/gtk-types.c (pygtk_tree_path_from_pyobject): change so that we treat an integer PyObject as a tree path with a single index. * pygtype.c (pyg_closure_marshal): apply patch from Arjan Molenaar <arjanmolenaar@hetnet.nl> that fixes a reference leak for the argument tuple passed to the callback. (pyg_signal_class_closure_marshal): apply similar fix here.
* implement (code mostly from jrb@redhat.com, minor fixups from me)Matt Wilson2002-06-041-3/+5
| | | | | | | | | | | | 2002-06-03 Matt Wilson <msw@redhat.com> * gtk/gtk.override (_wrap_gtk_tree_view_insert_column_with_attributes): implement (code mostly from jrb@redhat.com, minor fixups from me) * gtk/gdk-types.defs (EventExpose): added to make the code generator write GdkEventExpose * for _wrap_gtk_container_propagate_expose (gets rid of a warning)
* the path argument must be a tuple. Ints are not automatically converted toMatt Wilson2002-05-311-1/+1
| | | | | | | | | | | | 2002-05-31 Matt Wilson <msw@redhat.com> * examples/pygtk-demo/demos/list_store.py (fixed_toggled): the path argument must be a tuple. Ints are not automatically converted to tuples any more. * pygtype.c (pyg_value_as_pyobject): change the behavior of G_TYPE_UINT to match the code generator's output on 32 bit systems.
* added parameter --errorfilename to allow redirection of stderr even withHans Breuer2002-04-211-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-21 Hans Breuer <hans@breuer.org> * codegen/codegen.py : added parameter --errorfilename to allow redirection of stderr even with clumsy windoze shell * codegen/override.py : extended to allow 'sys.platform' specific ignores * examples/pygtk-demo/demos/colorsel.py : use color = gtk.gdk.color_parse("blue") to get the initial color * examples/pygtk-demo/demos/draw.py : (new file) demonstrating some simple drawing operations. It is using the gtk.GC interface additions below. * gtk/gdk.override : implement GdkGC.tp_getattr, GdkGC.tp_setattr and gdk_gc_set_dashes (ported from #if 0'ed code in gtk/gtk-types.c (should be removed there ?) * gtk/gtk.override : ignore-win32 GTK_TYPE_PLUG GTK_TYPE_SOCKET gtk_socket_new (the TYPE ignores do not work yet) * config.h.win32 makefile.msc pygtk/makefile.msc : new files to build pygtk on windoze using the established glib/build/win32 infrastructure * pygtk/gtk/gtk-fake-win32.c : (new file) implementing gtk_plug_get_type() and gtk_socket_get_type(). It could vanish if codegen/codegen.py has learned something like 'ignore-class-$(sys.platform) or my GtkPlug/GtkSocket patch gets accepted with Gtk. * gtk/gtkmodule.c : added a g_assert() to ensure importing pygobject did work.
* clean up a bit and add broken stock icon registrationJohan Dahlin2002-02-252-20/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* add toggle for the check box column. VS:Johan Dahlin2002-02-051-0/+14
| | | | | | | | 2002-02-05 Johan Dahlin <jdahlin@telia.com> * examples/pygtk-demo/demos/list_store.py: add toggle for the check box column. VS: ----------------------------------------------------------------------
* add examples translated by Michelle Campeotto.James Henstridge2002-01-244-0/+439
| | | | | | | | | | 2002-01-24 James Henstridge <james@daa.com.au> * examples/pygtk-demo/demos/colorsel.py: * examples/pygtk-demo/demos/dialogs.py: * examples/pygtk-demo/demos/panes.py: * examples/pygtk-demo/demos/sizegroup.py: add examples translated by Michelle Campeotto.
* added appwindow.pyMatt Wilson2002-01-111-0/+154
| | | | | | | | 2002-01-11 Matt Wilson <msw@redhat.com> * Makefile.am (EXTRA_DIST): added appwindow.py * examples/pygtk-demo/demos/appwindow.py: added demo
* added missing newlineMatt Wilson2002-01-111-2/+2
| | | | | | | | | | | | | | | | | | 2002-01-11 Matt Wilson <msw@redhat.com> * codegen/argtypes.py (GtkTreePathArg.normal): added missing newline * gtk/gtk.defs (item_factory_path_from_widget): the return here should be gconst-gchar*. The header in gtk is wrong, filed #68527 against gtk. * gtk/gtk.override (pygtk_item_factory_cb): if the user passed data to GtkItemFactory.create_items, call the callable with the function data as the first parameter. (_wrap_gtk_item_factory_create_items): take an optional callback_data argument. Use PyGtkCustomNotify and g_object_weak_ref to free up the reference to the callable and data after the item factory is freed.
* the F10 key is used to start navigating the menu -- not alt.James Henstridge2002-01-071-1/+1
| | | | | | | | | | | | | | | | | | 2002-01-07 James Henstridge <james@daa.com.au> * examples/pygtk-demo/demos/itemfactory.py (main): the F10 key is used to start navigating the menu -- not alt. * gtk/gtk-types.c (PyGtkStyleHelper_Dealloc): use PyObject_DEL. (PyGtkStyle_Dealloc): same here. (PyGdkWindow_Dealloc): same here. (PyGdkGC_Dealloc): same here. (PyGdkColormap_Dealloc): same here. (pygdk_atom_dealloc): same here. * gobjectmodule.c (pyg_type_wrapper_dealloc): use PyObject_DEL to prevent segfaults with pymalloc. (pyg_param_spec_dealloc): same here.