Text-mode "windowing" libraries for Python? 
Author Message
 Text-mode "windowing" libraries for Python?

Now I'm looking for something that let's me define a text-mode user
interface.  In particular, something that lets me build the interface using
widgets, for example --

        req = toolkit.NewRequestor( "Are you sure?" )
        vpack = toolkit.NewVPacker()
        req.AddChild( vpack )

        label = toolkit.NewLabel( "Are you sure you want only 3 wishes?" )
        vpack.AddChild( label )

        hpack = toolkit.NewHPacker()
        okButton = toolkit.NewButton( "OK", DoMyOKBidding )
        noButton = toolkit.NewButton( "Cancel", DoMyNOBidding )
        hpack.AddChildren( [okButton, noButton] )
        vpack.AddChild( hpack )

        req.Display()

Basically, I'm in need of some utilities which I'm writing that much be able
to execute via Telnet, but which also needs to have a half-way decent user
interface to them.

Any recommendations?  Many thanks in advance for your considerations.

--
KC5TJA/6, DM13, QRP-L #1447 | Official Channel Saint, *Team Amiga*
Samuel A. Falvo II          |
Oceanside, CA               |



Sun, 18 May 2003 03:00:00 GMT  
 Text-mode "windowing" libraries for Python?

Quote:
> Now I'm looking for something that let's me define a text-mode user
> interface.  In particular, something that lets me build the interface using
> widgets, for example --

>    req = toolkit.NewRequestor( "Are you sure?" )
>    vpack = toolkit.NewVPacker()
>    req.AddChild( vpack )

>    label = toolkit.NewLabel( "Are you sure you want only 3 wishes?" )
>    vpack.AddChild( label )

>    hpack = toolkit.NewHPacker()
>    okButton = toolkit.NewButton( "OK", DoMyOKBidding )
>    noButton = toolkit.NewButton( "Cancel", DoMyNOBidding )
>    hpack.AddChildren( [okButton, noButton] )
>    vpack.AddChild( hpack )

>    req.Display()

> Any recommendations?  Many thanks in advance for your considerations.

I guess it depends on  OS you use.
For example unixes have ncurses (windows doesn't have),
linux has snack...

If you have linux -

import snack

scr=snack.SnackScreen()
result = snack.EntryWindow(scr,"Your wishes","Entry your wishes here",["First wish","Second wish","Last will"])
scr.finish()
print result

--

Best regards, Alexei Kichkine



Mon, 19 May 2003 13:25:47 GMT  
 Text-mode "windowing" libraries for Python?

Quote:
>Now I'm looking for something that let's me define a text-mode user
>interface.  In particular, something that lets me build the interface using
>widgets, for example --

CDK appears to be very good, but it's C.  There's a Perl and C++
interface, so I suspect that SWIG could slam it over to python pretty
easily.

http://www.vexus.ca/CDK.html

Of some possible interest (I've never played with it):
http://lists.katipo.co.nz/public/koha/2000-August/000038.html

Quote:
>Samuel A. Falvo II      |

--
-William "Billy" Tanksley


Mon, 19 May 2003 03:00:00 GMT  
 Text-mode "windowing" libraries for Python?

Quote:

>linux has snack...

Snack should build without too much effor on anything that
supports slang (Most Unices, and perhaps Win32).  Not that I've
used it on anything but Linux...

--
Grant Edwards                   grante             Yow!  How many retired
                                  at               bricklayers from FLORIDA
                               visi.com            are out purchasing PENCIL
                                                   SHARPENERS right NOW??



Mon, 19 May 2003 03:00:00 GMT  
 Text-mode "windowing" libraries for Python?

Quote:


>AK> I guess it depends on OS you use.  For example unixes have ncurses
>AK> (windows doesn't have), linux has snack...

>On debian, snack seems to be in the python-newt package, but how can I
>get snack for some other linux?  There don't seem to be any plain
>source packages out there.

It's tough to find.  The last time I looked, you had to get it from the
source RPM directory on a RedHat site/CD.  The most recent copy _I_ have
is at

  <ftp://ftp.visi.com/users/grante/stuff/newt-0.50.tar.gz>

--
Grant Edwards                   grante             Yow!  ... or were you
                                  at               driving the PONTIAC that
                               visi.com            HONKED at me in MIAMI last
                                                   Tuesday?



Tue, 20 May 2003 03:00:00 GMT  
 Text-mode "windowing" libraries for Python?

Quote:


>>Now I'm looking for something that let's me define a text-mode user
>>interface.  In particular, something that lets me build the interface using
>>widgets, for example --
> CDK appears to be very good, but it's C.  There's a Perl and C++
> interface, so I suspect that SWIG could slam it over to Python pretty
> easily.

there's no C++ interface (I see a little bit of code to start).

Quote:
> http://www.vexus.ca/CDK.html

or
        http://dickey.his.com/cdk/
        ftp://dickey.his.com/cdk/

--

http://dickey.his.com
ftp://dickey.his.com



Wed, 21 May 2003 09:01:19 GMT  
 Text-mode "windowing" libraries for Python?

Quote:


>>linux has snack...
> Snack should build without too much effor on anything that

it should, but doesn't (doesn't in fact build on all Linux's, something
which I discover each time I take a look at it).

Quote:
> supports slang (Most Unices, and perhaps Win32).  Not that I've
> used it on anything but Linux...

--

http://dickey.his.com
ftp://dickey.his.com


Wed, 21 May 2003 09:02:49 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. string.join(["Tk 4.2p2", "Python 1.4", "Win32", "free"], "for")

2. MF COBOL "windowing" preprocessor

3. "windowing" patented

4. MultiEdit Python "mode" needed

5. BEGIN{want[]={"s1o", "s2o", "s2q", "s3q"}

6. launch an application in "batch" mode

7. Changing App into "Extended Mode"

8. Test for "Extended Mode Compatability"

9. HELP - Need "vertical mode" BROWSE

10. smalleiffel "ACE mode"

11. AMD Opteron 64 bit "unreal" mode

12. "Real big" mode under DOS 7.0

 

 
Powered by phpBB® Forum Software