Re: [pygtk] python-gtk3 on windows, any progress?

2014-01-03 Thread Timo
dated frequently. I have no personal experiences with it though. Timo [1] https://sourceforge.net/projects/pygobjectwin32/files ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygt

Re: [pygtk] pygtk tree view expanders custom color

2013-09-09 Thread Timo
Op 09-09-13 13:36, Giuseppe Penone schreef: Hello Timo, thank you very much for the reply, unfortunately I cannot upgrade to GTK3 because my app (http://www.giuspen.com/cherrytree/) has to fully work on microsoft windows and I see that pyGI or whatever is the name of python-GTK3 still doesn&#

Re: [pygtk] pygtk tree view expanders custom color

2013-09-09 Thread Timo
in your code: treeview.set_name("MyCustomView") Cheers, Timo Cheers, Giuseppe. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq

Re: [pygtk] [GTK3] get background color

2013-07-31 Thread Timo
3.8.3 Any idea? Did you wait untill the treeview is realized? treeview.connect('realize', get_bg_color) def get_bg_color(widget): style = widget.get_style_context() bgcolor = style.get_background_color(Gtk.StateType.NORMAL) print(bgc

Re: [pygtk] Question concerning to detection of locale direction

2013-06-27 Thread Timo
>>> gtk.widget_get_default_direction() == gtk.TEXT_DIR_LTR True Timo Request is: Recognize direction of currently used GUI. (RTL or LTR) On Mon, 15 Apr 2013 11:10:14 +0200 Timo wrote: Op 15-04-13 10:38, Genghis Khan schreef: Hello, How is it possible to detect alignment of currently in-use

Re: [pygtk] Pygtk 3 divide a program into two or more files

2013-06-10 Thread Timo
odule? If not, you'll have to be more clear on what you're trying. Timo best regards Mariano ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http:

Re: [pygtk] Non-modal dialog?

2013-05-21 Thread Timo
e = dialog.run() to get the response id, this no longer works with the show() method. You'll have to connect to the dialog "response" event. Timo Cheers. On May 20, 2013, at 2:51 PM, Skip Montanaro wrote: If I want a dialog to be non-modal, I can't use its run() meth

Re: [pygtk] Handler for showing window

2013-05-14 Thread Timo
probable want the realize signal. window.connect("realize", on_realize) This will be called when the window is fully shown. This can also be used for seperate widgets as it's a GtkWidget signal. Timo ___ pygtk mailing list pygtk@

Re: [pygtk] How to declare a signal handler getting passed a GdkEventButton as argument

2013-04-21 Thread Timo
at the beginning because Gdk.Event didn't work anymore, but passing it as a Python object seems to do the trick. Timo Thanks Christian ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.a

Re: [pygtk] Question concerning to detection of locale direction

2013-04-15 Thread Timo
;>> from gi.repository import Gtk >>> Gtk.Widget.get_default_direction() == Gtk.TextDirection.LTR True >>> Gtk.Widget.set_default_direction(Gtk.TextDirection.RTL) >>> button = Gtk.Button("Just for testing") >>> button.get_direction() == Gtk.TextDirection.RTL True Ti

Re: [pygtk] "Overlay" in GTK2-bindings?

2013-04-09 Thread Timo
Op 09-04-13 11:28, Ajay Garg schreef: Hi all. Is there an "overlay" widget available in GTK2-bindings? I can see that there is a "gi.repository.gtk.Overlay", but cannot seem to find any corresponding GTK2-correspondent. Because GtkOverlay is new since GTK 3.2. Timo

Re: [pygtk] installing pygtk

2013-04-02 Thread Timo
d the development files of those packages (most likely ending in -dev). On Ubuntu you can run the following command which will pull in all build dependencies: sudo apt-get build-dep python-gtk2 Timo Any help would be appreciated. Thanks, Mike B. ___

Re: [pygtk] Change cursor on a single widget

2013-03-12 Thread Timo
Op 11-03-13 15:49, Neil Muller schreef: On 11 March 2013 00:37, Timo wrote: I seem to be unable to change the cursor on one widget only, not an entire window. How is this done? Below is a testscript which I thought was the right way. Run normal to use PyGI, run with -p argument for PyGTK

[pygtk] Change cursor on a single widget

2013-03-10 Thread Timo
I seem to be unable to change the cursor on one widget only, not an entire window. How is this done? Below is a testscript which I thought was the right way. Run normal to use PyGI, run with -p argument for PyGTK. Both act the same. # Start of code def run_pygi(): from gi.repository import Gt

Re: [pygtk] Gettext & Gtk

2013-01-31 Thread Timo
ut it didn't change :( Maybe you should show us a minimal working exaple. The above code snippet isn't even correct Python. :path =>? What is choice? What is GetText? Timo ___ pygtk mailing list pygtk@daa.com.au http:

Re: [pygtk] Microsoft Windows pygtk: gtk.FileChooserDialog returns weird characters when opening cyrillic filepath

2013-01-24 Thread Timo
(MyFileChooserButton, self).__init__("") You can do fun things this way, but the most important thing is the unicode conversion ofcourse. Timo Does anybody have a clue of the reason? PS I have all my files starting with *# -*- coding: UTF-8 -*-* Regards

Re: [pygtk] Query regarding "clickable" property for a Gtk.TreeViewColumn

2012-12-11 Thread Timo
ng effect. Can you provide a minimal, standalone code snippet? That would make it a bit easier for us to see what is going on. Timo ___ 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] Using PyGI and cairo & rsvg - loading a SVG file into an ImageSurface

2012-11-30 Thread Timo
ere's a package called gir1.2-rsvg-2.0 You should have a look at that. Timo Thanks Christian ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

Re: [pygtk] Query regarding "clickable" property for a Gtk.TreeViewColumn

2012-11-30 Thread Timo
er, once the view is rendered, and if after that "a.props.clickable = False" is done, the tree-view-column still remains clickable (and the text of the cell-renderer editable). Any ideas for this discrepancy? It has been some time, but I think you need a call to gtk.TreeView.set_h

Re: [pygtk] How to prevent user-interaction with the UI?

2012-08-15 Thread Timo
Op 14-08-12 20:35, Ajay Garg schreef: Timo, I wish to freeze the UI, while an operation is in progress. Maybe you need a modal dialog with a progressbar? That way the user sees progress happening and the main window isn't active. Anyways, I am facing another problem. Now, while the

Re: [pygtk] How to prevent user-interaction with the UI?

2012-08-14 Thread Timo
Op 14-08-12 12:21, Ajay Garg schreef: Thanks Timo. It worked !!! Just one last query :: When I desensitize the root window, the entire window goes "grayed". Is there a way, so that we can prevent the graying out? Ideally, I would like no colour change. Maybe it's possib

Re: [pygtk] How to prevent user-interaction with the UI?

2012-08-14 Thread Timo
individual widgets. Cheers, Timo Will be grateful for a reply. Thanks and Regards, Ajay ___ 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] Porting to gobject and pygi questions?

