[pygtk] unable to determine normal size of a window on Win32

2005-03-07 Thread Ionutz Borcoman
zed/minimized/shaded/fullscreen when I get the configure event, because I want to record the size only when the window is in the normal state. It would be perfect if there is a way for this, other than monitoring the 'window-state-event'. On Win32 I use: * gtk-win32-2.6.2-rc1.exe from g

Re: [pygtk] no invisible cursor

2005-03-01 Thread Ionutz Borcoman
John Finlay wrote: Ionutz Borcoman wrote: Hi, The reference says: "To make the cursor invisible, use gtk.gdk.Cursor() to create a cursor with no pixels in it." When I try to use it, I get an error: >>> import gtk >>> gtk.pygtk_version (2, 4, 1) >>> c = gtk.gdk

Re: [pygtk] no invisible cursor

2005-02-28 Thread Ionutz Borcoman
vent that dot. (I have try to set the pix to have size 0x0, but it crashes the whole app). I believe hiding the cursor is a common enough operation - there should be some shorcut for doing it. I though that gtkgdk.Cursor *with no arguments* is the way to do it. It looks now, it isn't :(

Re: [pygtk] no invisible cursor

2005-02-28 Thread Ionutz Borcoman
Le Boulanger Yann wrote: Ionutz Borcoman wrote: Le Boulanger Yann wrote: Ionutz Borcoman wrote: Hi, The reference says: "To make the cursor invisible, use gtk.gdk.Cursor() to create a cursor with no pixels in it." When I try to use it, I get an error: >>> import gtk >>

[pygtk] no invisible cursor

2005-02-28 Thread Ionutz Borcoman
t): File "", line 1, in ? TypeError: Usage: gtk.gdk.Cursor(cursor_type) gtk.gdk.Cursor(display, cursor_type) gtk.gdk.Cursor(display, pixbuf, x, y) gtk.gdk.Cusrsor(source, mask, fg, bg, x, y) >>> Any idea on what's wrong? Is this not supported in

[pygtk] ANNOUNCE - Python Comics Viewer - 0.9.12 released

2005-02-28 Thread Ionutz Borcoman
b and send me the link to take it and see what is wrong ... Cheers, -- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] ANNOUNCE - Python Comics Viewer - 0.9.11 released

2005-02-26 Thread Ionutz Borcoman
when trying to reload the comics while generating the thumbs Cheers, -- Ionutz Borcoman http://borco.net/ signature.asc Description: OpenPGP digital signature ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

[pygtk] ANNOUNCE - Python Comics Viewer - 0.9.10 released

2005-02-21 Thread Ionutz Borcoman
are started directly. * close the application with the ESC key * show corectly the name of the current file on the status bar * solved bug that prevented the open of a comic after trying to open a non-existing comic (using the history, for example) Cheers, -- Ionutz Borcoman http://borco.net

[pygtk] problems with fullscreen, maximized and window size restoration

2005-02-18 Thread Ionutz Borcoman
f the size/position/state of an app? TIA, -- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] ANNOUNCE - Python Comics Viewer - 0.9.9 released

2005-02-17 Thread Ionutz Borcoman
of panning and mouse navigation * added a thumb preview page to the browser -- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] ANNOUNCE - Python Comics Viewer - 0.9.8 released

2005-02-14 Thread Ionutz Borcoman
-- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] ANN: PyComicsViewer 0.9.7

2005-02-07 Thread Ionutz Borcoman
Win$$, too (with VCToolkit 2003) * upgraded to Python2.4 -- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] ANN: PyComicsViewer 0.9.6

2005-02-01 Thread Ionutz Borcoman
Jakub Piotr Cłapa wrote: Ionutz Borcoman wrote: * renamed the starting script from pycomicsviewer to pycomicsviewer.py Is it really needed? (especially on *nix) Nope, but I want to make it work on Windows, too. On Windows there are 2 problems: * the name of the module is PyComicsViewer and the

[pygtk] ANN: PyComicsViewer 0.9.6

2005-02-01 Thread Ionutz Borcoman
Download: http://borco.net/html/PyComicsViewer/PyComicsViewer-0.9.6.tar.gz Homepage: http://borco.net/html/PyComicsViewer/ Changes in 0.9.6 (2005/02/01) * the setup.py didn’t work correctly in 0.9.5 * renamed the starting script from pycomicsviewer to pycomicsviewer.py -- Ionutz Borcoman http

