[
bamboo
]
14:52, Saturday, 17 July 2004
boo users on windows can already count on a simple but very effective way to edit and run their boo scripts: boox. boox even features code completion! (You're the man, GB!).
The somewhat bad news (at least for me) is that I'm no longer a happy boox user since my notebook went to the repair shop two weeks ago.
The good news is that now I got a real chance and the motivation to create a similar tool for my fellow linux users. I hope to finally learn some gtk programming techniques along the way.
So here's my first shot at creating Boo Explorer for linux: a dumb GtkSourceView based editor with boo syntax highlighting enabled.
import System
import Gtk from "gtk-sharp"
import GtkSourceView from "gtksourceview-sharp"
def window_Delete(sender, args as DeleteEventArgs):
Application.Quit()
args.RetVal = true
Application.Init()
booSourceLanguage = SourceLanguagesManager().GetLanguageFromMimeType("text/x-boo")
buffer = SourceBuffer(booSourceLanguage, Highlight: true)
sourceView = SourceView(buffer, ShowLineNumbers: true, AutoIndent: true)
window = Window("Simple Boo Editor",
DefaultWidth: 600,
DefaultHeight: 400,
DeleteEvent: window_Delete)
window.Add(sourceView)
window.ShowAll()
Application.Run()
Now I just need to learn how to add a menubar, a toolbar, a statusbar, a tree view (document outline), how to handle accelerator keys then I'm pretty much set :-)
TrackBack