From owner-freebsd-questions@FreeBSD.ORG Fri Feb 29 03:01:52 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7421D1065676 for ; Fri, 29 Feb 2008 03:01:52 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 147C88FC1A for ; Fri, 29 Feb 2008 03:01:51 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id m1T31l2s075435 for ; Thu, 28 Feb 2008 19:01:47 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Thu, 28 Feb 2008 19:01:47 -0800 (PST) Date: Thu, 28 Feb 2008 19:01:47 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20080229030144.GA45790@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21++ of service to the Unix community. X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: python and Guile-gtk... [a bit OT] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 03:01:52 -0000 Guys, Thanks to the bunch of you who steered me toward python; it's a really nice OO scripting language, and I'm picking it up pretty rapidly. Apppended is a "Tkinteri" [GUI] file that python doesn't like. Any ideas why? I did install this port. I'd like help getting python to read from a file and display a steram of text on a textcanvas. I'll fiure out the buttons later. I'd appreciate any insights about regular gtk and guile-gtk. Or whichever GUI libraries have the best python interface. thanks muchly, gary Apended simpleTextArea.py -- Gary Kline kline@thought.org www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org from Tkinter import * root = Tk() root.title('Text') text = Text(root, height=26, width=50) scroll = Scrollbar(root, command=text.yview) text.configure(yscrollcommand=scroll.set) text.tag_configure('bold_italics', font=('Verdana', 12, 'bold', 'italic')) text.tag_configure('big', font=('Verdana', 24, 'bold')) text.tag_configure('color', foreground='blue', font=('Tempus Sans ITC', 14)) text.tag_configure('groove', relief=GROOVE, borderwidth=2) text.tag_bind('bite', '<1>', lambda e, t=text: t.insert(END, "Text")) text.pack(side=LEFT) scroll.pack(side=RIGHT, fill=Y) root.mainloop()