[pygtk] restoring maximized and full-screen modes

2005-01-31 Thread Ionutz Borcoman
first time to normal and force the size and position at that time. Unfortunately, for problem 2. the only hack would be to not restore the full-screen or maximized states. Any ideas on what's wrong? TIA, -- Ionutz Borcoman http://borco.net/ __

[pygtk] ANN: PyComicsViewer 0.9.5

2005-01-30 Thread Ionutz Borcoman
the glade template, not in the program * show the number of files detected so far during dir scanning * set UI to use tear-off menus * added code to sort files alfa-numerically (that is, the file '5.jpg' will come before '10.jpg') * better installation support -- Ionutz Borcoman htt

Re: [pygtk] trouble with pixbuf's

2005-01-26 Thread Ionutz Borcoman
Tim Evans wrote: Ionutz Borcoman wrote: Hi, I try to display and rotate images using pixbuf's. The images are loaded using: old_pix = gtk.gdk.pixbuf_new_from_file(name) Later in the program I try to rotate the images. I get the characteristics of the images using:

[pygtk] trouble with pixbuf's

2005-01-24 Thread Ionutz Borcoman
get something like this: http://borco.net/html/PyComicsViewer/images/bad_rotate.png Funny to say it, but the image is a screenshot of the program :( So any help is greatly appreciated. -- Ionutz Borcoman http://borco.net/ ___ pygtk mailing list pyg

[pygtk] ANNOUNCE: PyComicsViewer 0.9.4 released

2005-01-24 Thread Ionutz Borcoman
the preferences dialog -- Ionutz Borcoman http://borco.net/ http://storm.prohosting.com/borco/ http://borco.go.ro/ ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] size for stock images

2005-01-17 Thread Ionutz Borcoman
Moe Aboulkheir wrote: http://developer.gnome.org/projects/gup/hig/2.0/icons.html How can I add more than one png's to a stock icon ? With different resolutions so that I have nice icons for both the menu and the toolbar? The icon files from MSWin$$ supports storing multiple resolution icons in t

[pygtk] Faq 22.7 is obsolete

2005-01-17 Thread Ionutz Borcoman
Hi, I want to use a custom widget with glade. I've try FAQ 22.7, but I get: /usr/bin/ipython:1: DeprecationWarning: use set_custom_handler instead The problem is that I'm not able to find anywhere the docs for the gtk.glade :( Are there any docs for set_custom_handler ? What about the gtk.glade?

[pygtk] size for stock images

2005-01-17 Thread Ionutz Borcoman
Hi, Using FAQ 8.12 http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq08.012.htp , I was able to load my custom images and use them with the UI manager. The problem is that the images don't look that great :( How should an image be in order to blend nicely between the existing stock ic

[pygtk] ANNOUNCE: PyComicsViewer-0.7 released

2005-01-10 Thread Ionutz Borcoman
Hi, My first released PyGTK program. You can find it at: http://borco.net/html/PyComicsViewer/ This is a program for viewing compressed comic files (aka cbr, cbz and cba files) as easy as possible. The program is still crude, but it's 95% usable. Cheers, Ionutz ___

[pygtk] select files and directories with FileChooserDialog

2004-12-20 Thread Ionutz Borcoman
Hi, I can use FileChooserDialog to select files and directories. The problem is that, when I configure it to let the user select files, the user can't select directories. And the oposite. Is there a way to let the user select files or directories, but using the same FileChooserDialog dialog? W

Re: [pygtk] using the same callback for a check menu and a toggle toolbutton

2004-12-20 Thread Ionutz Borcoman
John Finlay wrote: Ionutz Borcoman wrote: Hi, I have a toggle button on my toolbar and a check menu in my menu. They do the same thing and must stay sincronized - when I check the menu, the toggle button get's activated, for example. Both widgets show the state of an internal flag (for ex

[pygtk] using the same callback for a check menu and a toggle toolbutton

2004-12-20 Thread Ionutz Borcoman
Hi, I have a toggle button on my toolbar and a check menu in my menu. They do the same thing and must stay sincronized - when I check the menu, the toggle button get's activated, for example. Both widgets show the state of an internal flag (for example __zoomBestFit). What's the simplest way t

Re: [pygtk] Tutorial: Writing PyGTK applications in a visual way

2004-12-09 Thread Ionutz Borcoman
Hi, There is a small bug in the SimpleGladeApp -- it recognizes only certain signals handlers like those that starts with 'on_'. A simple solution is to apply the patch attached. The code becomes also simpler this way :) Check FAQ 22 for more on this: http://www.async.com.br/faq/pygtk/index.py