2012-05-09 Thread Timo
ple folder in the PyGObject package: http://git.gnome.org/browse/pygobject/tree/examples/cairo-demo.py It basicly comes down to this: def lets_draw(da, ctx): print da, ctx da = Gtk.DrawingArea() da.connect('draw', lets_draw) Cheers, Timo - My App uses gtk DrawingArea fa

Re: [pygtk] PyGTK Windows debugging.

2012-05-07 Thread Timo
ry and run with "python myapp.py". Timo Thanks for any ideas - Will ___ 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] gobject.connect

2012-04-23 Thread Timo
t is (and this applies to all Python functions in the future when you encounter this exception): def handler(*args): print args And see for yourself which arguments are passed. If the error is in the data.connect() call, try with only one argument and see if it passes, then two, then ... With

Re: [pygtk] signal for detecting a losing focus in an entry

2012-04-05 Thread Timo
7;activate', self.update) Check the focus, focus-in-event and focus-out-event. http://developer.gnome.org/pygtk/stable/class-gtkwidget.html#signal-gtkwidget--focus Timo thanks, joe ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] key value file parser with pygtk

2012-03-28 Thread Timo
t the ConfigParser [1] module which seems to do the same thing. Timo [1] http://docs.python.org/library/configparser.html#module-ConfigParser Best regards, Giuseppe. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Rea

