Re: [pygtk] gtk theme switch
my 2 cents on the subject of theme switching: I have an application where I allow the user to switch themes while the app is running. (this is using gtk1.2.10) I do the following: 1) rc_clear_styles() 2) gtk.rc_parse('new gtkrc') 3) change the mod time of 'new gtkrc' #changing the mod time causes all entries in the hash table to be cleared 4)os.environ['GTK_RC_FILES']='new gtkrc' 5) gtk.rc_reparse_all() 6) for each widget w currently showing, w.reset_rc_styles() Works for me for every window except my main toplevel. Mathew Philippe Gendreau wrote: I'd really like to make that work... I settled for updating just the window theme (it's running full screen anyway). I could not find more information than what's in the pygtk tutorial (rc_parse('rc file')). I'd really appreciate it if someone could point me in the direction of some docs or programs that make use of this kind of stuff. My main question now is: How do I update the application theme for all present and future widgets? Thanks again. -- Philippe Gendreau ___ 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 mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Re: [gnome-love] Corrent Gtk2 Widget
Just guessing, but isn't it the libzvt(2) module you need? -- Ross On Fri, 2002-08-02 at 10:05, Nate Custer wrote: Hey all, I am writing a 5250 terminal emulator in python, and would like to use gtk2 for the gui. However I am not sure I can find the right widget to use for the main terminal window. Here are the requirments: 1) must be able to capture all key presses to be parsed by emulator. 2) must be able to support different color text in the same widget. 3) must support different color background colors for the text in the widget. 4) must be able to display a block cursor. I have looked at the GtkLabel + EventBox model, the GtkText object and its cousins in gtk2. But none seem to do what I need. Should I be looking at some other widget or am I asking the imposible? Thanks much, Nate Custer -- Gentlemen, [the equation e^(i*pi) + 1 = 0 ] is surely true, it is absolutely paradoxical; we cannot understand it, and we don't know what it means. But we have proved it, and therefore we know it must be truth. -Benjamin Peirce ___ gnome-love mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gnome-love ___ 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] combo example
Hi there! I noticed that you did not have a combo example, Ive made one, hope you can use it. Thanks for PyGTK its realy nice. -- Martin Willemoes Hansen E-Mail [EMAIL PROTECTED]Website mwh.sysrq.dk IRC MWH, openprojects combo.tar.bz2 Description: application/bzip
Re: [pygtk] print DiaCanvas to GnomePrintContext
Hi, i wrote module for printing DiaCanvas to GnomePrintContext i can post it to list sounds interesting. I'd say do so, please. :M: -- Michael 'Mickey' Lauer . . . . . . . . . [EMAIL PROTECTED] How could anyone know me - when I don't even know myself ? ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/