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
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
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 :(
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
>>
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
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/
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
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
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/
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/
--
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/
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/
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
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
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/
__
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
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:
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
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/
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
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?
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
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
___
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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/
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
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]
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/
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
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
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
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
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
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
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
50 matches
Mail list logo