Re: python and Guile-gtk... [a bit OT]

2008-02-29 Thread nepbabu
Thus spoke Vinny on Thursday, 28 February 2008 at 22:08:06 -0500:
 Gary Kline wrote:
 [snip]

  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.  Orwhichever GUI libraries 
 have the best python interface.

 Hi Gary,

 I'm a big fan of wxPython, i.e. wxWidgets for python.  Way
 cool and works on Windows as well (very cross-platform).

It works on a whole hosts of other platforms as well and not only Windows and 
freebsd. From it's wxwidgets website [1] -
 
 wxWidgets lets developers create applications for Win32, Mac OS X,
  GTK+, X11, Motif, WinCE, and more  using one codebase. It can be used
  from languages such as C++, Python, Perl, and C#/.NET. Unlike other
  cross-platform toolkits, wxWidgets applications look and feel native.
  This is because wxWidgets uses the platform's own native controls rather
  than emulating them. It's also extensive, free, open-source, and
  mature.

And from wxpython website[2] -

 wxPython is a cross-platform toolkit. This means that the same program
  will run on multiple platforms without modification. Currently supported
  platforms are 32-bit Microsoft Windows, most Unix or unix-like systems,
  and Macintosh OS X.


[1] http://www.wxwidgets.org
[2] http://www.wxpython.org/what.php
-- 
Cheers,
Bikal KC (Please use: nepbababucxspamfree_at_yahoo DOT ca)
Journal: http://nepbabu.livejournal.com || pubkey: see header
Rule 6: There is no Rule 6. - Rob Pike
Those who can make you believe absurdities, can make you commit atrocities. - 
François-Marie Arouet


pgpO1H08xGTuh.pgp
Description: PGP signature


Re: python and Guile-gtk... [a bit OT]

2008-02-29 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vinny wrote:
 Gary Kline wrote:
 [snip]
 

 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.
 
 Hi Gary,
 
 I'm a big fan of wxPython, i.e. wxWidgets for python.  Way
 cool and works on Windows as well (very cross-platform).
 

Everyone's got their favorite.  I like gtk, which has exactly the same
features you claim (works on same platforms) but really, the one that's
best integrated is the Tkinter, which was the first one that came with
Python, and runs on everything bigger than a cellphone.  It's not my
favorite myself, but if we're going to be really honest, it's really
probably the best one to recommend to folks.

 Vinny
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHyFW+z62J6PPcoOkRApfNAJ9GHE1uuX2e3EEPdzenSDjkCZ3JpwCgoYqI
dlYiDZhE2NLAM0UlNQlW45U=
=5Lhf
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: python and Guile-gtk... [a bit OT]

2008-02-29 Thread Gary Kline
On Friday 29 February 2008 09:35:38 nepbabu wrote:
 Thus spoke Vinny on Thursday, 28 February 2008 at 22:08:06 -0500:
  Gary Kline wrote:
  [snip]
 
 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.
 
  Hi Gary,
 
  I'm a big fan of wxPython, i.e. wxWidgets for python.  Way
  cool and works on Windows as well (very cross-platform).

 It works on a whole hosts of other platforms as well and not only Windows
 and freebsd. From it's wxwidgets website [1] -

  wxWidgets lets developers create applications for Win32, Mac OS X,
   GTK+, X11, Motif, WinCE, and more  using one codebase. It can be used
   from languages such as C++, Python, Perl, and C#/.NET. Unlike other
   cross-platform toolkits, wxWidgets applications look and feel native.
   This is because wxWidgets uses the platform's own native controls rather
   than emulating them. It's also extensive, free, open-source, and
   mature.

 And from wxpython website[2] -

  wxPython is a cross-platform toolkit. This means that the same program
   will run on multiple platforms without modification. Currently supported
   platforms are 32-bit Microsoft Windows, most Unix or unix-like systems,
   and Macintosh OS X.


 [1] http://www.wxwidgets.org
 [2] http://www.wxpython.org/what.php

Thanks for the URLs's; already bookmarked.  If a picture is worth a thousand 
words, an example is worth 1000 lines, so hopefully wxpython has examples of 
canvases or widgets to do what I want.  

-- 
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


python and Guile-gtk... [a bit OT]

2008-02-28 Thread Gary Kline
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  [EMAIL PROTECTED]   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()
 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: python and Guile-gtk... [a bit OT]

2008-02-28 Thread Vinny

Gary Kline wrote:
[snip]



	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.


Hi Gary,

I'm a big fan of wxPython, i.e. wxWidgets for python.  Way
cool and works on Windows as well (very cross-platform).

Vinny
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]