Re: [pygtk] Painting in text view margin and the "draw" signal

2012-02-26 Thread Timo
"draw" signal instead of "expose-event", but my callback for the "draw" signal doesn't even seem to get called. Callback works ok here, well, after removing everything after the print function. Ubuntu 11.10 with GTK 3.2.0 and PyGObject 3.0.0. Cheers, Timo Is there s

Re: [pygtk] PyGTK + OpenCV

2012-02-22 Thread Timo
k it's also in the FAQ, but you shouldn't do any GUI stuff in a thread, and if you do so, call it with gobject.idle_add(). Cheers, Timo *Joseph Soares Alcântara* Engenharia da Computação - 8º semestre Universid

Re: [pygtk] pygobject documentation ?

2012-01-12 Thread Timo
Op 11-01-12 21:44, Jérôme schreef: Tue, 10 Jan 2012 18:54:07 +0100 Timo a écrit: You will notice a pattern: take the enumeration name, split the Gtk part and rest with a dot, then leave out GTK_*_ part from the types and append them to the previously splitted name. This approach always worked

Re: [pygtk] pygobject documentation ?

2012-01-10 Thread Timo
est with a dot, then leave out GTK_*_ part from the types and append them to the previously splitted name. This approach always worked for me till now. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygt

Re: [pygtk] CSS THEMES WITH PYGTK

2012-01-06 Thread Timo
Op 05-01-12 21:25, anderson rodrigo schreef: HELP-ME , wath use css themes of gtk 3 in pygtk ? existing css_provider, wath code? GTK2 and GTK3 use different styling methods, so they aren't interchangable. Cheers, Timo IMPORTANT, I no speaking english, PORTUGUES OR SP

Re: [pygtk] How to get help of PyGTK methods?

2011-12-28 Thread Timo
Op 27-12-11 22:03, Milad khajavi schreef: Hi Mohsen, It doesn't work for me: >>> print gtk.Label.get.__doc__ None Any idea? Maybe it hasn't a docstring? Have a look at the reference manual for documentation: http://developer.gnome.org/pygtk/stable/ Cheers, Timo PS: I did

[pygtk] PyGTK fieldentry implementation

2011-12-26 Thread Timo
Does anyone know of a PyGTK fieldentry implementation? I found one written in C++ [1], but would like to have one in Python. Cheers, Timo [1] http://view.sourceforge.net/classes.php ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

Re: [pygtk] Embed VLC to PyGTK

2011-12-25 Thread Timo
creen. Anyone encountered this problem? Help solve the problem, please. Some minimal example which covers the problem should be nice, cause most users won't know what you are talking about probably. Embedding a Qt app isn't something what alot of us do.

Re: [pygtk] PYGTK LINUX UBUNTU

2011-12-23 Thread Timo
. Now in English and someone would maybe be able to help you. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] Capturing all keyboard input

2011-12-02 Thread Timo
ly program if it matters. Timo ___ 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 Windows gtk.gdk._2BUTTON_PRESS

2011-11-30 Thread Timo
s always: No matter if I double click or not... or if I do it faster :) Any idea on how to fix this to get double click working on Windows? Can you post your GTK and PyGTK version, maybe Windows version and even a small (as possible) test application? Cheers,

Re: [pygtk] All-in-one installer

