Mostrando postagens com marcador gnome. Mostrar todas as postagens
Mostrando postagens com marcador gnome. Mostrar todas as postagens
quinta-feira, 15 de junho de 2006
domingo, 28 de agosto de 2005
Cool python tricks!
Hey all!
I've been messing around python and pygtk lately. I've managed to code a simple class that implements Tomboy's key grabbing functionality that allows you to simply type '<alt>f11' anywhere on your screen and open a new note.
I am proud to say it's quite simple to use it, simply pass a string as in GTK's accelerator_parse function (like '<ctrl><alt>f11') and a function.
Since I use a different thread to listen for the Xlib key press event, I have to call that strange
This code depends on python-xlib and pygtk (for doing the string parsing thingy). Oh! And that class is a GObject.
It is not a finished work (that are some details about keymap modifiers that I have to review and no documentations yet :) ), but you can get it here.
I've been messing around python and pygtk lately. I've managed to code a simple class that implements Tomboy's key grabbing functionality that allows you to simply type '<alt>f11' anywhere on your screen and open a new note.
I am proud to say it's quite simple to use it, simply pass a string as in GTK's accelerator_parse function (like '<ctrl><alt>f11') and a function.
binder = ExternalKeyBinder()
binding = binder.bind("<alt>F8", printer)
gtk.threads_init()
gtk.main()
Since I use a different thread to listen for the Xlib key press event, I have to call that strange
gtk.threads_init() function.This code depends on python-xlib and pygtk (for doing the string parsing thingy). Oh! And that class is a GObject.
It is not a finished work (that are some details about keymap modifiers that I have to review and no documentations yet :) ), but you can get it here.
domingo, 29 de maio de 2005
quarta-feira, 16 de março de 2005
Nice to see someone actually agreeing with me...
From Gnome's roadmap wiki entry:
"Undo/Redo - Support this in every application that allows changing data. Use the HIG to specify how this should work for text widgets; currently gedit, evolution, mozilla, openoffice all have completely different semantics for Undo/Redo (undo a single character at a time, or a phrase, or a word, etc). Evolution doesn't support undoing email deletes/moves.
FedericoMenaQuintero: Do we need an API to make this relatively easy for applications to implement? As a pie-in-the-sky, related thought, would having such an API pave the way towards having version control for everything?"
Assinar:
Postagens (Atom)