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

2014-01-13 Thread Giuseppe Penone
...@gmail.comwrote: Also see this for windows builds http://opensourcepack.blogspot.fr/2013/01/mypaint-and-pygi.html John On Fri, Jan 3, 2014 at 12:16 PM, Timo timomli...@gmail.com wrote: op 02-01-14 20:54, Giuseppe Penone schreef: Hi, is there any progress for an all-in-one installer

Re: [pygtk] pygtk tree view expanders custom color

2013-12-03 Thread Giuseppe Penone
: On Sun, 2013-09-08 at 21:27 +0200, Giuseppe Penone wrote: in my application users can control the foreground and background color of the treeview The problem is that the expanders arrows color does not change and so it happens that is not visible. Does anybody know if it is possible

Re: [pygtk] use gtk.FileChooser to check mime type

2013-09-27 Thread Giuseppe Penone
(filename) info = file_.query_info(standard::content-type) or equivalently info = file_.query_info(gio.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE) mimetype = info.get_content_type() Regards. On Wed, Sep 25, 2013 at 12:04 AM, Giuseppe Penone gius...@gmail.comwrote: Hi, I'm using

[pygtk] use gtk.FileChooser to check mime type

2013-09-26 Thread Giuseppe Penone
Hi, I'm using gtk.FileChooserDialog with a filter to display only text/plain files and this works fine: filter = gtk.FileFilter() filter.add_mime_type(text/plain) chooser.add_filter(filter) But if I need to check if a file is of this mime type, using python module mimetypes is not so good in

Re: [pygtk] pygtk tree view expanders custom color

2013-09-09 Thread Giuseppe Penone
people will not spend time to support cross-platform rather than just adding functionalities more and more people will leave it for Qt and python-Qt. Cheers, Giuseppe. On Mon, Sep 9, 2013 at 1:00 PM, Timo timomli...@gmail.com wrote: Op 08-09-13 21:27, Giuseppe Penone schreef: Hi, in my

Re: [pygtk] pygtk tree view expanders custom color

2013-09-09 Thread Giuseppe Penone
On Mon, Sep 9, 2013 at 7:30 PM, Timo timomli...@gmail.com wrote: For a Linux only project I'm using GTK3 and I really like it (like the CSS theming for example), but I would probably think twice again in the future when starting a new large project. Which is a real shame if you look at how

[pygtk] pygtk tree view expanders custom color

2013-09-08 Thread Giuseppe Penone
Hi, in my application users can control the foreground and background color of the treeview. The problem is that the expanders arrows color does not change and so it happens that is not visible. Does anybody know if it is possible to override the gtk theme in use about this? Cheers, Giuseppe.

Re: [pygtk] toolbutton desensitize

2013-01-28 Thread Giuseppe Penone
.set_sensitive(True) and .set_sensitive(False) On Mon, Jan 28, 2013 at 6:39 PM, tugba deniz deniz.tugb...@gmail.comwrote: Hi, how can i desensitize a toolButton? ___ pygtk mailing list pygtk@daa.com.au

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

2013-01-24 Thread Giuseppe Penone
12-20: character maps to undefined Premere un tasto per continuare . . . I really don't know what to do :( On Thu, Jan 24, 2013 at 12:38 PM, Timo timomli...@gmail.com wrote: Op 23-01-13 18:52, Giuseppe Penone schreef: Hi, while I have a file named *E:\SOFTWARE\Кириллица.ctb* on my pc

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

2013-01-24 Thread Giuseppe Penone
issues correctly. Cheers Christian On Thu, Jan 24, 2013 at 6:26 PM, Giuseppe Penone gius...@gmail.com wrote: I modified the rows: filepath = chooser.get_filename() chooser.destroy() return filepath to: filepath = chooser.get_filename

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

2013-01-23 Thread Giuseppe Penone
Hi, while I have a file named *E:\SOFTWARE\Кириллица.ctb* on my pc, selecting it with a gtk.FileChooserDialog and printing to terminal returns weird characters * E:\SOFTWARE\ÐsиÑ?иллиÑ┼а.ctb*. Does anybody have a clue of the reason? PS I have all my files starting with *# -*- coding: UTF-8

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

