Re: [pygtk] Saving and reading images from database

2009-11-13 Thread Frédéric Grollier
Le vendredi 13 novembre 2009 à 15:15 +0100, Timo List a écrit : My program uses the SQLite database. The database holds some information about persons and I want to add a picture for each person. Not the path to the file, but the actual image so that the image also works if the file is deleted

Re: [pygtk] Font in TextView

2009-11-12 Thread Frédéric Grollier
Le jeudi 12 novembre 2009 à 18:00 +0530, Baloon man a écrit : Hello I am new to pygtk programming and found it very intuitive !!! I am trying to find a way to set a local language font ( lohit kannada - ಕನ್ನಡ ) for text view. How do I do this. Hello, If I understand the question

Re: [pygtk] Threads in PyGTK: keep typing while ping-ing

2009-02-17 Thread Frédéric
as one, but call thread.start_new_thread... Hope this helps. -- Frédéric http://www.gbiloba.org ___ 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] Gui Locks up after button clicked. (extensive process started)

2009-01-28 Thread Frédéric
thread, is to periodically call: while gtk.events_pending(): gtk.main_iteration() in you computation loop. -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

Re: [pygtk] [Glade-users] dialog problem

2009-01-19 Thread Frédéric
Le 19/1/2009, anusha k anuha...@gmail.com a écrit: if self.response == 'gtk.RESPONSE_QUIT': I don't think you should use quotes, here... -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] How to make gtk.TextView scroll to the end line automaticly?

2009-01-19 Thread Frédéric
) \ vadjust.step_increment scrolledwindow.get_vadjustment().connect(value-changed, value_changed) --- where scrolledwindow is the widget containing the textview. -- Frédéric http://www.gbiloba.org

Re: [pygtk] windows - pygtk - thread - main.iteration problem

2009-01-11 Thread Frédéric
in threads is never a good idea... You should move your loop in the main thread. You could also try to call: gtk.gdk.threads_init() gtk.gdk.threads_enter() before any other GTK call, in the main thread. -- Frédéric http://www.gbiloba.org

Re: [pygtk] [pymaemo] Seg. fault

2009-01-07 Thread Frédéric
On mardi 06 janvier 2009, Frédéric wrote: On dimanche 04 janvier 2009, Frédéric wrote: /usr/lib/python2.5/site-packages/papywizard/controller/abstractControl ler.py:120: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed self.wTree.signal_autoconnect(self._signalDict

Re: [pygtk] Seg. fault

2009-01-06 Thread Frédéric
On dimanche 04 janvier 2009, Frédéric wrote: /usr/lib/python2.5/site-packages/papywizard/controller/abstractController.py:120: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed self.wTree.signal_autoconnect(self._signalDict) /usr/lib/python2.5/site-packages/papywizard

Re: [pygtk] How to retrieve all the content in the TextBuffer?

2009-01-05 Thread Frédéric
last one. Yes, but Ziwen was looking for a way to retreive all contents (pixbufs and so), not only the text... -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Problem with Notebook

2008-12-25 Thread Frédéric
)) notebook.append_page(gtk.Label(Page 3)) win.add(notebook) win.show_all() # Connect signals win.connect('destroy', gtk.main_quit) notebook.connect('switch-page', switchPage) gtk.main() -- Frédéric http://www.gbiloba.org

Re: [pygtk] Problem with Notebook

2008-12-24 Thread Frédéric
the stop_emission() method? I can't retreive it in the doc... -- Frédéric http://www.gbiloba.org ___ 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] Problem with Notebook

2008-12-24 Thread Frédéric
. -- Frédéric http://www.gbiloba.org ___ 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] Problem with Notebook

2008-12-23 Thread Frédéric
, this is what I though, but neither return True nor False worked... In fact, I never re-entry in my callback, as I expect. I even tried to add the follwing code: while gtk.events_pending(): gtk.main_iteration() But it does not change anything. -- Frédéric http://www.gbiloba.org

Re: [pygtk] Problem with Notebook

2008-12-23 Thread Frédéric
when the dialog is closed. I think this is more or less what I do... What do you have in mind, exactly? How can I switch the page, as the set_current_page() does not work? -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk

Re: [pygtk] hide on delete_event()

2008-12-19 Thread Frédéric
: even if event-delete callback returns True, the signal is propagated, and the destroy signal is emited. Why? Is there a way to avoid that? -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] hide on delete_event()

