I was fiddling around a bit with Tkinter this weekend, and changed my little set_geany_colors.py utility from a command line program into a GUI app (now providing a goofy sort of "preview"). Also added a new colorscheme ("shades of green").
http://www.milliwatt-software.com/jmg/files/set_geany_colors.py.bz2
---John
On 07/22/2007 11:14:51 PM, John Gabriele wrote:
I was fiddling around a bit with Tkinter this weekend, and changed my little set_geany_colors.py utility from a command line program into a GUI app (now providing a goofy sort of "preview"). Also added a new colorscheme ("shades of green").
http://www.milliwatt-software.com/jmg/files/set_geany_colors.py.bz2
Thanks John. I've had a quick look at the code and you've done what I've been meaning to do - unify the different lexer styles with a common set. This is great work - I think somehow we could integrate or at least copy the concept of doing this, perhaps as a plugin. For now I don't think I'll work on it myself though.
I did get a problem when clicking 'make it so': $ ./set_geany_colors.py Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) File "./set_geany_colors.py", line 796, in make_it_so icon=tkMessageBox.WARNING) File "/usr/lib/python2.4/lib-tk/tkMessageBox.py", line 105, in askyesno s = _show(title, message, QUESTION, YESNO, **options) TypeError: _show() got multiple values for keyword argument 'icon'
$ rpm -q tkinter python tkinter-2.4.3-9.FC5 python-2.4.3-9.FC5
Regards, Nick
On 7/24/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
Thanks John. I've had a quick look at the code and you've done what I've been meaning to do - unify the different lexer styles with a common set. This is great work -
Thanks. :)
I think somehow we could integrate or at least copy the concept of doing this, perhaps as a plugin. For now I don't think I'll work on it myself though.
I did get a problem when clicking 'make it so': $ ./set_geany_colors.py Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) File "./set_geany_colors.py", line 796, in make_it_so icon=tkMessageBox.WARNING) File "/usr/lib/python2.4/lib-tk/tkMessageBox.py", line 105, in askyesno s = _show(title, message, QUESTION, YESNO, **options) TypeError: _show() got multiple values for keyword argument 'icon'
$ rpm -q tkinter python tkinter-2.4.3-9.FC5 python-2.4.3-9.FC5
Thanks for the report. I guess that version of Tkinter doesn't like me changing the dialog box icon. Should work now.
---John
On 07/24/2007 04:35:51 PM, John Gabriele wrote:
On 7/24/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
I think somehow we could integrate or at least copy the concept of doing this, perhaps as a plugin. For now I don't think I'll work on it myself though.
I did get a problem when clicking 'make it so': $ ./set_geany_colors.py [...]
Thanks for the report. I guess that version of Tkinter doesn't like me changing the dialog box icon. Should work now.
Thanks, works fine now :) Colour schemes look great, too (although on my LCD monitor the shades of green scheme was a bit too dark, but I expect it's fine on a brighter monitor).
Regards, Nick
On 7/24/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
Thanks, works fine now :) Colour schemes look great, too (although on my LCD monitor the shades of green scheme was a bit too dark, but I expect it's fine on a brighter monitor).
Yeah, it's hard to get those just right. I was just fiddling with them again, actually. Everyone's monitor is different.
If you come up with a good colorscheme of your own that you like and would like it included, send it my way (that goes for anyone, not only Nick).
---John
On Tue, 24 Jul 2007 18:32:08 +0200, John Gabriele jmg3000@gmail.com wrote:
On 7/24/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
Thanks, works fine now :) Colour schemes look great, too (although on my LCD monitor the shades of green scheme was a bit too dark, but I expect it's fine on a brighter monitor).
Yeah, it's hard to get those just right. I was just fiddling with them again, actually. Everyone's monitor is different.
If you come up with a good colorscheme of your own that you like and would like it included, send it my way (that goes for anyone, not only Nick).
---John _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
I like this script and the color schemes, although the shades of green themes are too dark for me too. There is one thing i am missing: Variables in PHP are not colored...
On 7/24/07, Dominic Hopf (dmaphy) dmaphy_damastasif@gmx.net wrote:
I like this script and the color schemes, although the shades of green themes are too dark for me too. There is one thing i am missing: Variables in PHP are not colored...
Yeah. For the current crop of colorschemes, I've got identifiers set to be colored the same as the default foreground. I mostly use Python, and so much stuff gets rendered as "identifier", that it looked like too much if you have a different color set for it, so I just used foreground.
You could change the ``'_identifier_' : colors['foo']['some_color'],`` lines (replacing <some_color> with your own choice) to assign a different color.
Eventually, this utility might provide a way to easily (with the GUI) create your own custom colorschemes. Currently it doesn't.
---John
On 7/24/07, John Gabriele jmg3000@gmail.com wrote:
On 7/24/07, Dominic Hopf (dmaphy) dmaphy_damastasif@gmx.net wrote:
You could change the ``'_identifier_' : colors['foo']['some_color'],`` lines (replacing <some_color> with your own choice) to assign a different color.
Eventually, this utility might provide a way to easily (with the GUI) create your own custom colorschemes. Currently it doesn't.
Ok. I just updated set_geany_colors.py. Now you can write your own external colorscheme files and the program will read them when it starts up. Upon startup, if the colorschemes directory (``~/.geany/colorschemes``) is not there, you're asked if you'd like to create it , and if creating it, also given an example colorscheme to get started with. :)
Creating the colorschemes still involves manually using Geany's color chooser, but it's getting easier now.
---John
On 7/24/07, John Gabriele jmg3000@gmail.com wrote:
Ok. I just updated set_geany_colors.py. [snip]
Updated the preview so it's slightly better than before.
---John
On 07/25/2007 05:21:58 AM, John Gabriele wrote:
On 7/24/07, John Gabriele jmg3000@gmail.com wrote:
Ok. I just updated set_geany_colors.py. [snip]
Updated the preview so it's slightly better than before.
The built-in colour schemes all look fine now on my monitor, i can see every line well ;-)
Regards, Nick