2013-01-23 Thread Giuseppe Penone
the right thing when converting the string to bytes to be processed by your console window. The console windows code page would be of interest too (run chcp). Christian On Wed, Jan 23, 2013 at 5:52 PM, Giuseppe Penone gius...@gmail.com wrote: Hi, while I have a file named E:\SOFTWARE

Re: [pygtk] Turning the PyGTK+ brand into something more than it currently is

2012-11-18 Thread Giuseppe Penone
Hi Simon, On Sat, Nov 17, 2012 at 1:26 PM, Giuseppe Penone gius...@gmail.com wrote: I read that there's no need of reference because gtk3 reference is enough, well I'm a gtk3 and gtkmm3 developer over a pygtk developer (my most used app is www.giuspen.com/cherrytree) but still I miss pygtk

Re: [pygtk] Turning the PyGTK+ brand into something more than it currently is

2012-11-17 Thread Giuseppe Penone
I totally agree with Jasper. New PyGobject is lame because misses its own reference and doesn't work on windows (well this is mainly a GTK3 issue...) I read that there's no need of reference because gtk3 reference is enough, well I'm a gtk3 and gtkmm3 developer over a pygtk developer (my most

[pygtk] porting from pygtk to pygi - weird problem with pixbufs

2012-07-18 Thread Giuseppe Penone
Hi, I'm co-author of the app x-tile (graphical windows tiling) which is currently in pygtk but is already fully ported to pygi (even if not public yet). The problem is that the pixbufs (windows icons) are rendered properly in pygtk but are not in pygi (the icons are sometimes partially rendered,

Re: [pygtk] pygi - gtk drawingarea doesn't work?

2012-07-16 Thread Giuseppe Penone
and there it works fine. can anybody help me to understand what package I'm missing? On Sat, Jul 14, 2012 at 7:20 PM, Giuseppe Penone gius...@gmail.com wrote: On my home laptop it also works fine (lubuntu 1204 64bit running but also gnome-shell installed). I did check only for *gir1.2-gtk-3.0

Re: [pygtk] pygi - gtk drawingarea doesn't work?

2012-07-16 Thread Giuseppe Penone
gnome to have drawingarea work... On Mon, Jul 16, 2012 at 11:18 AM, John Stowers john.stowers.li...@gmail.com wrote: Works for me. Ubuntu 12.04 I think your install is broken. John On Mon, Jul 16, 2012 at 10:37 AM, Giuseppe Penone gius...@gmail.com wrote: on a clean lubuntu 1204

Re: [pygtk] pygi - gtk drawingarea doesn't work?

2012-07-16 Thread Giuseppe Penone
conversion for foreign struct 'cairo.Surface' On Mon, Jul 16, 2012 at 11:57 AM, Giuseppe Penone gius...@gmail.com wrote: I tried on more that one installation, either 32 and 64 bit versions of Lubuntu 12.04. with Ubuntu 12.04 it works for me too, also with Lubuntu where I have other desktops

Re: [pygtk] pygi - gtk drawingarea doesn't work?

2012-07-14 Thread Giuseppe Penone
to the terminal anyway about the missing package, just never called the draw event. Regards, Giuseppe. On Sat, Jul 14, 2012 at 12:50 AM, David Ripton drip...@ripton.net wrote: On 07/13/2012 12:16 PM, Giuseppe Penone wrote: Hi, running the demo http://git.gnome.org/browse/**pygobject/tree/examples/cairo

[pygtk] pygi - gtk drawingarea doesn't work?

2012-07-13 Thread Giuseppe Penone
Hi, running the demo http://git.gnome.org/browse/pygobject/tree/examples/cairo-demo.py about the drawing area produces on my lubuntu 12.04 an empty window. the 'draw' event is never called, is this a bug? Regards, Giuseppe. ___ pygtk mailing list

[pygtk] pygtk weird behave in *windows only*

2012-06-11 Thread Giuseppe Penone
Hi, In my app (www.giuspen.com/cherrytree) I have a textview under a menubar. In the textbuffer there is a hyperlink to web page on the first row, nothing else: menu1 | menu2 | menu3... - *hyperlink in textview* toolbar On*

Re: [pygtk] text buffer - pygtk (or source buffer - pygtksourceview buffer) column selection or block selection or rectangular selection