2008-12-19 Thread Frédéric
in its loop... -- Frédéric http://www.gbiloba.org ___ 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] hide on delete_event()

2008-12-19 Thread Frédéric
of the dialog; if not then put it in the button's clicked handler. Ok, I got it! Thanks for you help. -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] hide on delete_event()

2008-12-19 Thread Frédéric
On vendredi 19 décembre 2008, Frédéric wrote: Then don't use run(), connect a callback to the response signal and put all the dialog processing in that. You still need to handle the delete-event signal to prevent the dialog closing and put the destroy() in the response signal handler

Re: [pygtk] hide on delete_event()

2008-12-19 Thread Frédéric
simple... Thank you very much for your help :o) -- Frédéric http://www.gbiloba.org ___ 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] Gtkrc styles

2008-12-16 Thread Frédéric
Le 15/12/2008, Frédéric frederic.mantega...@gbiloba.org a écrit: Ok, I found the answer of this question: gtk.rc_parse(gtkrcFileName) screen = myMainWindow.get_screen() settings = gtk.settings_get_for_screen(screen) gtk.rc_reset_styles(settings) Grrr, it does not work totally

Re: [pygtk] Gtkrc styles

2008-12-15 Thread Frédéric
Le 15/12/2008, Frédéric frederic.mantega...@gbiloba.org a écrit: 1) I would like to dynamically load a gtkrc file, using gtk.rc_parse(file), and have the styles contained in this file immediatly applied to my entire application. But it does not work: only widget which have not yet been realized

[pygtk] Gtkrc styles

2008-12-15 Thread Frédéric
() objects. Is there a way to have theses colors read from the gtkrc file? How do I implement my own widget resources in this file? Thanks for your help, -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] Font size

2008-12-14 Thread Frédéric
On jeudi 11 décembre 2008, Frédéric wrote: Ok, I found a very simple way: I just call a specific gtkrc file using:     gtk.rc_parse(file) Another question about resources : is it possible to have the GUI refreshed according to these new resources after dynamically loading a gtkrc file

Re: [pygtk] Font size

2008-12-11 Thread Frédéric
On mercredi 10 décembre 2008, Frédéric wrote: Is it possible to specify the font description *per application*, in the .gtkrc file? Ok, I found a very simple way: I just call a specific gtkrc file using: gtk.rc_parse(file) I have now some questions about the usage of the gtk resources

[pygtk] Font size

2008-12-10 Thread Frédéric
a relative size... Thanks, -- Frédéric ___ 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] Font size

2008-12-10 Thread Frédéric
Le 10/12/2008, Frédéric [EMAIL PROTECTED] a écrit: I would like to be able to change the font size of a specific widget; I want it to use a font larger than the other one, whatever is the default size (which I can set using .pygtkrc), or even the font name. [...] Is it possible to specify

Re: [pygtk] Font size

2008-12-10 Thread Frédéric
weight can be something like pango.WEIGHT_BOLD... BTW, wher do I put the .gtkrc-2.0 file under windows? I tried under: C:\\Document and Settings\user\Application Data\gtk-2.0\gtkrc but it does not work... -- Frédéric ___ pygtk mailing list pygtk

[pygtk] cairo speed

2008-12-03 Thread Frédéric
here? -- Frédéric ___ 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] Notebook

2008-12-03 Thread Frédéric
Le 3/12/2008, Paul Malherbe [EMAIL PROTECTED] a écrit: What exactly do you mean by 'disable all other pages' ? Do you mean disable the tags or the pages. I don't want the user to switch to other pages of the notebook. -- Frédéric ___ pygtk mailing

Re: [pygtk] Notebook

2008-12-03 Thread Frédéric
: sens = haveRunningBlade page = self.get_widget(pageName) label = notebook.get_tab_label(page) label.set_sensitive(sens) page.set_sensitive(sens) Thank you all for your help; it works fine :o) -- Frédéric http://www.gbiloba.org

Re: [pygtk] Looking for MacOS user to test software

2008-11-27 Thread Frédéric
, but it doesn't know how to install... Thanks, -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] Threads sync

2008-11-22 Thread Frédéric
( So, what other mecanism should I use to sync my threads? Is there a GTK-based macanism? Thanks, -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] Threads sync