[pygtk] Re: recomended way to handle a dialog box

2004-11-30 Thread Ionutz Borcoman
Hi, Sorry for the noise. I've got the answers from the FAQs. Cheers, Ionutz Ionutz Borcoman wrote: Hi, My app has 2 windows: - the main window and - the configuration (preferences) window I have designed them both with glade and SimpleGladeApp.py ( http://primates.ximian.com/~sandino/python-

[pygtk] recomended way to handle a dialog box

2004-11-30 Thread Ionutz Borcoman
Hi, My app has 2 windows: - the main window and - the configuration (preferences) window I have designed them both with glade and SimpleGladeApp.py ( http://primates.ximian.com/~sandino/python-glade/ ). The configuration window has 2 buttons: an OK button and a Cancel one. How should I display th

Re: [pygtk] read/write attributes

2004-03-26 Thread Ionutz Borcoman
What will determine this decision ? Are there any drawbacks for such a functionality ? TIA, Ionutz Christian Robottom Reis wrote: On Fri, Mar 26, 2004 at 11:43:09AM +0200, Ionutz Borcoman wrote: When is this going to be added to the PyGTK ? When a decision is reached on the matter. Take

Re: [pygtk] read/write attributes

2004-03-26 Thread Ionutz Borcoman
Hi, I gues it's cleaner and easier to implement, isn't it ? And from the end-user point of view, the result should be the same, right ? When is this going to be added to the PyGTK ? TIA, Ionutz Christian Robottom Reis wrote: I wonder if the patch in http://bugzilla.gnome.org/show_bug.cg

Re: [pygtk] read/write attributes

2004-03-23 Thread Ionutz Borcoman
Hi, Thanks for the reply. It answers some of my questions, but some still remain: Why not have setters/getters for the 'attributes' so that they are read/write, not read only ? Why not having something like: border_width = property(get_border_width, set_border_width) ? TIA, Ionutz

[pygtk] read/write attributes

2004-03-22 Thread Ionutz Borcoman
Hi, In the reference of PyGTK http://www.moeraki.com/pygtkreference/pygtk2reference/index.html it is stated that certain attributes are read/write attributes. However, trying to do something like: box.border = 5 doesn't work. But: box.set_border_width(5) works. Why can't I s

[pygtk] gtk 2.4

2004-03-17 Thread Ionutz Borcoman
Hi, I've just read that gtk 2.4 is out. Any idea when the Win32 ports of GTK and PyGTK will be available ? Does PyGTK need any change in order to use the new GTK ? TIA, Ionutz ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/l

Re: [pygtk] ANNOUNCE: PyGTK 2.2.0

2004-03-11 Thread Ionutz Borcoman
Johan Dahlin wrote: > I am pleased to announce version 2.2.0 of the Python bindings for GTK. > The new release is available from ftp.gtk.org or ftp.gnome.org and its > mirrors: > http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.2/pygtk-2.2.0.tar.gz Hi, Any idea on when can we expect the windows

Re: [pygtk] text truncation method

2004-01-20 Thread Ionutz Borcoman
On Mon, 2004-01-12 at 23:15, Christian Robottom Reis wrote: > On Tue, Jan 06, 2004 at 04:02:40PM +0200, Ionutz Borcoman wrote: > > I need to display some text in a given rectangle. If the text is too > > long, the text should be trunctated and '...' appended to what

[pygtk] how do I draw the selection ?

2004-01-15 Thread Ionutz Borcoman
Hi, I am trying to implement something like an icon viewer control. Now I'm working on the selection part. What color should I use to draw the background of the selection ? What about of the text of the selection ? What if the theme is a pixmap theme ? Should I use a brush ? Are there any UI g

[pygtk] when do I use map, realize, unmap or unrealize ?

2004-01-15 Thread Ionutz Borcoman
Hi, I'm still a bit confused on when should I use 'map', when 'realize', when 'unmap' and when 'unrealize'. Especially, what is the place to do these steps: - one time initialization of the widget when all the geometricall and style info are valid (aka, size of the widget is known, I can use p

Re: [pygtk] [ANN] MVC-0.3.0 released

2004-01-15 Thread Ionutz Borcoman
Hi, I think it would be nice if: 1. Put somewhere a 'road-map' of the project. This way it will be easier for the end-user (me) to know if the framework is almost-useable or it is far from that (to me it looks useable enough, so I wonder why is the version 0.3.0). What will it take for this to

[pygtk] PyGTK Wiki

2004-01-14 Thread Ionutz Borcoman
Hi, Is there any PyGTK Wiki ? TIA, Ionutz ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] what is the fastestest way to load and display from a PIL image ?

