[Tutor] Help - how to do a window
alan.gauld@bt.com
alan.gauld@bt.com
Fri, 5 Oct 2001 13:39:22 +0100
------_=_NextPart_001_01C14D9A.C2A3C6A0
Content-type: text/plain; charset="ISO-8859-1"
I have other doubt . I would like to know if anybody can help me . I don't
know how to do this kind of window attached .
It looks a lot like a Windows table type widget.
There isn't a native widget in Tkinter for this type
of display but with some (quite a lot!) effort you
can fake it.
You have a frame containing a menubar and a second
frame. This latter frame contains a row of buttons
(Output, input etc) and a large text area. By writing
suitable event handlers for the buttons you can sort
the contents of the text field etc - assuming thats
the intent...
Of course you might be able to find a porewritten
table object somewhere.
Or if you are using a different toolkit (wxPython say)
it may well have such a beast.
Alan g.
------_=_NextPart_001_01C14D9A.C2A3C6A0
Content-type: text/html; charset="ISO-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV><FONT size=2><FONT face=Arial>I have other doubt . I would like to know
if anybody can help me . I don't know how to do this kind of window attached
.<FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001> </SPAN></FONT></FONT></FONT></DIV></BLOCKQUOTE>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>It looks a lot like a Windows table type
widget.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>There isn't a native widget in Tkinter for this type
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>of display but with some (quite a lot!) effort you
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>can fake it.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>You have a frame containing a menubar and a second
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>frame. This latter frame contains a row of
buttons</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>(Output, input etc) and a large text area. By
writing</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>suitable event handlers for the buttons you can sort
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>the contents of the text field etc - assuming thats
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>the intent...</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>Of course you might be able to find a porewritten
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>table object
somewhere.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>Or if you are using a different toolkit (wxPython
say)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>it may well have such a
beast.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face=Arial><FONT color=#0000ff face="Courier New"><SPAN
class=810493812-05102001>Alan g.</SPAN></FONT></FONT></FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C14D9A.C2A3C6A0--