2008-11-22 Thread Frédéric
that periodically does a non-blocking read from the appropriate queue and takes the appropriate action if it finds something there. Thanks for all these tips. I think I will use you queue system, that sounds good :o) -- Frédéric http://www.gbiloba.org

[pygtk] Looking for MacOS user to test software

2008-11-21 Thread Frédéric
, -- Frédéric ___ 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] store ListStore

2008-11-19 Thread Frédéric
? -- Frédéric ___ 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] examples

2008-11-18 Thread Frédéric
Le 18/11/2008, John Stowers [EMAIL PROTECTED] a écrit: google codesearch is really useful for this Are you sure? http://www.radaronline.com/from-the-magazine/2007/09/google_fiction_evil_dangerous_surveillance_control_1.php ;o) -- Frédéric

[pygtk] DrawingArea user feedback

2008-11-17 Thread Frédéric
/shootingArea.py In 'pause' mode, I would like to allow the user to select a previous shooting position by clicking on the wanted position... How can I do that? What is the mecanism to get the user click position on that area? How to bind to a custom callback? Thanks, -- Frédéric

Re: [pygtk] DrawingArea user feedback

2008-11-17 Thread Frédéric
this signal, but it didn't work. This is because it needs to be enabled, calling set_events() method. But when I do that, I get: GtkWarning: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED (widget)' failed Why? -- Frédéric ___ pygtk mailing

Re: [pygtk] DrawingArea user feedback

2008-11-17 Thread Frédéric
On lundi 17 novembre 2008, Frédéric wrote: GtkWarning: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED (widget)' failed As far as I understand, this assertion is raised because the set_events() method should be called *after* the widget is realized, ie after it is drawn on the screen

Re: [pygtk] DrawingArea user feedback

2008-11-17 Thread Frédéric
On lundi 17 novembre 2008, Frédéric wrote: GtkWarning: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED (widget)' failed As far as I understand, this assertion is raised because the set_events() method should be called *after* the widget is realized, ie after it is drawn

Re: [pygtk] More pyGTK questions.

2008-11-15 Thread Frédéric
On jeudi 13 novembre 2008, Neil Munro wrote: 2008/11/13 Frédéric [EMAIL PROTECTED] On jeudi 13 novembre 2008, Neil Munro wrote: I've gotten rid of the quit methods etc since I don't need them but every time I hit my ok button (which should just close the about window) does nothing

Re: [pygtk] More pyGTK questions.

2008-11-13 Thread Frédéric
and glade file? -- Frédéric http://www.gbiloba.org ___ 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] Python and Glade

2008-11-12 Thread Frédéric
in the hopes it'll only be one or two lines to change that I am simply unaware of. I can't open you glade file right now, but did you set the Visible property of the window to Yes? It is No by default... -- Frédéric ___ pygtk mailing list pygtk

Re: [pygtk] Python and Glade

2008-11-12 Thread Frédéric
On mercredi 12 novembre 2008, Frédéric wrote: I can't open you glade file right now, but did you set the Visible property of the window to Yes? It is No by default... Ok, I confirm this is the issue ;o) Alos note that you should import gtk and gtk.glade *after* pygtk.require() call (it seems

Re: [pygtk] More pyGTK questions.

2008-11-12 Thread Frédéric
will be closed as soon as you press OK or Cancel. Look at my code, for example: http://trac.gbiloba.org/papywizard/browser/trunk/papywizard/controller/generalInfoController.py I bind signals just to make some special actions before the dialog is closed, but I don't cal a quit method. -- Frédéric

Re: [pygtk] More pyGTK questions.

2008-11-12 Thread Frédéric
Le 13/11/2008, Frédéric [EMAIL PROTECTED] a écrit: Just get the name of you menu entry (using wTree.get_widget() method), and change its properties. Then see documentation to retreive the properties associated with the menu entry. Have a look here: http://trac.gbiloba.org/papywizard/browser

Re: [pygtk] spinbutton set value and signal

2008-11-06 Thread Frédéric
to find a way of getting the handler_id. This message says it is not possible, but it's from 2003 and maybe things have changed http://osdir.com/ml/gnome.gtk+.python/2003-04/msg00092.html Didn't find a way yet :o( -- Frédéric ___ pygtk mailing list

Re: [pygtk] spinbutton set value and signal

2008-11-06 Thread Frédéric
an abstract class where I make the autoconnection, so it should not be too difficult to implement. Thank you all for your help. -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] spinbutton set value and signal

