Re: [pygtk] How to get the color of each pixel on the "current screen"?

2013-07-06 Thread Ajay Garg
iven its x- and y-coordinates. Any ideas please? :) On Sat, Jul 6, 2013 at 7:23 PM, Ajay Garg wrote: > Hi all. > > I managed to procure the following code from > http://rosettacode.org/wiki/Color_of_a_screen_pixel, that retrieves > the pixel color va

Re: [pygtk] How to get the color of each pixel on the "current screen"?

2013-07-06 Thread Ajay Garg
6, 2013 at 6:36 PM, Ajay Garg wrote: > Hi all. > > How can we get the color of each pixel on the "current screen" > (possibly beginning from > http://www.pygtk.org/docs/pygtk/class-gdkscreen.html)? > > The use-case is as follows :: > > * Let's say

[pygtk] How to get the color of each pixel on the "current screen"?

2013-07-06 Thread Ajay Garg
Hi all. How can we get the color of each pixel on the "current screen" (possibly beginning from http://www.pygtk.org/docs/pygtk/class-gdkscreen.html)? The use-case is as follows :: * Let's say, I compare two rows of pixels on the current screen. * The first row is "all white". * The

[pygtk] "Overlay" in GTK2-bindings?

2013-04-09 Thread Ajay Garg
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. I will be grateful for any pointers :) Thanks and Regards, Ajay ___

[pygtk] Does "Gtk.Label.set_line_wrap_mode(True)" not work?

2013-02-02 Thread Ajay Garg
-- 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] Does "Gtk.Label.set_line_wrap_mode(True)" not work?

2013-02-02 Thread Ajay Garg
In Gtk-3 that is. On Sun, Feb 3, 2013 at 12:29 PM, Ajay Garg wrote: > > > -- > Regards, > Ajay > -- 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] "gtk.Window.get_size()" returns wrong dimesntions after "resize()"?

2013-01-23 Thread Ajay Garg
.. ! So, is there a workaround, whereby one get the correct, updated dimensions (preferably in a synchronous manner), after "resize" is done? > > Regards, > Guan > > > On Wed, Jan 23, 2013 at 5:18 PM, Ajay Garg wrote: > >&g

[pygtk] "gtk.Window.get_size()" returns wrong dimesntions after "resize()"?

2013-01-23 Thread Ajay Garg
Hi all. First I would like to paste the simplistic example, highlighting the issue : # import gtk import gobject win = gtk.Window() win.show() print win.get_size()# prints (200, 200) win.resize(100, 346) print win.get_size()

[pygtk] Problem with "gtk.Window().maximize()"

2013-01-18 Thread Ajay Garg
Hi all. If a gtk.Window has been maximized, it seems that the "resize()" method doesn't take effect thereafter. I will illustrate with the following code snippets :: a) ### import gtk import gobject win = gtk.Window() win.show()

Re: [pygtk] Is it possible to pass "markup" text to the inherent label of Gtk.LinkButton (or Gtk.Button) ?

2012-12-23 Thread Ajay Garg
d anything inside the button by now > label = gtk.Label('Hello World') > label.set_use_markup(True) > button.add(label) > win.vbox.pack_start(button, 1, 1) > win.vbox.show_all() > win.run() > > > On Sun, Dec 23, 2012 at 3:59 PM, Ajay Garg wrote: > >>

[pygtk] Is it possible to pass "markup" text to the inherent label of Gtk.LinkButton (or Gtk.Button) ?

2012-12-23 Thread Ajay Garg
Will be grateful for any pointers. 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] Query regarding "clickable" property for a Gtk.TreeViewColumn

2012-12-11 Thread Ajay Garg
On Tue, Dec 11, 2012 at 1:30 PM, Simon Feltman wrote: > The docs say the set_clickable only affects the column header. Is this > what you are seeing? > You mean just the first row? If yes, even that is not taking effect. > -Simon > On Dec 10, 2012 11:09 PM, "Ajay Garg&qu

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