2011-11-15 Thread Timo
#x27;t wait to update from 2.22 when I read all this. Where do you announce when a new bundle (not AIO) is uploaded? Cheers, Timo When that's done, I'll build a new aio installer revision. This work should be completed in the coming weeks (depends a bit on how fast work progresses on GTK+ 3

Re: [pygtk] Draw Text in Fullscreen

2011-11-09 Thread Timo
: window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white')) window.fullscreen() label.set_ellipsize(pango.ELLIPSIZE_END) Cheers, Timo http://developer.gnome.org/pygtk/stable/class-gtkwindow.html#method-gtkwindow--fullscreen http://faq.pygtk.org/index.py?file=faq10.018.htp&

Re: [pygtk] gtk.builder and gtk.glade.XML

2011-10-14 Thread Timo
make any difference in accessing libraries GtkBuilder has replaced gtk.glade. So you should always use the first method. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

Re: [pygtk] progressreport with playbin and pygtk

2011-10-08 Thread Timo
On 08-10-11 17:29, laguillaumie sylvain wrote: hi Hello, you should probably ask your question on the gstreamer list. Cheers, Timo is it possible to use the progressreport without building my own pipeline but with playbin2 and pygtk ? second thing, when we try to do this for exemple (for

Re: [pygtk] CellRendererProgress fill fraction

2011-10-03 Thread Timo
: |##--| Looking at your example, I suspect you want a pulsing progressbar, one that moves from the left to right and back. Check the pulse() method of the gtk.ProgressBar in the reference and tutorial for info and examples. Cheers, Timo Thanks for your help

Re: [pygtk] expose event for Gtk.DrawingArea?

2011-10-01 Thread Timo
s also a chapter on migrating from GTK2 to GTK3 and lots of other usefull documents. Cheers, Timo [1] http://developer.gnome.org/gtk3/stable/ Greetings, Iñigo Serna ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/

Re: [pygtk] (no subject)

2011-09-25 Thread Timo
"selection-box-color". I checked that property earlier. It said read-only. How do i change its value ? This message should help: http://www.daa.com.au/pipermail/pygtk/2011-March/019562.html Maybe you could manage some things using custom rc styles if the above doesn't work

Re: [pygtk] Activate row in TreeView with single click

2011-09-13 Thread Timo
above callback, with: treeview.emit('row-activated') But you should probably have enough with the selection changed signal. Cheers, Timo [1] http://developer.gnome.org/pygtk/stable/class-gtktreeselection.html Thanks! ___ pygtk mailing list pygtk@da

Re: [pygtk] which widget?

2011-08-03 Thread Timo
a look at gtksourceview. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ ___ pygtk mailing list pygtk

Re: [pygtk] py2exe only support python2.5

2011-07-26 Thread Timo
o 2.7: http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygt

Re: [pygtk] pygtk2 to pygobject/introspection

2011-06-30 Thread Timo
On 30-06-11 14:12, Dieter Verfaillie wrote: In short, don't be afraid to get your hands dirty :) In response to this, I'm actually willing to help out, but... What skills are needed? Should I have some specific knowledge? And if I can help, where should I start? Cheers, Timo m

Re: [pygtk] gir1.2-nautilus-2.0

2011-06-26 Thread Timo
nt me to a simple demo to understand how this binding work? (where to place the extension files and so on...) Your best bet will be the C manual for the Nautilus bindings. Well, I did/do so for all the bindings I use that use Gobject Introspection. Cheers, Tim

Re: [pygtk] strange warnings in gtk3

2011-06-26 Thread Timo
ticed that they only appear in a program with menus (a menubar or popup menu), as soon as you remove them, the messages disappear too. Cheers, Timo Regards. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] hide gtk warning

2011-06-01 Thread Timo
ard Python "warnings" module. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/ ___ pygtk mailing list p

Re: [pygtk] gio.Mount.get_default_location()

2011-06-01 Thread Timo
On 31-05-11 20:38, Leon Bogaert wrote: Hi Avi, Good guess :) I'm running Ubuntu 11.04 Weird, I'm running 11.04 as well, and I have no problems. No idea why it won't work for you though. Cheers, Timo leon@polly:~$ dpkg -l | grep gir | grep glib ii