2008-11-05 Thread Frédéric
Hello, Is there a way to set the value of a spinbutton without having its 'value-changed' signal emitted? Thanks, -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read

Re: [pygtk] spinbutton set value and signal

2008-11-05 Thread Frédéric
On mercredi 05 novembre 2008, Frédéric wrote: Is there a way to set the value of a spinbutton without having its 'value-changed' signal emitted? I mean set the value from the code, not from the GUI... -- Frédéric http://www.gbiloba.org

Re: [pygtk] spinbutton set value and signal

2008-11-05 Thread Frédéric
to know the handler_id, which is not possible using glade, am I wrong: http://www.pygtk.org/pygtk2tutorial/ch-MovingOn.html#sec-MoreOnSignalHandlers -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http

Re: [pygtk] spinbutton set value and signal

2008-11-05 Thread Frédéric
On mercredi 05 novembre 2008, Raúl Núñez de Arenas Coronado wrote: I think your best bet is to investigate how to access the handler_id under Glade. It should be possible, but I cannot help you with that, my experience with Glade is zero... I'll try that way. thanks. -- Frédéric

Re: [pygtk] spinbutton set value and signal

2008-11-05 Thread Frédéric
to be called after set_value() call? -- Frédéric http://www.gbiloba.org ___ 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] tab signal

2008-11-05 Thread Frédéric
_onKeyPressed(self, widget, event, *args): if event.keyval == gtk.keysyms.Tab: return True def _onKeyReleased(self, widget, event, *args): if event.keyval == gtk.keysyms.Tab: return True -- Frédéric http://www.gbiloba.org

Re: [pygtk] Python To Exe That's PyGTK-Friendly

2008-10-30 Thread Frédéric
(and NISEDIT). You should also have a look at this recent project, GUI2exe: http://code.google.com/p/gui2exe A great front-end to several freezers (py2exe, pyinstaller, cxfreeze...). If you need some examples scripts for py2exe, let me know. And join the py2exe ml ;o) -- Frédéric http

Re: [pygtk] Filechooserbutton callback

2008-10-23 Thread Frédéric
, and it works fine... except under Windows! get_current_folder() always returns the first dir I set in the chooser, with set_current_folder() method. Note that it works fine under linux and Nokia/maemo. -- Frédéric http://www.gbiloba.org ___ pygtk

Re: [pygtk] gtk.MessageDialog doesn't work on windows

2008-10-23 Thread Frédéric
will be checked every 50 ms (try different values depending of your config). Hope this helps. -- Frédéric # -*- coding: utf-8 -*- Panohead remote control. License === - B{papywizard} (U{http://trac.gbiloba.org/papywizard}) is Copyright: - (C) 2007-2008 Frédéric Mantegazza This software

[pygtk] Filechooserbutton callback

2008-10-22 Thread Frédéric
he chosed? Thanks, -- Frédéric ___ 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] Filechooserbutton callback

2008-10-22 Thread Frédéric
, with set_current_folder() method. Note that it works fine under linux and Nokia/maemo. -- Frédéric http://www.gbiloba.org ___ 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] Application name is '-c'

2008-10-14 Thread Frédéric
-c import sys; sys.argv[0] = \Papywizard\; from papywizard.scripts.main import main; main() and all works fine. Thanks you very much :o) -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK

Re: [pygtk] Application name is '-c'

2008-10-14 Thread Frédéric
are made with glade-3 (they are all in the papywizard/view dir). -- Frédéric ___ 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] Application name is '-c'

2008-10-14 Thread Frédéric
the papywizard/ module. So the import will fail. That's why I used a shell script. But it should work once installed in /usr/local, I think... -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ

[pygtk] Application name is '-c'

2008-10-14 Thread Frédéric
). Any idea? -- Frédéric ___ 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] Problem with RadioButton: BACKGROUND COLOR SETTING IGNORED?

2008-10-09 Thread Frédéric
and gtk.STATE_SELECTED, but those don't (apparently) make any difference either. Can anyone shed light on what I may be missing? What method do you use to set the background ? modify_bg() ? Also try to use modify_base(). See: http://faq.pygtk.org/index.py?req=showfile=faq04.016.htp -- Frédéric

Re: [pygtk] Writing a composite widget