2012-05-30 Thread Giuseppe Penone
you could do the same by activating a function via a gesture that tracks the mouse and simulates this using texttags (formatting), but by default I don't think there is a way to do that. Smartboy On Tue, May 29, 2012 at 3:28 AM, Giuseppe Penone gius...@gmail.comwrote: Hi, I'm wondering

[pygtk] text buffer - pygtk (or source buffer - pygtksourceview buffer) column selection or block selection or rectangular selection

2012-05-29 Thread Giuseppe Penone
Hi, I'm wondering if in pygtk there's a way to obtain the so called column selection or block selection or rectangular selection. If anybody uses geany, keeping pressed ctrl+alt while performing the selection will give the idea of the result. Geany is gtk2 but unfortunately uses scintilla to

[pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-20 Thread Giuseppe Penone
Hi, It happens to me many times that after hiding some widgets in the window, the window keeps the original size leaving part of the window with just window background (gray) visible. I'm searching for a solution, but had no luck so far. Does anybody know how to behave to have the window to shrink

Re: [pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-20 Thread Giuseppe Penone
wrote: gtk.Window.set_resizable(True) ??? Tom Cato 2012/5/20 Giuseppe Penone gius...@gmail.com Hi, It happens to me many times that after hiding some widgets in the window, the window keeps the original size leaving part of the window with just window background (gray) visible. I'm

Re: [pygtk] gtk.SpinButton - weird behaviour

2012-05-17 Thread Giuseppe Penone
it could be a problem with the update policy. I bet that you did set to update the value that the spinbutton gets after any key press. You can control where the cursor goes after any key press anyway, the entry is child of editable (http://www.pygtk.org/docs/pygtk/class-gtkeditable.html ) I have

Re: [pygtk] How to use gtk.stock_add()

2012-04-08 Thread Giuseppe Penone
Hi, ICONPATH = /usr/share/pixmaps/gksu.png factory = Gtk.IconFactory() pixbuf = GdkPixbuf.Pixbuf.new_from_file(ICONPATH) iconset = Gtk.IconSet.new_from_pixbuf(pixbuf) factory.add(gksu, iconset) factory.add_default() Cheers, G. 2012/4/8 Lion Chen chnlio...@gmail.com Hello all, i want

[pygtk] key value file parser with pygtk

2012-03-28 Thread Giuseppe Penone
Hi, I didn' find documentation on how to use key value file parser ( http://www.gtk.org/api/2.6/glib/glib-Key-value-file-parser.html) with pygtk, can anybody point me to it? Best regards, Giuseppe. ___ pygtk mailing list pygtk@daa.com.au

Re: [pygtk] key value file parser with pygtk

2012-03-28 Thread Giuseppe Penone
yeah it seems very similar, I hope it's compatible with the glib version, anyway good tip thanks. On Wed, Mar 28, 2012 at 19:48, Timo timomli...@gmail.com wrote: Op 28-03-12 12:26, Giuseppe Penone schreef: Hi, I didn' find documentation on how to use key value file parser ( http

Re: [pygtk] Spanning Multiple Columns in TreeView

2012-03-20 Thread Giuseppe Penone
Hi, you cannot obtain the result you want with a treeview since AFAIK there's no way to join cells. AFAIK there's no widget that fits your need, you have to work with nested vertical and horizontal boxes containing labels. Cheers, Giuseppe. On Mon, Mar 19, 2012 at 16:15, Andrew Rowland

Re: [pygtk] how do I get a list of windows on my desktop?

2012-03-15 Thread Giuseppe Penone
you can take a look to the source code of http://www.giuspen.com/x-tile/ On Thu, Mar 15, 2012 at 09:27, John Accoun json...@gmail.com wrote: None of these work: gtk.gdk.window_get_toplevels() [gtk.gdk.Window object at 0xb74339b4 (GdkWindow at 0x8a4c170)]

Re: [pygtk] pygtk i18n problem with windows and glade sentences

2012-02-21 Thread Giuseppe Penone
:08:13 +0100, Giuseppe Penone wrote: does anybody know if there's a way to have glade sentences translated on windows? Yep, I've pointed out a possible solution here: https://bugzilla.gnome.org/**show_bug.cgi?id=574520#c36https://bugzilla.gnome.org/show_bug.cgi?id=574520#c36 mvg, Dieter

[pygtk] pygtk i18n problem with windows and glade sentences

2012-02-19 Thread Giuseppe Penone
Hi, in order to have the i18n working on linux I use (cons is a module where I have my constants written): locale.bindtextdomain(cons.APP_NAME, cons.LOCALE_PATH) gettext.translation(cons.APP_NAME, cons.LOCALE_PATH).install() this way I have translated either the sentences from the glade file and

Re: [pygtk] pygobject documentation ?

2012-01-11 Thread Giuseppe Penone
I agree with Pietro, taken that there are rules for retrieving the Python functions from the C functions, so the documentation for Python should be automagically generated from the C documentation. Let me correct Jérôme: it's wrong that glade 3.10 does not supports gtk2, actually requires gtk

Re: [pygtk] pygobject documentation ?

2012-01-11 Thread Giuseppe Penone
you can download http://www.giuspen.com/cherrytree and have fun, the glade file is edited with *glade 3.10* and has a minimum requirement of *gtk 2.20* . no hacking was done, after opening my already existing glade file I clicked file--properties and I did set the requirement to 2.20 since it was

[pygtk] application custom stock icons not visible in ubuntu unity application indicator (visible in old system tray)

2011-12-05 Thread Giuseppe Penone
Hi, I recently noticed that in ubuntu unity the application indicator (which replaces the system tray) does not show the custom icons I added to the gtk stock, but only the basic stock icons. In place of the correct icons I see gtk-missing-image. On my apps toolbars and menus those icons are

Re: [pygtk] application custom stock icons not working in ubuntu unity top panel menu

2011-11-29 Thread Giuseppe Penone
and my app menu now works perfectly. Regards Paul Malherbe On 28/11/11 17:03, Giuseppe Penone wrote: Hi, I already have gnome-tweak-tools installed with Menus Have Icons to ON. In fact I can see default stock icons in menus, I cannot see the icons I added to stock, and only in ubuntu

Re: [pygtk] application custom stock icons not working in ubuntu unity top panel menu

2011-11-29 Thread Giuseppe Penone
'] = '0' Regards Paul Malherbe On 29/11/11 14:35, Giuseppe Penone wrote: Hi, I would not force users to remove unity appmenu, I would rather search for a solution. Thanks anyway. Cheers, Giuseppe. On Tue, Nov 29, 2011 at 09:47, Paul Malherbe p...@tartan.co.za wrote: Hi I am sorry, I

Re: [pygtk] application custom stock icons not working in ubuntu unity top panel menu

2011-11-28 Thread Giuseppe Penone
found that i had to install gnome-tweak-tool and then enable the icons and then enable menu icons under themes. Regards *Paul Malherbe* +27 (0) 21 6711866 +27 (0) 82 9005260 On 28/11/11 01:58, Giuseppe Penone wrote: Hi, I recently noticed that in ubuntu unity the top menu of my apps

Re: [pygtk] Fwd: PYGTK

2011-09-08 Thread Giuseppe Penone
take a look at this http://faq.pygtk.org/index.py?req=showfile=faq20.006.htp Cheers, Giuseppe. On Wed, Sep 7, 2011 at 23:38, Ravindra Nagireddy shaw...@gmail.com wrote: hello, I am developing a GUI using PYGTK. I am really puzzled on how to make my GUI update dynamically. I am working on

Re: [pygtk] How to print any objects of a window?

2011-08-24 Thread Giuseppe Penone
option 1: you take a screenshot and then draw the pixbuf option 2 :you have to draw the grid yourself and then the text inside the cells computing the required space. you can take a look at: http://code.google.com/p/giuspen-cherrytree/source/browse/modules/printing.py On Wed, Aug 24, 2011 at

Re: [pygtk] Notebook Pages Not Populatingfrom Sabrina

2011-08-18 Thread Giuseppe Penone
Hi, if I would be in you I would not continue to create and destroy the widgets on the notebook pages. For simplicity (and processing speed) I would draw in glade all possible widgets and then from the code just show/hide what you need according to the selected row, possibly grouping the widgets

Re: [pygtk] ScrolledWindow with TreeView is not behaving as expected

2011-07-04 Thread Giuseppe Penone
Hi Enrico, in my opinion the scrolledwindow behaves correctly. The scrolledwindow just takes the size of his parent and can hold child widgets of any dimension thanks to the scrollbars. The scrolledwindow is not supposed to change size according to what you place inside. Cheers, Giuseppe. On

Re: [pygtk] gtk_clipboard_set_with_data: (skip)

2011-07-02 Thread Giuseppe Penone
/genctypes/gtk http://rpythonic.googlecode.com/files/RPythonic-0.3.7.tar.bz2 by the way, there is also a precached version for gtk3. -hart --- On *Fri, 7/1/11, Giuseppe Penone gius...@gmail.com* wrote: From: Giuseppe Penone gius...@gmail.com Subject: [pygtk] gtk_clipboard_set_with_data: (skip

[pygtk] gtk_clipboard_set_with_data: (skip)

2011-07-01 Thread Giuseppe Penone
Hi Pavel, I'm a GTK+ developer that used to work in pygtk2 and now ported the code to pygobject introspection. For my (GPL) application http://giuspen.com/cherrytree I absolutely need the function gtk_clipboard_set_with_data that I see you marhed as NON introspectable. I wanted to ask you that

[pygtk] pygtk2 to pygobject/introspection

2011-06-30 Thread Giuseppe Penone
Did anybody notice that the function gtk_clipboard_set_with_data ()is missing from the bindings? method name=set_with_data c:identifier=gtk_clipboard_set_with_data introspectable=0 This is not a binding, this is a disaster.

Re: [pygtk] pygtk2 to pygobject/introspection

2011-06-30 Thread Giuseppe Penone
+1: provide us a tutorial so that we can learn how to add missing binded functions ourself and then provide the patch. On Thu, Jun 30, 2011 at 20:19, Timo timomli...@gmail.com wrote: On 30-06-11 14:12, Dieter Verfaillie wrote: In short, don't be afraid to get your hands dirty :) In

Re: [pygtk] strange warnings in gtk3

2011-06-28 Thread Giuseppe Penone
/2011 02:00 AM, Timo wrote: On 26-06-11 14:57, Giuseppe Penone wrote: Hi, I ported my first application to gtk3 but continue to read the followig warning: `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load anybody knows the reason? Don't know the reason, but got

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Giuseppe Penone
I invite you to take a look to the source code of my simplest application http://www.giuspen.com/nautilus-pyextensions/ where as you can see gtk.Builder() is called only once and there's no need for further calls. the code that you have to look for: class GladeWidgetsWrapper: Handles the

Re: [pygtk] How to run gtk.Builder.connect_signals multiple times?

2011-06-27 Thread Giuseppe Penone
Hi, I'm looking through your code right now, but it's not evident to me how this solves my problem. If I understand your code correctly, you call gtk.Builder.connect_signals() only once in the __init__ method of the GladeWidgetsWrapper class. yes, this is enough to connect: def

Re: [pygtk] porting gtk2 to gtk3

2011-06-27 Thread Giuseppe Penone
: Hi, On Sat, Jun 25, 2011 at 22:45, Giuseppe Penone gius...@gmail.com wrote: Hi, I'm trying to understand what's the pygi code for: gdk_x11_window_foreign_new_for_display () and gdk_x11_window_lookup_for_display () but cannot find a working solution. I would try looking up the C

[pygtk] strange warnings in gtk3

2011-06-26 Thread Giuseppe Penone
Hi, I ported my first application to gtk3 but continue to read the followig warning: `menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load anybody knows the reason? Regards. ___ pygtk mailing list pygtk@daa.com.au

[pygtk] gir1.2-nautilus-2.0

2011-06-26 Thread Giuseppe Penone
Hi, I've always used the good package python-nautilus for the python extensions, but now it seems that python-nautilus works with pygtk2 only. As I found out that between the gir1.2-* there's also a binding to nautilus, can anybody point me to a simple demo to understand how this binding work?

[pygtk] porting gtk2 to gtk3

2011-06-25 Thread Giuseppe Penone
Hi, I'm trying to understand what's the pygi code for: gdk_x11_window_foreign_new_for_display () and gdk_x11_window_lookup_for_display () but cannot find a working solution. what I need is to replace: gtk.gdk.window_foreign_new_for_display(*display*, *anid*) and

[pygtk] gir1.2-gtk-2.0 and gir1.2-gtk-3.0 together

2011-06-16 Thread Giuseppe Penone
Hi all, I'm trying (like many others) to port code from pygtk2 to gi. I'm running ubuntu 11.04, I first had only gir1.2-gtk-2.0 and, running the following lines: from gi.repository import Gtk print Gtk I get gi.module.DynamicModule 'Gtk' from '/usr/lib/girepository-1.0/Gtk-2.0.typelib' then I

Re: [pygtk] Translating tool tip with non ascii characters.

2011-05-02 Thread Giuseppe Penone
it's full of glade files including non ascii characters out there (mainly the translators names filled in the about dialog) and it works, the encoding is utf-8. On Mon, May 2, 2011 at 2:46 AM, Gerald Britton gerald.brit...@gmail.comwrote: I have a question: Does anyone know if a tooltip

Re: [pygtk] Method set_wrap_mode of widget TextView

2011-04-29 Thread Giuseppe Penone
As you can read from the reference page ( http://www.pygtk.org/pygtksourceview/class-gtksourceview.html), class gtksourceview.SourceView(gtk.TextView): gtksourceview.SourceView http://www.pygtk.org/pygtksourceview/class-gtksourceview.html#constructor-gtksourceview(*buffer*=None)

Re: [pygtk] Number lines in a textview control

2011-04-28 Thread Giuseppe Penone
you have to use gtksourceview rather than gtktextview: http://www.pygtk.org/pygtksourceview/class-gtksourceview.html#method-gtksourceview--set-show-line-numbers cheers, Giuseppe. http://www.pygtk.org/pygtksourceview/class-gtksourceview.html#method-gtksourceview--set-show-line-numbers On Wed, Apr

Re: [pygtk] how to set the active radiobutton without emitting a toggle or clicked signal?

2011-04-23 Thread Giuseppe Penone
I have a variable in my program named user_active which is by default True when I want to toggle avoiding the signal I do: user_active = False operation that causes the signal user_active = True then in the callback on_button_toggled() if not user_active: return Cheers, Giuseppe.

[pygtk] connect to the event selection changed in textbuffer/textview

2011-04-16 Thread Giuseppe Penone
Hi, I would like to connect to any situation when the selection in the textbuffer/textview changes: 1) from no selection to selection 2) the selection changed bounds 3) from selection to no selection but I see no way to do it since there's no a signal for this. If anybody has a clue about how to

Re: [pygtk] Putting a link inside a label

2011-04-14 Thread Giuseppe Penone
I think for this you need to add a textview inside of the button, then it's easy to have a clickable link there as you can see in the pygtk-demo (run pygtk-demo in a terminal to open it, then search for Text Widget - Hypertext). Cheers, Giuseppe. On Thu, Apr 14, 2011 at 2:46 AM, Jason Heeris

Re: [pygtk] Recent changes to the PyGTK Reference Manual

2011-04-11 Thread Giuseppe Penone
I agree, the new graphic of the pygtk reference (as well as the new gtk reference) is a finger in the eye, terrible indeed. Cheers, Giuseppe. On Mon, Apr 11, 2011 at 3:30 AM, Jason Heeris jason.hee...@gmail.comwrote: I'd like to offer some criticism of the new format of the PyGTK 2.0

Re: [pygtk] centralized multiple instances of a pygtk app

2011-04-02 Thread Giuseppe Penone
Gedit was only an example of how a single process can manage different windows, not of how a single process can receive new calls from it being executed (because gedit does that through DBus, which is not a solution for you). But once you switch to the one process, any number of windows

Re: [pygtk] centralized multiple instances of a pygtk app

2011-04-01 Thread Giuseppe Penone
I'll try to search in gedit code. Giuseppe. On Fri, Apr 1, 2011 at 8:26 AM, Pietro Battiston m...@pietrobattiston.itwrote: Il giorno gio, 31/03/2011 alle 23.59 +0200, Giuseppe Penone ha scritto: The reason to have more instances in my app (giuspen.com/cherrytree) is that the user can have

Re: [pygtk] centralized multiple instances of a pygtk app

2011-03-31 Thread Giuseppe Penone
which must be on a separate thread or separate process. I don't understand why this must be. The controller object (or whatever) can run just fine in the same thread as all of the windows. The one example I have handy is Reinteract, which has a window associated with each notebook and

Re: [pygtk] centralized multiple instances of a pygtk app

2011-03-31 Thread Giuseppe Penone
On Thu, Mar 31, 2011 at 12:35 AM, Johannes Sasongko sason...@gmail.comwrote: so far I've allowed a single instance only for simplicity but now I would like to introduce the opportunity to open more instances of different documents, but avoid to open twice the same document for mistake and

Re: [pygtk] centralized multiple instances of a pygtk app

2011-03-31 Thread Giuseppe Penone
+0200, Pietro Battiston ha scritto: Il giorno gio, 31/03/2011 alle 20.01 +0200, Giuseppe Penone ha scritto: (Assuming that indeed there's no way of using sockets in a non-blocking fashion - I'm totally ignorant about that) maybe having a little process

Re: [pygtk] centralized multiple instances of a pygtk app

2011-03-31 Thread Giuseppe Penone
, Giuseppe Penone ha scritto: ok, so you advice that every instance of the app would have his own server (this is the only way any independent instance can listen and control the window in shared memory) Well, frankly speaking I started from the assumption that at every moment

[pygtk] centralized multiple instances of a pygtk app

2011-03-30 Thread Giuseppe Penone
Hi, the app I'm working on is let's say a rich text editor ( http://giuspen.com/cherrytree) so far I've allowed a single instance only for simplicity but now I would like to introduce the opportunity to open more instances of different documents, but avoid to open twice the same document for

Re: [pygtk] centralized multiple instances of a pygtk app

2011-03-30 Thread Giuseppe Penone
Hi Robert, This makes sense, but I don't see why you need threads to do it. Multiple windows can be controlled by a single thread. If a given document needs an intensive calculation, that can be split into it's own thread, but that seems orthogonal to having multiple documents open. I

Re: [pygtk] catch key_press_event on gtk.CellRendererText (or gtk.TreeViewColumn)

2011-03-24 Thread Giuseppe Penone
Thank you Iñigo, I have the callback working now. Best regards, Giuseppe. On Thu, Mar 24, 2011 at 12:16 AM, Iñigo Serna inigose...@gmail.com wrote: Hi, On 23 March 2011 18:59, Giuseppe Penone gius...@gmail.com wrote: Hi, I have a table with editable cells implemented with liststore

[pygtk] catch key_press_event on gtk.CellRendererText (or gtk.TreeViewColumn)

2011-03-23 Thread Giuseppe Penone
Hi, I have a table with editable cells implemented with liststore+treeview in my application http://giuspen.com/cherrytree . I'm trying to connect a callback to any char inserted in a editable liststore cell but I cannot find a way since 1) when the user is inserting text in an editable liststore

Re: [pygtk] catch key_press_event on gtk.CellRendererText (or gtk.TreeViewColumn)

2011-03-23 Thread Giuseppe Penone
Great help, I finally connected the callback, thank you very much. Best regards, Giuseppe. On Wed, Mar 23, 2011 at 7:58 PM, Alessandro Dentella san...@e-den.itwrote: On Wed, Mar 23, 2011 at 06:59:24PM +0100, Giuseppe Penone wrote: Hi, I have a table with editable cells implemented

Re: [pygtk] TextBuffer to Markup

2011-02-16 Thread Giuseppe Penone
I implemented a class for my application CherryTree that does exactly what you asked for, take a look at: http://code.google.com/p/giuspen-cherrytree/source/browse/modules/exports.py hth, cheers, Giuseppe. On Wed, Feb 16, 2011 at 6:05 PM, Bradlee Landis bradleelan...@gmail.comwrote: Is there

Re: [pygtk] Glade 3 MenuItem and Submenu

2011-02-16 Thread Giuseppe Penone
take a look at this tutorial http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html cheers. On Wed, Feb 16, 2011 at 8:55 PM, svabodaf...@libero.it svabodaf...@libero.it wrote: Where I can find some documentation more detailed on the utilization of Glade and Python? I am a novice of

[pygtk] keyboard shortcuts visible only in main menu

2011-02-07 Thread Giuseppe Penone
Hi, I'm using gtk.uimanager for all menus but the keyboard shorcuts are visible only in the main menu. I use the same xml nodes for example for the main menu and for a popup menu but no keyboard shortuts in the popup menu. Is there a way to enable the display of the keyboard shortcuts in all menu

Re: [pygtk] Glade 3 / Builder / Combobox

2011-01-26 Thread Giuseppe Penone
I would not use glade for liststores/treestores/comboboxes, it's much simpler to write the code yourself as you can read from: http://www.pygtk.org/pygtk2tutorial/sec-ComboBoxAndComboboxEntry.html then if you want you can add the treeview to a scrolledwindow of the glade interface but from pygtk

Re: [pygtk] PyGTK New User

2011-01-22 Thread Giuseppe Penone
Hi Soumyaroop, yes you have to create a container object that contains a label widget and the entry widget. I advice you to read the official pygtk tutorial: http://www.pygtk.org/pygtk2tutorial/index.html or this also is not bad: http://zetcode.com/tutorials/pygtktutorial/ Regards, Giuseppe.

[pygtk] problem pasting clipboard content from arabic website (target text/html)

2011-01-12 Thread Giuseppe Penone
Hi, I have a problem with gtk.clipboard() and gtk.selectiondata() in my open source app http://giuspen.com/cherrytree when pasting clipboard content from arabic website taking data from the target text/html. when printing the selectiondata.data I can see that the content is: (print to terminal)

Re: [pygtk] problem pasting clipboard content from arabic website (target text/html)

2011-01-12 Thread Giuseppe Penone
at 13:34, Giuseppe Penone gius...@gmail.com wrote: Hi, I have a problem with gtk.clipboard() and gtk.selectiondata() in my open source app http://giuspen.com/cherrytree when pasting clipboard content from arabic website taking data from the target text/html. What browser is it? I think

Re: [pygtk] problem pasting clipboard content from arabic website (target text/html)

2011-01-12 Thread Giuseppe Penone
the clipboard. Regards, Giuseppe. On Wed, Jan 12, 2011 at 5:18 PM, Dieter Verfaillie diet...@optionexplicit.be wrote: On 12/01/2011 16:03, Giuseppe Penone wrote: Yes it's mozilla firefox. I tried with input_string.decode(utf-16, ignore) but what I get is 猼慰瑳汹㵥昢湯⵴楳敺›㌱┰∻㰾灳湡猠祴敬∽潣潬㩲爠摥∻㰾灳湡猠

Re: [pygtk] problem pasting clipboard content from arabic website (target text/html)

2011-01-12 Thread Giuseppe Penone
Great help, thank you very much. Regards, Giuseppe. On Wed, Jan 12, 2011 at 8:00 PM, Dieter Verfaillie diet...@optionexplicit.be wrote: On 12/01/2011 16:24, Giuseppe Penone wrote: Yes I also was thinking that, being the first two chars not valid (\0xff and \0xfe) That would be the BOM

Re: [pygtk] problem pasting clipboard content from arabic website (target text/html)

2011-01-12 Thread Giuseppe Penone
It helped thank you, the first hexs being 0xfffe or 0xfeff indicate utf-16. regards, Giuseppe. On Wed, Jan 12, 2011 at 6:15 PM, Tomeu Vizoso to...@sugarlabs.org wrote: On Wed, Jan 12, 2011 at 16:03, Giuseppe Penone gius...@gmail.com wrote: Yes it's mozilla firefox. I tried

[pygtk] treeview drag n drop doesn't work on windows xp pygtk

2011-01-11 Thread Giuseppe Penone
Hi, I successfully tested the example http://www.pygtk.org/pygtk2tutorial/examples/treeviewdnd.py on my linux distro but then when I tested on windows xp pygtk installation the internal drag n drop was not working (no errors from the command line). You can modify treeviewdnd.py adding the

Re: [pygtk] treeview drag n drop doesn't work on windows xp pygtk

2011-01-11 Thread Giuseppe Penone
The tree view drag and drop example that you indicated works fine on either windows and linux and solved my problem, thanks a lot. Regards, Giuseppe. On Tue, Jan 11, 2011 at 4:18 PM, Dieter Verfaillie diet...@optionexplicit.be wrote: Hi, On 11/01/2011 14:09, Giuseppe Penone wrote: I