2012-12-10 Thread Ajay Garg
.CellRendererText. > [1] > http://www.pygtk.org/docs/pygtk/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--set-clickable > > > Cheers > > On Dec 10, 2012, at 2:31 PM, Ajay Garg wrote: > > However, once the view is rendered, and if after that "a.props.clicka

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

2012-12-10 Thread Ajay Garg
On Fri, Nov 30, 2012 at 4:25 PM, Ajay Garg wrote: > Hi Timo. > > On Fri, Nov 30, 2012 at 3:59 PM, Timo wrote: > >> Op 29-11-12 21:09, Ajay Garg schreef: >> >> Hi all. >>> >>> We are using the classical case of a Gtk.CellRenderText encompass

[pygtk] Programmatically invoking interactive searching in "Gtk.TreeView"

2012-12-06 Thread Ajay Garg
he search works fine, and the searched row is scrolled-to. So, my query is, is it possible to programmatically call the above procedure, when the "self._entry" is set with a text PROGRAMMATICALLY (on the lines of "self._entry.set_text('ajay garg')"? I guess there must

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

2012-11-30 Thread Ajay Garg
Hi Timo. On Fri, Nov 30, 2012 at 3:59 PM, Timo wrote: > Op 29-11-12 21:09, Ajay Garg schreef: > > Hi all. >> >> We are using the classical case of a Gtk.CellRenderText encompassed in a >> Gtk.TreeViewColumn, which in turn is appended to a Gtk.TreeView. >&g

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

2012-11-29 Thread Ajay Garg
Hi all. We are using the classical case of a Gtk.CellRenderText encompassed in a Gtk.TreeViewColumn, which in turn is appended to a Gtk.TreeView. Here "a.props.clickable = True", where "a" is an instance of Gtk.TreeViewColumn. However, once the view is rendered, and if after that "a.props.click

Re: [pygtk] "Export to PDF"

2012-10-22 Thread Ajay Garg
at 12:14 PM, Ajay Garg wrote: > > > a) > Can the dialog, that asks for the printer-to-be-used, be avoided too? > (Because I just wish to export to PDF, nothing else). > > As an example > > filename = './ultimafactura.pdf' > po.set_export_filename(filename) >

Re: [pygtk] "Export to PDF"

2012-10-22 Thread Ajay Garg
t; mar...@islascruz.org> wrote: > > On Oct 22, 2012, at 11:38 AM, Ajay Garg wrote: > > Two questions :: > > a) > I came across the link > http://svn.majorsilence.com/pygtknotebook/trunk/examples/printing/printing-example.py, > and from what I could infer, it uses GTK

Re: [pygtk] "Export to PDF"

2012-10-22 Thread Ajay Garg
> On Oct 22, 2012, at 11:17 AM, Ajay Garg wrote: > > > Hi all. > > > > I am looking for a python API/library to export text-documents and > images to PDF. > > > > Does such a functionality exist in PyGTK ? > > > > Currently, I have explored PyQt4,

[pygtk] "Export to PDF"

2012-10-22 Thread Ajay Garg
Hi all. I am looking for a python API/library to export text-documents and images to PDF. Does such a functionality exist in PyGTK ? Currently, I have explored PyQt4, and it works according to my requirements. However, it will be great if we could have something similar in PyGTK :) Looking for

Re: [pygtk] Equivalent of "GConf.client set_list" in GTK+ ?

2012-10-17 Thread Ajay Garg
I tried mixing the two bindings; they don't succeed. I just wonder why the bug of csuch criticality is not being acted upon, https://bugzilla.gnome.org/show_bug.cgi?id=681433 On Tue, Oct 16, 2012 at 3:51 PM, Ajay Garg wrote: > Thanks for the info Simon. > > Would mixing up st

Re: [pygtk] Equivalent of "GConf.client set_list" in GTK+ ?

2012-10-16 Thread Ajay Garg
ith "Client.set". I found this bug in > bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=681433 > > -Simon > > On Tue, Oct 16, 2012 at 1:00 AM, Ajay Garg wrote: > > Hi Simon. > > > > Following is the pro

Re: [pygtk] Equivalent of "GConf.client set_list" in GTK+ ?