2008-10-08 Thread Frédéric
to write a Mediator, as it won't need you to do complex things at GTK level. And it will be easier to adapt if you want to switch to another toolkit. In another hand, it is very interesting to understand low-level mecanisms of a toolkit ;o) -- Frédéric

Re: [pygtk] _msbt.pyd lib

2008-10-02 Thread Frédéric
Le 1/10/2008, Frédéric [EMAIL PROTECTED] a écrit: ImportError: MemoryLoadLibrary failed loading bluetooth\_msbt.pyd How can I force py2exe to bundle this lib? -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] Log window

2008-09-23 Thread Frédéric
Le 18/9/2008, Frédéric [EMAIL PROTECTED] a écrit: I added colors for each level, but I can't set a global 'black' background to the TextBuffer; only to the text I write. Is there a way to do that? No idea to set the global background color? -- Frédéric

Re: [pygtk] Log window

2008-09-23 Thread Frédéric
Le 23/9/2008, Frédéric [EMAIL PROTECTED] a écrit: No idea to set the global background color? Ok, using the 'background_paragraph' keyword is better, as it set the background color of the entire line. But the part of the window without text remains white :o( -- Frédéric

[pygtk] Localization and internationalization

2008-09-23 Thread Frédéric
need advice: how do you organize yourself to do all the steps? Where do you store temporary files? Are you using nice scripts to automatically generate all files? There are a lot of steps, and a good method is needed to avoid spending too much time... Thanks! -- Frédéric

[pygtk] Splash screen

2008-09-22 Thread Frédéric
someone has a working code example? -- Frédéric ___ 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] Splash screen

2008-09-22 Thread Frédéric
Le 22/9/2008, Frédéric [EMAIL PROTECTED] a écrit: I'm trying to add a splash screen while my app is starting, because glade resources take time to be loaded. I'm trying to use that code: http://faq.pygtk.org/index.py?req=showfile=faq20.005.htp but it does not work. My splash screen

[pygtk] 'What's This?' menu entry

2008-09-22 Thread Frédéric
the related tooltip? What is the best way to store them? Any idea wlecome. Thanks, -- Frédéric ___ 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] Splash screen

2008-09-22 Thread Frédéric
programs have splashscreens and decide not to do it. : Ok, I forget this idea ;o) Thanks. -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] How to add items to an empty ComboBox / C omboBoxEntry ( created with glade) ?

2008-09-21 Thread Frédéric
use the add_attribute() method, I get the entries twice on each line... Don't know why. -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] How to add items to an empty ComboBox / ComboBoxEntry ( created with glade) ?

2008-09-21 Thread Frédéric
On dimanche 21 septembre 2008, Mats Taraldsvik wrote: If I try to add an item to an empty combobox, I get an error. And it does not work with 'combobox.get_model().append_text('text')'. Look at the code I've just posted... -- Frédéric http://www.gbiloba.org

Re: [pygtk] Log window

2008-09-18 Thread Frédéric
On jeudi 18 septembre 2008, Frédéric wrote: Ok, I finally made something running, using ScrolledWindow/TextView/TextBuffer... Another point: I would like the textView scrolled to the bottom of the text when I open it. I use something like: textview.scroll_to_iter(textBuffer.get_end_iter

Re: [pygtk] Log window

2008-09-18 Thread Frédéric
On jeudi 18 septembre 2008, Thomas Dybdahl Ahle wrote: tor, 18 09 2008 kl. 17:50 +0200, skrev Frédéric: Is there a way to automatically do this right after the dialog is opened? Is there a gtk feature to push an event and have it executed as first dialog event, right after it enters

[pygtk] Log window

2008-09-17 Thread Frédéric
with a simple text edit widget... What do you suggest in this case? Thanks for your help. PS: I will first implement the simple version, without level selector... -- Frédéric ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] PyGTK and threading

2008-09-05 Thread Frédéric
also have a serializer, to push PyGTK events from external thread, and have them executed in the gtk mainloop. Hope this helps. -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman

Re: [pygtk] Call for pygtk/windows developper

2008-09-05 Thread Frédéric
On lundi 18 août 2008, Frédéric wrote: I'm developping an application to control an astronomic mount, in order to use it as a panoramic head. The goal is to make high resolution panoramas, using tele-lenses, or to make full-spherical shots in unusual places. The software is developped using

Re: [pygtk] Call for pygtk/windows developper