Re: [pygtk] Translating Treeview column headers with gettext + gtkBuilder

2011-05-19 Thread Timo
On 19-05-11 16:06, Andreas Heinlein wrote: Am 16.05.2011 18:18, schrieb Timo: On 16-05-11 16:09, Andreas Heinlein wrote: Hello, I have a pyGtk App which uses gtkBuilder for its interface and gettext (Python Module) for translation. Translating works *except* for column headers on several

Re: [pygtk] Translating Treeview column headers with gettext + gtkBuilder

2011-05-16 Thread Timo
: ... Key ID This property needs a translatable="yes" for the string to be translated. Cheers, Timo ... Here "Key ID"

Re: [pygtk] Grid of Clickable Images

2011-04-30 Thread Timo
he FAQ [5] for an example how. 3) I want to catch and respond to single clicks on images. I guess this can be achieved by capturing the "selection-changed" event. That seems like the best choice to me too. Cheers, Timo [1] http://developer.gnome.org/pygtk/stable/class-gtkiconview.

Re: [pygtk] What happened to PyGTK website?

2011-03-07 Thread Timo
On 28-02-11 16:07, Karthikeyan wrote: What happened to PyGTK website : http://pygtk.org ? When I open it, I see a Drupal page. Works fine here. Try clearing your cache, cookies etc. Cheers, Timo ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] floating point precision

2011-03-07 Thread Timo
23 or 22.0 ? I would like to know the same. Here is a simple testcase which demonstrates the problem. Cheers, Timo import gtk MYFLOAT = 12.3456 def main(): win = gtk.Window() win.resize(300, 200) win.connect('delete-event', gtk.main_quit) liststore = gtk.Li

Re: [pygtk] Left justifying label text

2011-03-06 Thread Timo
ur call to set_justify() does nothing, because you call the default value. * It wouldn't work anyway because you only have one line. * The solution is to use set_alignment() So replace label.set_justify(gtk.JUSTIFY_LEFT) with label.set_alignment(0, .5) and it should work

Re: [pygtk] Using draw_rectangle with a fill colour

