:
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
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
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/
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
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
.
--
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/
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
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
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
):
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/
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
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
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
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/
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
)
--
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/
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
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
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/
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
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
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
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/
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
(
[('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
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
=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/
.
--
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/
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
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
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
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
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
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
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
?
--
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/
.
--
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/
()
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/
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
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
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
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
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
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/
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/
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
(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
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
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/
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/
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
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
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/
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
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
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
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
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/
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/
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/
, 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
?
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
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
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
, 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
65 matches
Mail list logo