Geeking with Eterm and Tkinter

09 February 2006   0 comments   Linux

Powered by Fusion×

Something that I do at least a couple of times every day when working here in Linux is to take a blank screen and set up a few command line terminals for developing with Zope. One terminal in which I'll run the editor (Jed of course), one in which I'll run Zope in debug mode and one in which I'll run my product refreshing script. I want the terminal windows of certain sizes and positions and I want to be in a particular directory in each terminal so that I have easy access to stuff like ./bin/runzope and jed Products/SomeProduct/....

Still with me? Cool, that means that you probably do something similar or that you're just extremely bored and have too much time. To make it easier to get started like this I've written a little bash shell script that starts Eterm (my preferred terminal) at certain positions and sizes. To be able to figure out which zope development directory I've written a little Tkinter script (my first ever!) that shows a list of buttons and when I select one it "feeds into the shell script" to get the Eterms to start in the right directory.

So how did I do that? Two scripts, first '~/bin/':

cd `python ~/bin/`
Eterm --geometry 92x55+0+0 --name Programming --title Programming &
Eterm --geometry 69x14+579+535 --name Refreshing --title Refreshing &
Eterm --geometry 69x20+579+0 --name Debugger --title Debugger  &

Secondly, the Tkinter script called ~/bin/ which you download here if you're interested.

The last thing I do is that I bind a key-commend (since I use Enlightenment16 I use e16keyedit) such that pressing Ctrl+Shift+z runs the command ~/bin/ These pictures hopefully shows what's going on.

One of many screens on my X The Tkinter script in action After all the terminal windows have been opened


Thank you for posting a comment

Your email will never ever be published

Related posts

tempfile in Python standard library 07 February 2006
Jed Tags with ntags (for dummies) 11 February 2006
Related by keywords:
Local jed settings 19 April 2013
Wing IDE versus Jed 11 December 2008
To code or to pdb in Python 20 December 2010
Gmail shortcuts 26 April 2005
Mvbackupfiles - a script to "delete" back autosaved backup files 24 November 2005
Heil Jed and Dave Kuhlman 09 May 2004
Jed Tags with ntags (for dummies) 11 February 2006
Make your settings in .Xdefaults come true 16 November 2004
type - Writing shell scripts 28 April 2006
Jed looking like Emacs 28 September 2005
Keybinding ALT-F in Jed 27 January 2004
Geeking with tags file for Jed 29 May 2006