2011-03-01 Thread Timo
dow gc = drawable.new_gc() gc.foreground = gtk.gdk.color_parse("orange") Try the following line instead: gc.set_foreground(self.get_colormap().alloc_color("#FF8000")) Cheers, Timo gc.fill = gtk.gdk.SOLID drawable.draw_rectangle(gc, True, x=100, y=

Re: [pygtk] PyGTK documentation

2011-03-01 Thread Timo
don't know what Drupal is. Do I really need to install it to view the documentation? You could always try this page instead, it's the one I use: http://library.gnome.org/devel/pygtk/stable/ Cheers, Timo ___ pygtk mailing list pygtk@daa.c

Re: [pygtk] Need to control cursor position in selected text of gtk.Entry

2011-02-26 Thread Timo
method [0] which might be of use. I never used it before though. Cheers, Timo [0] http://library.gnome.org/devel/pygtk/stable/class-gtkentry.html#method-gtkentry--set-cursor-hadjustment Thanks, Gary ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] How to make a transform the window type of glade object into a WINDOW_CHILD

2011-02-25 Thread Timo
parent the child of the window and add this child to the notebook? So if you have a window with a vbox for example which holds the editor widgets, do this in your code: vbox = builder.get_object('vboxeditor') vbox.unparent() notebook.append_page

Re: [pygtk] Filtered Sortable

2011-02-18 Thread Timo
if data1 == data2: data1 = model.get_value(iter1, 2) data2 = model.get_value(iter2, 2) return cmp(data1, data2) This will sort column 2 if the values in column 3 are equal. The key part here is the built-in cmp() function that will return -1, 0 or 1, which is what we need.

Re: [pygtk] Glade 3 / Builder / Combobox

2011-02-15 Thread Timo
On 26-01-11 12:20, Adam Tauno Williams wrote: On Wed, 2011-01-26 at 12:02 +0100, Timo wrote: On 26-01-11 03:56, Adam Tauno Williams wrote: Please forgive this question if the answer is obvious but I've searched and not had any luck. Also, having done this frequently in C#/.NET I could ju

Re: [pygtk] select multiple folders/ directories

2011-02-14 Thread Timo
On 13-01-11 02:12, Sujay wrote: Hi, Hello, you're probably on the wrong mailinglist. I'm not familiar with the widgets you descibe. Cheers, Timo I'm currently using tkFileDialog.askdirectory() to select a single directory. I would like to be able to select multi

Re: [pygtk] Debugging Verbosity?

2011-02-09 Thread Timo
ay to track down where these errors/warnings are actually coming from? Agreed that these aren't that useful, but they do give a hint on where to look. Check your code where you try to set a property with type str (gobject.TYPE_STRING) to an object

Re: [pygtk] Tweaking GTK InfoBar properties

2011-02-09 Thread Timo
Box and has no other widgets in it. You will have to add a gtk.Label yourself to the infobar. Cheers, Timo and I'm not crazy about hard-coding indices of undocumented components into my app). Is there are robust way to do this? — Jason ___ p

Re: [pygtk] Building multi-threaded UI in pygtk

2011-02-07 Thread Timo
#x27;ve created. Here is the link to the code https://gist.github.com/73a6d36061efa7265f93 I don't think anyone will go through 800 lines of code to see where it goes wrong. See section 20 of the FAQ [1] which has some very helpful tips on PyGTK and threading. Cheers, Timo [1] http://faq.py

Re: [pygtk] Default buttons in many notebook pages

2011-02-07 Thread Timo
other way. Any better idea is welcome. I would do something similar, because there can only be one default button for each window, this looks like a valid solution. Cheers, Timo Regards Udo Spallek www.tryton.org ___ pygtk mailing list pygtk@

Re: [pygtk] gtk runtime bundled with py2exe app

2011-02-01 Thread Timo
On 01-02-11 03:55, smo wrote: hi is it possible to bundle the gtk runtime in a py2exe script ? Yes, I do it for my program too! You should read the following page [1] or just use Google for some very useful blogposts. Cheers, Timo [1] http://www.py2exe.org/index.cgi/Py2exeAndPyGTK i don

Re: [pygtk] treestore problems

2011-01-31 Thread Timo
will return an iter of its own. model, rowiter = selection.get_selected() data = model.get_value(rowiter, 1) Cheers, Timo which I feel should print the for each selected row, but what actually comes out seems largely unrelated to what has been selected. So for instance, given a tree:

Re: [pygtk] Glade 3 / Builder / Combobox

2011-01-26 Thread Timo
rray for str, gint for int and gfloat for float. Cheers, Timo What I want is to simply create some combo boxes that contain a value& descripton, but only display the description, so I can retrieve the selected value. Does anyone have a current HOWTO / FAQ link addressing this iss

Re: [pygtk] how to add to a scrolledwindow?

2011-01-02 Thread Timo
ignal, not the gtk.Widget's button press event. So: b1.connect('clicked', addbutton) Cheers, Timo vbox.pack_start(b1) b2 = gtk.Button('bbb') vbox.pack_start(b2) window.show_all() gtk.main() I click 'aaa' but no 'extra' appe

Re: [pygtk] ComboBox Unresponsive with Custom CellRenderer

2010-12-23 Thread Timo
p. It will process any pending gtk events. while gtk.events_pending() gtk.main_iteration() Cheers, Timo I have implemented caching, so that after it loads the first time, it will load from a single image from memory or disk, but the first time it loads can take 2-4 seconds per cell.

Re: [pygtk] CheckBbox look of inconsistent state in late gtk releases

2010-12-02 Thread Timo
sign that I consider much more explicit. Is there a way to use that mark again in new checkbox? This is a theme issue. I use Ubuntu 10.10 with the Ambiance theme, and after switching to Clearlooks, I get the sign back in an inconsistent checkbutton. Cheers, Timo thanks sandro *:-) [1] http

