[pygtk] Adding and deleting items from a menu

2009-08-17 Thread Fabrice DELENTE
in my menu when I drop it, but it's not the case... the menu is not modified. I'd like to be able to delete an entry I have created, but there is no self.menuFichier.delete(n) method. Any hints on this? Thanks ! -- Fabrice DELENTE ___ pygtk mailing

Re: [pygtk] Adding and deleting items from a menu

2009-08-17 Thread Fabrice DELENTE
This is not a real answer to your question, but I have been fighting with menus till I took the time to read UIManager Interfaces that really makes working with menus much simpler and more reasonable. I'll look into that, thanks. Is it compatible with glade (because I designed my interface

[pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
with dialog.show_all() and I click either Ok or Cancel... I tried with dialog.run(), and it didn't worked either. Any hint? Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
Look at: http://library.gnome.org/devel/pygtk/stable/class-gladexml.html#method-gladexml--signal-autoconnect I think I don't need this method if I define the callbacks directly in the glade file. -- Fabrice DELENTE ___ pygtk mailing list pygtk

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
You need to call this method to connect the callbacks named in the glade file to the callbacks in the python program. You're absolutely right. Thanks for the tip. -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au

[pygtk] PyGTK + Cairo + PNG file in the background

2009-09-11 Thread Fabrice DELENTE
the text, and cairo to render the PNG file; however I have trouble to find any leads on how to display a PNG file in with cairo (I'm getting mixed up between contexts and surfaces: what is the difference?) Thanks for any help! -- Fabrice DELENTE

Re: [pygtk] PyGTK + Cairo + PNG file in the background

2009-09-11 Thread Fabrice DELENTE
I have to first scale down my image myself (the PNG is about 2000x2000, and my window is about 1000x800). Thanks again. -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] Drawing a PNG on a gtk.DrawingArea

2009-09-12 Thread Fabrice DELENTE
in it. What did I miss? Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] Resizing an hbox

2009-09-12 Thread Fabrice DELENTE
-resize event of the hbox would be enough, but it doesn't work. Is there a flag to set somewhere? Thanks! -- Fabrice DELENTE ___ 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] Drawing a PNG on a gtk.DrawingArea

2009-09-12 Thread Fabrice Delente
2009/9/12 John Finlay fin...@moeraki.com What happens if you try drawing the original pixbuf? John Your hint was right, my rescaling went the wrong way; displaying the original pixbuf worked ok, I messed up the rescaling... Thanks! -- Fabrice DELENTE

[pygtk] Drawing over a scrolled image

2009-09-13 Thread Fabrice DELENTE
... Is there a way to manage this with a scrolled window and a viewport? Or do I have to implement the scrolling myself with an hscrollbar and a vscrollbar? Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo

Re: [pygtk] Drawing over a scrolled image

2009-09-15 Thread Fabrice Delente
a PNG file; I load it in a gtk.Image with load_from_file, and I didn't find any method in gtk.DrawingArea to display a pixbuf (as gtk.Image contains a pixbuf). Do you know of any method to display a pixbuf in a gtk.DrawingArea? Thank! -- Fabrice DELENTE

Re: [pygtk] Drawing over a scrolled image

2009-09-15 Thread Fabrice DELENTE
Note the first two sentences in the PyGTK DrawingArea reference documentation: Thanks for your detailed answer, I tend to skim over the reference as I find it confusing at times. Sorry, I should have read more in depth. À bientôt. -- Fabrice DELENTE SVP, ne m'envoyez pas de pièces jointes

[pygtk] Deselecting the text from an Entry the first time it appears.

2010-11-21 Thread Fabrice Delente
Hello. I have a DrawingArea that responds to keyboard event. I want that, when I press 1-9, an Entry pops up, in which I can type a number whose first digit is the digit that made the Entry pop up. I have nearly succeeded, however when the Entry pops up the digit is selected, so that when I

Re: [pygtk] Deselecting the text from an Entry the first time it appears.

2010-11-22 Thread Fabrice Delente
You have to set the position *after* you show the entry. self.interfacePourNombres.show_all() self.zonePourNombres.set_position(1) # Or use -1 to always put the cursor at the end Thanks! That did it! -- Fabrice DELENTE ___ pygtk

[pygtk] Understanding Pango+Cairo

2010-11-23 Thread Fabrice Delente
anything clear through googling... Thanks! -- Fabrice DELENTE ___ 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] [Fwd: Understanding Pango+Cairo]

2010-11-23 Thread Fabrice Delente
Have you read this tutorial? http://zetcode.com/tutorials/pygtktutorial/ No, I didn't know this one; I'll read it. Thanks! -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

[pygtk] ImportError for pynotify?

2012-02-20 Thread Fabrice DELENTE
Hello. I hope this list is relevant for my problem. I'd like to install blueman, the GTK bluetooth manager on my machine (Slackware 13.37). For that, I installed libnotify-0.7.4 and notify-python-0.1.1 (with a bit of trouble due to API changes), and then compiled blueman. However, when I start

Re: [pygtk] ImportError for pynotify?

2012-02-20 Thread Fabrice DELENTE
Because pynotify is not installed: http://pyinotify.sourceforge.net/ Sorry, wrong link, (blame google), here is the right one: http://www.galago-project.org/news/index.php It's difficult to find because it is sometimes called python-notify, notify-python, py-notify, etc! Yeah, that must

Re: [pygtk] ImportError for pynotify?

2012-02-20 Thread Fabrice DELENTE
Sorry, wrong link, (blame google), here is the right one: http://www.galago-project.org/news/index.php Thanks for the link. ... except that this is the page I already downloaded from and then compiled and installed pynotify (notify-python-0.1.1.tar.bz2 is what I downladed) :^( Do I have to

Re: [pygtk] ImportError for pynotify?

2012-02-20 Thread Fabrice DELENTE
Maybe it isn't installed properly? This project has no docs, an empty README and an empty INSTALL.. ouch! I'll try recompiling and reinstalling then... I'll look into Ubuntu sources files too, because I know that blueman and so this module are installed there. No. I don't think so. I don't

[pygtk] Creating a sliding desktop panel

2013-03-28 Thread Fabrice Delente
Hello. I'd like to create a sliding panel in PyGTK, that is a panel that is hidden most of the time, but appears by scrolling down when I move the mouse to the top left of my screen (I don't have anything there, no menu bar or icons). Any hint on the best way to do that? Thanks! -- F. Delente

[pygtk] How to flush labels left in a Gtk.Grid() cell?

2014-04-26 Thread Fabrice Delente
Hello. This is in python2.7, with pygojbect 3.10.2, so using GTK+3. I have a Gtk.Grid() in which I want to display a list of Labels. I have set the justification to LEFT for each of my labels, but I can't get them do be situated on the left of their cell in the grid. I have tried putting each

Re: [pygtk] How to flush labels left in a Gtk.Grid() cell?

2014-04-26 Thread Fabrice Delente
Thanks. ___ 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] How to flush labels left in a Gtk.Grid() cell?

2014-04-26 Thread Fabrice Delente
Very useful, thank you! ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/