2004-01-13 Thread Ionutz Borcoman
Tim Evans wrote: Ionutz Borcoman wrote: Hi, What is the fastest way to display a PIL image in a DrawingArea ? This will work with RGB and RGBA images: import PIL.Image, Numeric, gtk i = PIL.Image.open('foo.png') w, h = i.size data = Numeric.fromstring(i.tostring(), 'b

Re: [pygtk] what is the fastestest way to load and display from a PIL image ?

2004-01-12 Thread Ionutz Borcoman
Nathan Hurst wrote: Ionutz Borcoman wrote: Hi, What is the fastest way to display a PIL image in a DrawingArea ? I've attached a program I wrote a long time ago to address this. Use it how you like. njh ___ pygtk mailing list [EMAIL PROTECTED]

[pygtk] what is the fastestest way to load and display from a PIL image ?

2004-01-12 Thread Ionutz Borcoman
Hi, What is the fastest way to display a PIL image in a DrawingArea ? TIA, Ionutz ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] simple icon view control [was: thread support on windows ?]

2004-01-07 Thread Ionutz Borcoman
Hi, Here is my simple icon viewer widget. It uses a thread to display the icons. I would appreciate any comments/suggestions for possible improvements. For example, one thing I'm not very comfortable with is that the IconViewer is derived from a HBox. How can I derive it directly from gtk.Wid

[pygtk] text truncation method

2004-01-06 Thread Ionutz Borcoman
Hi, I need to display some text in a given rectangle. If the text is too long, the text should be trunctated and '...' appended to what is displayed. Example: I need to display 'qwertyuiop' but it's too long, so I display only 'qwer...'. In the present I am using something like this: def

Re: [pygtk] thread support on windows ?

2004-01-06 Thread Ionutz Borcoman
Tim Evans wrote: It depends on what you need to do, and on what you are comfortable using. Threads are good if what you are doing is going to take a long time and can't be divided up into small chunks that can be executed in an idle callback. Even if something can be done in multiple idle ha

Re: [pygtk] thread support on windows ?

2004-01-06 Thread Ionutz Borcoman
Tim Evans wrote: It depends on what you need to do, and on what you are comfortable using. Threads are good if what you are doing is going to take a long time and can't be divided up into small chunks that can be executed in an idle callback. Even if something can be done in multiple idle han

Re: [pygtk] thread support on windows ?

2004-01-05 Thread Ionutz Borcoman
Tim Evans wrote: Ionutz Borcoman wrote: Hi, I am trying to use threads and PyGTK together (under M$ Windows) with no success. I have attached the small program to this e-mail. Am I doing something wrong ? Or is the pygtk not working with threads on M$Win ? I have python 2.3.2, pytgk 2.0.0 and

[pygtk] thread support on windows ?

2004-01-03 Thread Ionutz Borcoman
Hi, I am trying to use threads and PyGTK together (under M$ Windows) with no success. I have attached the small program to this e-mail. Am I doing something wrong ? Or is the pygtk not working with threads on M$Win ? I have python 2.3.2, pytgk 2.0.0 and gtk 2.2.4.1. TIA, Ionutz import pygtk py

[pygtk] libglade questions

2003-06-06 Thread Ionutz Borcoman
Hi, Here are my newbie questions: I use gtk2, glade2 and gnome2. I want to use glade to design my UI and use the gtk.glade.XML to parse the resulting glade file. The glade files are attached. Q: Do I need to parse the glade file in every class ? With what parameters ? How do I get a class for th