[pygtk] UImanager menu and popup

2010-11-27 Thread Timo
Is it possible? Cheers, Timo ___ 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] Add tool tips to cells in a liststore.

2010-11-22 Thread Timo
() set_tooltip_cell() set_tooltip_row() http://library.gnome.org/devel/pygtk/stable/class-gtktreeview.html Cheers, Timo ___ 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] Deselecting the text from an Entry the first time it appears.

2010-11-21 Thread Timo
Cheers, Timo Any hint? Thanks! Here is my code: import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_title("Simple drawing") self.resize(230, 150) self.set_position(gtk.WIN_POS_CENTER) se

Re: [pygtk] catching all keyboard/mouse events

2010-11-20 Thread Timo
docs for info: http://library.gnome.org/devel/pygtk/stable/class-gdkwindow.html Maybe this post will help you a bit: http://www.mail-archive.com/pygtk@daa.com.au/msg19101.html Cheers, Timo I can't find what signals are valid for a gtk.gdk.Window. And even if I could, I still need it to wi

Re: [pygtk] Error installing some required pyGTK componants

2010-10-20 Thread Timo
laying with the bundle option. I had same errors (_gtk.pyd and _gobject.pyd) and after setting bundling off (option 3 I think), everything worked fine. Cheers, Timo I wonder if this could be related? (Things used to work fine with the old 2.12.9 Gtk+ installer from [3] with python 2.6.4 and pygo

[pygtk] PyGObject timeout_add error

2010-10-16 Thread Timo
on This running on Ubuntu 10.10 with Python 2.6.6 and PyGobject 2.21.5 Cheers, Timo ___ 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] Windows installer components

2010-09-25 Thread Timo
all-in-one :-( - not in the all-in-one bundles: - pixman, gettext-runtime, pkg-config, winiconv, proxy-libintl, GNU libiconv As far as I know, I always used the GTK bundle without optional packages. Cheers, TImo On 9/24/2010 11:14 PM, John Stowers wrote: So for each version of pyth

Re: [pygtk] /tmp/cc3Crwaa.s: Assembler messages:

2010-09-16 Thread Timo
On 15-09-10 21:42, vinay kapse wrote: hi, can anyone tell me why i am getting this error when in make pygtk-2.10.4 I'm no PyGTK developer, but why aren't you compiling the latest version instead of the old 2.10? Cheers, Timo [r...@localhost pygtk-2.10.4]# make make all-recurs

Re: [pygtk] Tooltips on MenuItem and ui_manager

2010-09-08 Thread Timo
On 08-09-10 15:39, Alessandro Dentella wrote: On Wed, Sep 08, 2010 at 12:12:06PM +0200, Timo wrote: On 08-09-10 09:51, Alessandro Dentella wrote: here is the code that shows what I mean. The action 'Test' has a tooltip in the ToolButton and not in the meny entry: thanks

Re: [pygtk] Tooltips on MenuItem and ui_manager

2010-09-08 Thread Timo
ou can set tooltips to the menuitems. See in-code for a working implementation. Note: this maybe can be easier, I just modified it from my code where I show a statusbar message when the mousepointer goes over the menuitems. Cheers, Timo import gtk

Re: [pygtk] Need ToolButton to only be sensitive when TreeView has a selection

2010-08-31 Thread Timo
ted() if tree_iter is None: self.apply_button.set_sensitive(False) else: self.apply_button.set_sensitive(True) Cheers, Timo Thanks guys! On Mon, Aug 30, 2010 at 5:33 PM, Robert Park wrote: Hi guys, another simple one today. I have a button that acts upon selected ite

Re: [pygtk] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Timo
aq.pygtk.org/index.py?req=show&file=faq13.006.htp Cheers, Timo ___ 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] funkiness with gtk constants and CellRendererPixbuf