2012-10-16 Thread Ajay Garg
ample of code illustrating the problem. > Preferably something small enough we can copy and paste into a python > console. If it is an obvious bug or limitation which is easily > reproduced, feel free to file a bug report here: > https://bugzilla.gnome.org under Bindings/pygobject > > -Sim

Re: [pygtk] Equivalent of "GConf.client set_list" in GTK+ ?

2012-10-16 Thread Ajay Garg
Ping :) On Mon, Oct 15, 2012 at 4:15 PM, Ajay Garg wrote: > Hi all. > > I have been porting some code, from gconf to gi.repository.GConf; there I > am able to "set" values of all types, except of the type > "GConf.ValueType.LIST". > > I will be gratef

[pygtk] Equivalent of "GConf.client set_list" in GTK+ ?

2012-10-15 Thread Ajay Garg
Hi all. I have been porting some code, from gconf to gi.repository.GConf; there I am able to "set" values of all types, except of the type "GConf.ValueType.LIST". I will be grateful if someone could let me know how to do this :) I am going a little impatient over this. - Regards, Ajay _

Re: [pygtk] Correspondent for "gtk.gdk.window_process_all_updates" in Gtk+ ?

2012-10-11 Thread Ajay Garg
Well.. talk of meeting the answer just after posting :) Damn the google (it didn't show the answer before ..) :) Well, for the intersted, the answer is :; """ from gi.repository import Gdk Gdk.Window.process_all_updates() """ On Thu, Oct 11, 2012 at 5

[pygtk] Correspondent for "gtk.gdk.window_process_all_updates" in Gtk+ ?

2012-10-11 Thread Ajay Garg
Hi all. What is the corresponding function for "gtk.gdk.window_process_all_updates" in Gtk+ ? I tried looking at the docs, but could not seem to pounce on the required thing. I wil be grateful for a reply. -- Regards, Ajay ___ pygtk mailing list p

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

2012-08-14 Thread Ajay Garg
gards, Ajay On Tue, Aug 14, 2012 at 10:44 PM, Timo wrote: > 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 "gr

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

2012-08-14 Thread Ajay Garg
imo wrote: > Op 14-08-12 06:35, Ajay Garg schreef: > > Hi all. >> >> I have four simple questions :) :: >> >> >> a) >> How to block the complete UI (in the sense that no user-interaction with >> the UI is effective), although the UI changes t

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

2012-08-13 Thread Ajay Garg
Hi all. I have four simple questions :) :: a) How to block the complete UI (in the sense that no user-interaction with the UI is effective), although the UI changes take place as usual via the changes emanating from the code? b) How to block only a widget, while the rest of the UI remains un

Re: [pygtk] How to momentarily-hover-away / momentarily-disappear-mouse from over the gtk.GenericCellRenderer ?

2012-08-13 Thread Ajay Garg
Hi Bjartur. Found a simple way to do it :) I just hide, then unhide the window. Simple, elegant and effective. :) Thanks a ton for your help. Thanks and Regards, Ajay On Mon, Jul 30, 2012 at 4:05 AM, Bjartur Thorlacius wrote: > On Sun, 29 Jul 2012 15:32:46 +0530 > Ajay Garg wrote: &

Re: [pygtk] How to momentarily-hover-away / momentarily-disappear-mouse from over the gtk.GenericCellRenderer ?

2012-07-25 Thread Ajay Garg
has clicked the checkbox-cell, expecting spontaneous status change on the UI (change from unchecked-to-checked state). Regards, Ajay On Wed, Jul 25, 2012 at 6:09 PM, Bjartur Thorlacius wrote: > On Wed, Jul 25, 2012 at 6:16 AM, Ajay Garg wrote: > > So, is there a way to program

[pygtk] How to momentarily-hover-away / momentarily-disappear-mouse from over the gtk.GenericCellRenderer ?

2012-07-24 Thread Ajay Garg
Hi all. I have a custom subclass of gtk.GenericCellRenderer, CellRendererFavorite. This is encapsulated within a "gtk.TreeViewColumn". I guess some code would make things clearer :: 154 cell_favorite = CellRend