2008-09-03 Thread Frédéric
On lundi 18 août 2008, Frédéric wrote: I'm developping an application to control an astronomic mount, in order to use it as a panoramic head. The goal is to make high resolution panoramas, using tele-lenses, or to make full-spherical shots in unusual places. The software is developped using

Re: [pygtk] pygtk and cygwin

2008-08-28 Thread Frédéric
it fine, but for some reason it is not finding pygtk. Any help would greatly be appreciated. I personally use that installer (without cygwin): http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html -- Frédéric http://www.gbiloba.org

[pygtk] Call for pygtk/windows developper

2008-08-18 Thread Frédéric
a windows installer (most potential users won't be able to install pygtk and run it from a shell ;o) ). The project is hosted here : http://trac.gbiloba.org/papywizard Thanks for reading, -- Frédéric http://www.gbiloba.org ___ pygtk mailing list

Re: [pygtk] Min and max values of multiple spinbuttons

2008-08-17 Thread Frédéric
is there a way to stop spinbutton 1 when it reaches the vlaue (or value -1) of spinbutton 2 and so on? Just add callbacks on the spinbuttons change state, and change the min/max values of others. -- Frédéric http://www.gbiloba.org ___ pygtk

Re: [pygtk] Glade and GtkComboBox

2008-07-15 Thread Frédéric
the exact same way in both cases... -- Frédéric http://www.gbiloba.org ___ 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] Glade - Custom Images on Buttons

2008-07-15 Thread Frédéric
to 'filename', and finally select the file to use. -- Frédéric http://www.gbiloba.org ___ 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] Glade and GtkComboBox

2008-07-14 Thread Frédéric
a solution to that problem? Thanks, -- Frédéric http://www.gbiloba.org ___ 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] Change state of a button

2008-07-13 Thread Frédéric
it can be usefull for other people. Thanks you very much for you help! -- Frédéric http://www.gbiloba.org ___ 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

Re: [pygtk] refreshing gtk.IconView

2008-07-13 Thread Frédéric
such 'serializer' if you want... -- Frédéric http://www.gbiloba.org ___ 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] Label button font

2008-07-11 Thread Frédéric
Is it possible to change the font of the label of a button? In other words, how can I retreive the label used on a button? Thanks, ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

Re: [pygtk] Label button font

2008-07-11 Thread Frédéric
Le 11/7/2008, Volker Helm [EMAIL PROTECTED] a écrit: This should help you: http://faq.pygtk.org/index.py?req=showfile=faq04.001.htp Thanks :o) ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

[pygtk] Change state of a button

2008-07-11 Thread Frédéric
I have some key binding which do the same things as some buttons do. So, when pressing the key, I would like to see the corresponding button pressed, as if I did it with the mouse. I tried to call button.pressed(), but it only emits the signal. Is it possible to change the state of the button?

Re: [pygtk] reparent problem

2008-06-30 Thread Frédéric
Le 29/6/2008, Tim Evans [EMAIL PROTECTED] a écrit: This is the function I use when I'm replacing a placeholder widget in a glade file: [...] Just call replace_widget(dummyWidget, self.shootingArea) and wherever dummyWidget was (and with whatever packing properties) your shootingArea widget

[pygtk] reparent problem

2008-06-29 Thread Frédéric
idea? -- Frédéric http://www.gbiloba.org ___ 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] reparent problem

2008-06-29 Thread Frédéric
. Is there a better method? -- Frédéric http://www.gbiloba.org ___ 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] Entry dir autocompletion

2008-06-28 Thread Frédéric
this be done? I guess by constructing a list of available paths, and use that list the same way... -- Frédéric http://www.gbiloba.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

[pygtk] Drawing widget

2008-06-27 Thread Frédéric
Hello, I would like to make a progress widget wich will display a representation (little square) of pictures beeing shot during a panoramic shooting. See file attached. Ideally, I would like to display all squares (just the border, in fact), in black, and depending of the sequence (moving,

Re: [pygtk] Drawing widget

2008-06-27 Thread Frédéric
Le 27/6/2008, A.T.Hofkamp [EMAIL PROTECTED] a écrit: Use a DrawingArea widget and draw it yourself. Ok. ___ 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] Default colors

2008-06-27 Thread Frédéric
How can I retreive the default colors? When I initialize my drawing area, it is all black; I would like to give it the default widgets backgroud color... Thanks, ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk

  1   2   >