Need help with "gothic" : Is it possible to draw with "gothic" ? (gothic is a binding bweteen tcl/tk and Go, what tkinter is to Python)

96 views
Skip to first unread message

Serge Hulne

unread,
Jul 26, 2014, 3:43:31 AM7/26/14
to golan...@googlegroups.com, nsf
Here is the link to gothic (written by nsf, author of "gocode")

Gothic is a binding beweteen tcl/tk and Go.

I was wondering how the following snippet would translate in gothic

If any body has figured it out, I would be grateful if they could give me a hint.

Thanks in advance !

Serge.



######################

#!/usr/bin/wish

# ZetCode Tcl/Tk tutorial
#
# This program draws three
# rectangles filled with different
# colors.
#
# author: Jan Bodnar
# last modified: March 2011
# website: www.zetcode.com


canvas .can
.can create rect 30 10 120 80 \
    -outline #fb0 -fill #fb0
.can create rect 150 10 240 80 \
    -outline #f50 -fill #f50
.can create rect 270 10 370 80 \
    -outline #05f -fill #05f       
pack .can 


wm title . "colors" 
wm geometry . 400x100+300+300

######################

Peter Kleiweg

unread,
Jul 26, 2014, 3:09:59 PM7/26/14
to golan...@googlegroups.com, no.smi...@gmail.com
Read the examples. It is really very simple.

Op zaterdag 26 juli 2014 09:43:31 UTC+2 schreef Serge Hulne:
Reply all
Reply to author
Forward
0 new messages