[pygtk] Selection weirdness in TreeView

2011-06-17 Thread Jeffrey Barish
: print \nNo row selected def on_collapsed(self, treeview, treeiter, treepath): print Row, treepath, collapsed def run(self): gtk.main() app = SelectChildTestApp() app.run() -- Jeffrey Barish ___ pygtk mailing list pygtk

Re: [pygtk] pygtk and xmlrpc

2011-06-01 Thread Jeffrey Barish
them to cooperate. Any assistance would be appreciated. Consider using Pyro. The user manual describes how to run it inside another event loop (e.g., GTK's): http://irmen.home.xs4all.nl/pyro3/manual/4-usage.html#server -- Jeffrey Barish ___ pygtk

[pygtk] PyGTK documentation

2011-02-28 Thread Jeffrey Barish
need to install it to view the documentation? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] PyGTK documentation

2011-02-28 Thread Jeffrey Barish
Antoine Martin wrote: On 02/28/2011 09:36 PM, Adam Tauno Williams wrote: On Mon, 2011-02-28 at 15:51 -0700, Jeffrey Barish wrote: I am accustomed to accessing the documentation for PyGTK at http://www.pygtk.org/docs/pygtk/index.html It works for me. Must have been fixed by someone because

[pygtk] Custom theme

2010-06-25 Thread Jeffrey Barish
the root for my application. I call gtk.rc_parse('relative path to gtkrc') before doing anything else in my main program. What I get is that a few of the widgets have the correct style, but most have the default style for the desktop. Any idea what I'm doing wrong? -- Jeffrey Barish

Re: [pygtk] sharing data between windows

2009-09-14 Thread Jeffrey Barish
. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Gtkmozembed

2009-09-09 Thread Jeffrey Barish
Jeffrey Barish wrote: John Stowers wrote: I would also recommend moving to PyWebitGtk asap. GtkMozembed is a train wreck. Can you say more about what's wrong with GtkMozembed? Also, can you direct me to documentation for PyWebkitGtk? Aside from the lack of on-line documentation, I also

Re: [pygtk] Gtkmozembed

2009-09-03 Thread Jeffrey Barish
Jeffrey Barish wrote: Does anyone know why this test program works with one string but not the other? Using the load_url method works in both cases. For the benefit of posterity, the problem is that gtkmozembed cannot swallow boluses of data larger than some amount. If you feed the html

Re: [pygtk] Gtkmozembed

2009-09-03 Thread Jeffrey Barish
John Stowers wrote: I would also recommend moving to PyWebitGtk asap. GtkMozembed is a train wreck. Can you say more about what's wrong with GtkMozembed? Also, can you direct me to documentation for PyWebkitGtk? -- Jeffrey Barish ___ pygtk

[pygtk] Gtkmozembed

2009-09-02 Thread Jeffrey Barish
): gtk.main() app = MozembedTest() app.run() -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] call set_label() periodically

2009-08-25 Thread Jeffrey Barish
data. But nothing happens... After initializing the thread, the widget's label doesn't change no more. Any suggestions where the failure could be? Use gobject.timeout_add instead of multithreading. -- Jeffrey Barish ___ pygtk mailing list

Re: [pygtk] TreeStore rows

2009-07-30 Thread Jeffrey Barish
check out the PyGTK Tutorial: http://www.pygtk.org/pygtk2tutorial/sec-TreeModelInterface.html#sec- PythonProtocolSupport -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] PyGObject documentation

2009-06-21 Thread Jeffrey Barish
The PyGObject documentation at http://www.pygtk.org/docs/pygobject/gobject-functions.html seems to have shed about half its methods recently. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] GObject in thread

2009-06-19 Thread Jeffrey Barish
Simple: gobject.threads_init() -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] GObject in thread

2009-06-18 Thread Jeffrey Barish
of the loop's gobject.MainContext, it will process events from the loop, otherwise it will simply wait. Since I create the MainLoop right there, the run is called for the thread of the loop's MainContext, isn't it? On the other hand, simply waiting is what the code seems to be doing. -- Jeffrey

Re: [pygtk] GTK_IS_WIDGET on subclass of a widget fails

2009-05-21 Thread Jeffrey Barish
) -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] ImageMenuItem with disappearing image