2010-08-18 Thread Timo
ike: column.add_attribute(render_pixbuf, 'pixbuf', 0) # Last value is the number of the column Cheers, Timo BTW, the stock icon is gtk.STOCK_APPLY, if that helps any. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/list

Re: [pygtk] push huge array into liststore

2010-07-14 Thread Timo
1, gtk.SORT_ASCENDING) for d in data: liststore.insert(0, [d]) treeview.set_model(liststore) treeview.thaw_child_notify() The disconnection of the model and remove the sort function gave great speed performance. But using insert() instead of append() helped too. Che

Re: [pygtk] Add a new widget on idle

2010-06-28 Thread Timo
ee gtk.ButtonBox() to pack a row of buttons. Cheers, Timo [0] http://www.pygtk.org/docs/pygtk/index.html [1] http://www.pygtk.org/pygtk2tutorial/index.html > Regards > > This is the source code : > > #!/usr/bin/python > import gtk > > def visibility_handler(window): > v

Re: [pygtk] How to add extra Vbox fields

2010-06-20 Thread Timo
ll not have to create numerous textviews or add a VBox with lot's of rows in Glade. Cheers, Timo > > Lang Hurst wrote: > >> I hope that I'm asking this in the right place. >> >> I created a UI in glade. It has a couple of Vboxes for information. >> Th

Re: [pygtk] Drawing and signals

2010-06-09 Thread Timo
It is definatly possible with PyGTK. Use a gtk.Drawingarea to draw on using Cairo. But if you do not like to write this all by yourself, someone else has done a pretty good job already here: http://notmyname.github.com/pygtkChart/ Cheers, Timo > Thanks > Jeenu > ___

Re: [pygtk] How to show/hide gtk.Paned?

2010-06-05 Thread Timo
do? > I just tested it and it works with widget.hide() and vpaned.remove(child). So if you have a notebook in the vpaned, you can do: notebook.hide() or: vpaned.remove(notebook) Cheers, Timo > Thanks to whomever helps, > Smartboy > ___

Re: [pygtk] getting desktop path

2010-06-03 Thread Timo
systems have the xdg-utils installed though, so the following works: $ xdg-user-dir DESKTOP /home/timo/Bureaublad Cheers, Timo > > ___ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the

Re: [pygtk] Which is the active radiobutton?

2010-06-03 Thread Timo
cross: > > radio = [r for r in cbc['four'].get_group() if r.get_active()] > > which gets me the active button with print radio giving me: > > [] > > My question: how do i get the 'name' of the button which is active? > Every widget has the get_name() me

Re: [pygtk] little icon trouble

2010-06-03 Thread Timo
. Maybe these icons are in one of the latest PyGTK versions and the docs aren't updated yet. You could also look at other PyGTK mediaplayers sourcecode to see how they do it. Cheers, Timo > thanks > > --- > Pasquale Boemio > boemianraps...@gmail.com > pa.boe...@studenti.un

Re: [pygtk] ComboBoxEntry set_text

2010-06-02 Thread Timo
> Do I have access to the gtk.Entry directly? > Try this: comboboxentry.child.set_text('testing') Cheers, Timo ___ 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] Use which widget to display dictionary?

2010-05-25 Thread Timo
ce? > A gtk.Textview would be exactly what you need. You'll need a bit more code than with a gtk.Label, but not much. Cheers, Timo > Any ideas are welcome. > > Thanks a lot > Cornelius > > > > > ___ > pygtk ma

Re: [pygtk] Import problem for PyGtk on Windows

2010-05-20 Thread Timo
t; Have you read the section "PyGTK for Microsoft Windows" on http://www.pygtk.org/downloads.html ? Cheers, Timo > H:\>python > ActivePython 2.6.5.12 (ActiveState Software Inc.) based on > Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit > (Intel)]

  1   2   >