2009-03-30 Thread Jeffrey Barish
of gtk.Container without success. The only technique I have found that works is to set the image to None to make it disappear and then recreate it to make it reappear. Surely there is a better way. Suggestions? -- Jeffrey Barish ___ pygtk mailing list pygtk

Re: [pygtk] ImageMenuItem with disappearing image

2009-03-30 Thread Jeffrey Barish
Jeffrey Barish wrote: I have an ImageMenuItem with check mark (gtk.STOCK_APPLY) as the image. I want the visibility of the image to toggle everytime I select the item. I am doing that now by controlling the visibility property of the image (menuitem.props.image.props.visible

[pygtk] GTK warning

2009-02-22 Thread Jeffrey Barish
this way. Does anyone have any tips on how to debug a GTK warning? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] GTK warning

2009-02-22 Thread Jeffrey Barish
On Sunday 22 February 2009 10:51:02 Gian Mario Tagliaretti wrote: On Sun, Feb 22, 2009 at 6:09 PM, Jeffrey Barish jeff_bar...@earthlink.net wrote: I am getting a GTK warning that looks like this: /myprog.py:118: Warning: g_object_unref: assertion `object-ref_count 0' failed self

Re: [pygtk] Treeview/ListStore and row_activated()

2008-09-27 Thread Jeffrey Barish
changed with one click? Cheers You want the TreeSelection for the TreeView (get_selection on the TreeView). Then catch the 'changed' signal on the TreeSelection. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

[pygtk] No default icon in Treeview DnD using drag_begin

2008-09-26 Thread Jeffrey Barish
In the attached program, I get the default icon when I use enable_model_drag_source to enable the drag (set MANUAL to False). When I use drag_begin (set MANUAL to True), the icon is wrong. I need to use drag_begin so that I can disallow the drag under certain conditions. Thoughts? -- Jeffrey

[pygtk] Re: How do I get the previous gtk.TreeIter in a TreeModel?

2008-07-09 Thread Jeffrey Barish
for rearranging rows rather than move buttons. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: How do I get the previous gtk.TreeIter in a TreeModel?

2008-07-09 Thread Jeffrey Barish
In fact, there's a FAQ on the subject: http://faq.pygtk.org/index.py?req=showfile=faq13.030.htp -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq

[pygtk] Re: TreeView reorderable

2008-07-09 Thread Jeffrey Barish
( [('invalid-position', 0, -1)], gtk.gdk.ACTION_DEFAULT) else: {enable model drag dest with valid target} -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

[pygtk] Re: A Multilevel Liststore

2008-07-09 Thread Jeffrey Barish
Parent 2 Child 1 Child 2 ... I know the code if it was just one parent with multiple children, but not when those children are the parents of others. Use a TreeStore instead of a ListStore. -- Jeffrey Barish ___ pygtk mailing list pygtk

[pygtk] Re: extending gtk.ListStore

2008-07-03 Thread Jeffrey Barish
=faq13.029.htp -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: LCD-style display widget

2008-06-16 Thread Jeffrey Barish
. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] gtk.gdk.DragContext.get_source_widget missing on Windows XP

2008-05-09 Thread Jeffrey Barish
gtk.gdk.DragContext.get_source_widget is missing on Windows XP. Are we supposed to use something else or is this a bug? pygtk version 2.12.1. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] Re: gtk.gdk.DragContext.get_source_widget missing on Windows XP

2008-05-09 Thread Jeffrey Barish
Jeffrey Barish wrote: Jeffrey Barish wrote: gtk.gdk.DragContext.get_source_widget is missing on Windows XP. Are we supposed to use something else or is this a bug? pygtk version 2.12.1. Version 2.10.6 has it. 2.12.1-1 has it. 2.12.1-2 does not have it. However, 2.12.1-1 doesn't have

[pygtk] Entry with clear button

2008-04-22 Thread Jeffrey Barish
The Tracker Search Tool in Ubuntu has an entry with a broom in it. Clicking the broom, clears the entry. Anyone know how to code that combination? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo

[pygtk] Problem selecting rows in TreeView

2008-03-23 Thread Jeffrey Barish
Can someone please explain why it is not possible to select the first child row in the attached program, although there is no problem selecting the other child rows. -- Jeffrey Barish # This test selects particular rows identified by looking at their row.path. # The select_path statement does

[pygtk] Re: Problem selecting rows in TreeView

2008-03-23 Thread Jeffrey Barish
Jeffrey Barish wrote: Can someone please explain why it is not possible to select the first child row in the attached program, although there is no problem selecting the other child rows. Never mind. The problem is that I have to expand the parent ((8,)) before selecting the child

[pygtk] Re: Changing a style property of TreeView

2008-03-23 Thread Jeffrey Barish
Here's a program that attempts to change the value of the indent-expanders style property using the procedure described in FAQ 4.18. The value of the property is unchanged. Can anyone explain why? -- Jeffrey Barish # Change the treeview style. import gtk rc_string = style treeview-style

[pygtk] Re: Changing a style property of TreeView

2008-03-21 Thread Jeffrey Barish
according to an unchanged Settings object to do anything. I tried putting the style definition in a file which I parse using gtk.rc_parse early in the program startup. Still nothing. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http

[pygtk] Changing a style property of TreeView

2008-03-18 Thread Jeffrey Barish
? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: help with two main windows in pygtk

2008-02-26 Thread Jeffrey Barish
. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Problem with simple custom widget

2008-02-17 Thread Jeffrey Barish
() gtk.main() -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Problem with simple custom widget

2008-02-16 Thread Jeffrey Barish
Jeffrey Barish wrote: If I do give up, I wonder what is the right approach.  Should I be subclassing a container?  Can I subclass a Bin, have the subclass put an HBox in itself, and put the Label and Entry in the HBox?  Or perhaps I should subclass HBox and have the subclass put the Label

Re: [pygtk] Problem with simple custom widget

2008-02-15 Thread Jeffrey Barish
On Friday 15 February 2008 02:44:26 Johan Dahlin wrote: Jeffrey Barish wrote: As an exercise in preparation for bigger things, I am trying to create a custom widget that is a gtk.Entry with an added label. I borrowed liberally from examples, but I am not aware of any examples that do quite

[pygtk] Problem with simple custom widget

2008-02-14 Thread Jeffrey Barish
is that the entry does not resize when I resize the window. Any suggestions would be greatly appreciated. I'm hoping that creating custom widgets gets easier after the first one. -- Jeffrey Barish import gtk import pygtk import gobject class LabelEntry(gtk.Entry): __gtype_name__ = 'LabelEntry

[pygtk] Editable text fields in TreeView with defined width

2008-02-09 Thread Jeffrey Barish
of a TreeView. Assuming that each row is a text label and an entry, would it be difficult to create such a renderer? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] Re: ComboBox with pull-right submenus

2007-12-06 Thread Jeffrey Barish
Jeffrey Barish wrote: Does anyone know the magic for creating a ComboBox whose popup menu has pull-right submenus? The magic is to create the ComboBox with an explicit TreeStore (not using the combo_box_new_text convenience function). Then you can use the append method of the TreeStore to add

[pygtk] ComboBox with pull-right submenus

2007-12-05 Thread Jeffrey Barish
Does anyone know the magic for creating a ComboBox whose popup menu has pull-right submenus? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: pygtk: Frameworks (e.g. kiwi)

2007-12-03 Thread Jeffrey Barish
Kiwi. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Setting treeview column to fill available space

2007-11-12 Thread Jeffrey Barish
of the last column, not its actual width. This behavior seems like a bug to me. I would also like to note that the method set_fixed_width and the sizing type TREE_VIEW_COLUMN_FIXED are named misleadingly as the width can, in fact, be changed. -- Jeffrey Barish colwidth.py Description: application/python

[pygtk] Re: Manual drag and drop

2007-10-31 Thread Jeffrey Barish
(set MANUAL to False). When I set MANUAL to True, it is no longer possible to drag a row to a new location (it is not possible to release the drag). Any help appreciated. -- Jeffrey Barish # DND works when I allow GTK to initiate it automatically, but not when I # initiate it manually. Set

[pygtk] Re: Manual drag and drop

2007-10-26 Thread Jeffrey Barish
Jeffrey Barish wrote: Doesn't the appearance of that line indicate that there are valid drop locations as specified by the enable_model_drag_dest call? I changed the target in the enable_model_drag_dest() call to something that was clearly wrong and found that I no longer get the lines

[pygtk] Re: Manual drag and drop

2007-10-25 Thread Jeffrey Barish
it is as if I didn't release the mouse button. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Setting a custom pitmap on a stock icon

2007-09-07 Thread Jeffrey Barish
of the set_size call). Any idea what I am doing wrong? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Re: ANNOUNCE: pygtkmvc-1.0.1 has been released

2007-05-23 Thread Jeffrey Barish
Thomas Guettler wrote: Am Mittwoch, 23. Mai 2007 03:14 schrieb Jeffrey Barish: It is unconventional, no doubt, to respond to an announcement, but I wanted to share some comments about my experience with pygtkmvc.  I have been using the package for only a few weeks, but I quickly became a fan

[pygtk] Re: ANNOUNCE: pygtkmvc-1.0.1 has been released

2007-05-22 Thread Jeffrey Barish
that things happen naturally yet without mystery. My code is better structured, clearer, and easier to develop than it has been on previous projects. If you haven't looked at this package, you owe it to yourself to do so. -- Jeffrey Barish ___ pygtk

[pygtk] Two columns in ComboBox with add_attribute

2007-05-09 Thread Jeffrey Barish
to display the first item as soon as I create the ComboBox. What is the easiest way to do this? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Two columns in ComboBox with add_attribute

2007-05-09 Thread Jeffrey Barish
Jeffrey Barish wrote: Also, I want the box to display the first item as soon as I create the ComboBox.  What is the easiest way to do this? I solved this one. The child of the combo is a CellView, for which there is a set_displayed_row method. cellview = combo.get_child

[pygtk] Re: Two columns in ComboBox with add_attribute

2007-05-09 Thread Jeffrey Barish
Jeffrey Barish wrote: Jeffrey Barish wrote: Also, I want the box to display the first item as soon as I create the ComboBox.  What is the easiest way to do this? I solved this one.  The child of the combo is a CellView, for which there is a set_displayed_row method. cellview

[pygtk] No label wanted for button with stock item

2007-04-17 Thread Jeffrey Barish
Is there an easy way to turn off the label of a button that uses a stock item? How about a hard way? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br

[pygtk] Re: widget_push_composite_child

2007-03-13 Thread Jeffrey Barish
Jeffrey Barish wrote: I understand that I can add composite children to a widget by creating them between widget_push_composite_child and widget_pop_composite_child calls. gtk.widget_push_composite_child() widget1 = gtk.Widget1() widget2 = gtk.Widget2() gtk.widget_pop_composite_child

[pygtk] widget_push_composite_child

2007-03-12 Thread Jeffrey Barish
by composite children. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Re: Cannot subclass gtk.Widget

2007-03-10 Thread Jeffrey Barish
or not gobject.type_register is present. What are the ramifications of omitting this call? -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Re: Re: Cannot subclass gtk.Widget

2007-03-09 Thread Jeffrey Barish
a size_request call, for example, it calls do_size_request on its children. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Cannot subclass gtk.Widget

2007-03-08 Thread Jeffrey Barish
, but I am running 2.10.3 of PyGTK and 2.10.6 of libgtk, which would seem to be plenty new enough. I also cannot subclass Container or Box, but HBox works. -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo

[pygtk] Re: Cannot subclass gtk.Widget

2007-03-08 Thread Jeffrey Barish
? I don't see documentation for them there. I tried calling do_realize and do_expose_event on the button, but those calls fail (although the methods apparently exist). -- Jeffrey Barish ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

[pygtk] Re: Cannot subclass gtk.Widget

2007-03-08 Thread Jeffrey Barish
Jeffrey Barish wrote: I still don't understand what to do if my widget is composed of other widgets (rather than Cairo drawing and text). I think the answer is that in PyGTK we don't subclass except when we need to do some drawing, as in the example. Otherwise, we just create a class

[pygtk] Re: Apportioning space when resizing a box

2007-03-05 Thread Jeffrey Barish
be generally useful? If I (or someone) were to convert the suggestion from John Dennis into a general-purpose widget, would there be a place to send it so that it would be available to other programmers? -- Jeffrey Barish ___ pygtk mailing list pygtk

[pygtk] Apportioning space when resizing a box

2007-02-28 Thread Jeffrey Barish
, is there a concept of a spacer? You might have two widgets that you want spaced uniformly on a line. Specifying spacer | widget1 | spacer | widget2 | spacer and turning fill on for the spacers but not for the widgets would get the job done. Is there another way? -- Jeffrey Barish