Current File : /home/mmdealscpanel/yummmdeals.com/tix.zip
PKe,�Zg�ˆgrid.pycnu�[����
��^c	@sddlZddlmZej�Zejd�ejedd�Zej�dej	fd��YZ
e
eddd	d
�Zejdej�xMe
d�D]?Zx6e
d�D](Zejeed
eeef��q�Wq�Wejed
ddej�Zej�ej�dS(i����N(tpprintttesttnameta_labeltMyGridcBseZd�Zd�ZRS(cOs'|j|d<tjj|||�dS(Nt
editnotify(RttktGridt__init__(tselftargstkwargs((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs
cCstS(N(tTrue(R	txty((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs(t__name__t
__module__RR(((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs	ta_gridt
selectunittcelltfillittexttClosetcommand(tTixRRtTktrttitletLabeltltpackRRtgtBOTHtxrangeR
RtsettstrtButtontdestroytctmainloop(((s%/usr/lib64/python2.7/Demo/tix/grid.pyt<module>s

	*
PKe,�Z�䠵&&grid.pynu�[���###
import Tix as tk
from pprint import pprint

r= tk.Tk()
r.title("test")

l=tk.Label(r, name="a_label")
l.pack()

class MyGrid(tk.Grid):
    def __init__(self, *args, **kwargs):
        kwargs['editnotify']= self.editnotify
        tk.Grid.__init__(self, *args, **kwargs)
    def editnotify(self, x, y):
        return True

g = MyGrid(r, name="a_grid",
selectunit="cell")
g.pack(fill=tk.BOTH)
for x in xrange(5):
    for y in xrange(5):
        g.set(x,y,text=str((x,y)))

c = tk.Button(r, text="Close", command=r.destroy)
c.pack()

tk.mainloop()
PKe,�ZS����
tixwidgets.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# tixwidgets.py --
#
#       For Tix, see http://tix.sourceforge.net
#
#       This is a demo program of some of the Tix widgets available in Python.
#       If you have installed Python & Tix properly, you can execute this as
#
#               % python tixwidgets.py
#

import os, os.path, sys, Tix
from Tkconstants import *
import traceback, tkMessageBox

TCL_DONT_WAIT           = 1<<1
TCL_WINDOW_EVENTS       = 1<<2
TCL_FILE_EVENTS         = 1<<3
TCL_TIMER_EVENTS        = 1<<4
TCL_IDLE_EVENTS         = 1<<5
TCL_ALL_EVENTS          = 0

class Demo:
    def __init__(self, top):
        self.root = top
        self.exit = -1

        self.dir = None                         # script directory
        self.balloon = None                     # balloon widget
        self.useBalloons = Tix.StringVar()
        self.useBalloons.set('0')
        self.statusbar = None                   # status bar widget
        self.welmsg = None                      # Msg widget
        self.welfont = ''                       # font name
        self.welsize = ''                       # font size

        progname = sys.argv[0]
        dirname = os.path.dirname(progname)
        if dirname and dirname != os.curdir:
            self.dir = dirname
            index = -1
            for i in range(len(sys.path)):
                p = sys.path[i]
                if p in ("", os.curdir):
                    index = i
            if index >= 0:
                sys.path[index] = dirname
            else:
                sys.path.insert(0, dirname)
        else:
            self.dir = os.getcwd()
        sys.path.insert(0, self.dir+'/samples')

    def MkMainMenu(self):
        top = self.root
        w = Tix.Frame(top, bd=2, relief=RAISED)
        file = Tix.Menubutton(w, text='File', underline=0, takefocus=0)
        help = Tix.Menubutton(w, text='Help', underline=0, takefocus=0)
        file.pack(side=LEFT)
        help.pack(side=RIGHT)
        fm = Tix.Menu(file, tearoff=0)
        file['menu'] = fm
        hm = Tix.Menu(help, tearoff=0)
        help['menu'] = hm

        fm.add_command(label='Exit', underline=1,
                     command = lambda self=self: self.quitcmd () )
        hm.add_checkbutton(label='BalloonHelp', underline=0, command=ToggleHelp,
                           variable=self.useBalloons)
        # The trace variable option doesn't seem to work, instead I use 'command'
        #apply(w.tk.call, ('trace', 'variable', self.useBalloons, 'w',
        #                     ToggleHelp))

        return w

    def MkMainNotebook(self):
        top = self.root
        w = Tix.NoteBook(top, ipadx=5, ipady=5, options="""
        tagPadX 6
        tagPadY 4
        borderWidth 2
        """)
        # This may be required if there is no *Background option
        top['bg'] = w['bg']

        w.add('wel', label='Welcome', underline=0,
              createcmd=lambda w=w, name='wel': MkWelcome(w, name))
        w.add('cho', label='Choosers', underline=0,
              createcmd=lambda w=w, name='cho': MkChoosers(w, name))
        w.add('scr', label='Scrolled Widgets', underline=0,
              createcmd=lambda w=w, name='scr': MkScroll(w, name))
        w.add('mgr', label='Manager Widgets', underline=0,
              createcmd=lambda w=w, name='mgr': MkManager(w, name))
        w.add('dir', label='Directory List', underline=0,
              createcmd=lambda w=w, name='dir': MkDirList(w, name))
        w.add('exp', label='Run Sample Programs', underline=0,
              createcmd=lambda w=w, name='exp': MkSample(w, name))
        return w

    def MkMainStatus(self):
        global demo
        top = self.root

        w = Tix.Frame(top, relief=Tix.RAISED, bd=1)
        demo.statusbar = Tix.Label(w, relief=Tix.SUNKEN, bd=1)
        demo.statusbar.form(padx=3, pady=3, left=0, right='%70')
        return w

    def build(self):
        root = self.root
        z = root.winfo_toplevel()
        z.wm_title('Tix Widget Demonstration')
        if z.winfo_screenwidth() <= 800:
            z.geometry('790x590+10+10')
        else:
            z.geometry('890x640+10+10')
        demo.balloon = Tix.Balloon(root)
        frame1 = self.MkMainMenu()
        frame2 = self.MkMainNotebook()
        frame3 = self.MkMainStatus()
        frame1.pack(side=TOP, fill=X)
        frame3.pack(side=BOTTOM, fill=X)
        frame2.pack(side=TOP, expand=1, fill=BOTH, padx=4, pady=4)
        demo.balloon['statusbar'] = demo.statusbar
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        # To show Tcl errors - uncomment this to see the listbox bug.
        # Tkinter defines a Tcl tkerror procedure that in effect
        # silences all background Tcl error reporting.
        # root.tk.eval('if {[info commands tkerror] != ""} {rename tkerror pytkerror}')
    def quitcmd (self):
        """Quit our mainloop. It is up to you to call root.destroy() after."""
        self.exit = 0

    def loop(self):
        """This is an explict replacement for _tkinter mainloop()
        It lets you catch keyboard interrupts easier, and avoids
        the 20 msec. dead sleep() which burns a constant CPU."""
        while self.exit < 0:
            # There are 2 whiles here. The outer one lets you continue
            # after a ^C interrupt.
            try:
                # This is the replacement for _tkinter mainloop()
                # It blocks waiting for the next Tcl event using select.
                while self.exit < 0:
                    self.root.tk.dooneevent(TCL_ALL_EVENTS)
            except SystemExit:
                # Tkinter uses SystemExit to exit
                #print 'Exit'
                self.exit = 1
                return
            except KeyboardInterrupt:
                if tkMessageBox.askquestion ('Interrupt', 'Really Quit?') == 'yes':
                    # self.tk.eval('exit')
                    self.exit = 1
                    return
                continue
            except:
                # Otherwise it's some other error - be nice and say why
                t, v, tb = sys.exc_info()
                text = ""
                for line in traceback.format_exception(t,v,tb):
                    text += line + '\n'
                try: tkMessageBox.showerror ('Error', text)
                except: pass
                self.exit = 1
                raise SystemExit, 1

    def destroy (self):
        self.root.destroy()

def RunMain(root):
    global demo

    demo = Demo(root)

    demo.build()
    demo.loop()
    demo.destroy()

# Tabs
def MkWelcome(nb, name):
    w = nb.page(name)
    bar = MkWelcomeBar(w)
    text = MkWelcomeText(w)
    bar.pack(side=TOP, fill=X, padx=2, pady=2)
    text.pack(side=TOP, fill=BOTH, expand=1)

def MkWelcomeBar(top):
    global demo

    w = Tix.Frame(top, bd=2, relief=Tix.GROOVE)
    b1 = Tix.ComboBox(w, command=lambda w=top: MainTextFont(w))
    b2 = Tix.ComboBox(w, command=lambda w=top: MainTextFont(w))
    b1.entry['width'] = 15
    b1.slistbox.listbox['height'] = 3
    b2.entry['width'] = 4
    b2.slistbox.listbox['height'] = 3

    demo.welfont = b1
    demo.welsize = b2

    b1.insert(Tix.END, 'Courier')
    b1.insert(Tix.END, 'Helvetica')
    b1.insert(Tix.END, 'Lucida')
    b1.insert(Tix.END, 'Times Roman')

    b2.insert(Tix.END, '8')
    b2.insert(Tix.END, '10')
    b2.insert(Tix.END, '12')
    b2.insert(Tix.END, '14')
    b2.insert(Tix.END, '18')

    b1.pick(1)
    b2.pick(3)

    b1.pack(side=Tix.LEFT, padx=4, pady=4)
    b2.pack(side=Tix.LEFT, padx=4, pady=4)

    demo.balloon.bind_widget(b1, msg='Choose\na font',
                             statusmsg='Choose a font for this page')
    demo.balloon.bind_widget(b2, msg='Point size',
                             statusmsg='Choose the font size for this page')
    return w

def MkWelcomeText(top):
    global demo

    w = Tix.ScrolledWindow(top, scrollbar='auto')
    win = w.window
    text = 'Welcome to TIX in Python'
    title = Tix.Label(win,
                      bd=0, width=30, anchor=Tix.N, text=text)
    msg = Tix.Message(win,
                      bd=0, width=400, anchor=Tix.N,
                      text='Tix is a set of mega-widgets based on TK. This program \
demonstrates the widgets in the Tix widget set. You can choose the pages \
in this window to look at the corresponding widgets. \n\n\
To quit this program, choose the "File | Exit" command.\n\n\
For more information, see http://tix.sourceforge.net.')
    title.pack(expand=1, fill=Tix.BOTH, padx=10, pady=10)
    msg.pack(expand=1, fill=Tix.BOTH, padx=10, pady=10)
    demo.welmsg = msg
    return w

def MainTextFont(w):
    global demo

    if not demo.welmsg:
        return
    font = demo.welfont['value']
    point = demo.welsize['value']
    if font == 'Times Roman':
        font = 'times'
    fontstr = '%s %s' % (font, point)
    demo.welmsg['font'] = fontstr

def ToggleHelp():
    if demo.useBalloons.get() == '1':
        demo.balloon['state'] = 'both'
    else:
        demo.balloon['state'] = 'none'

def MkChoosers(nb, name):
    w = nb.page(name)
    options = "label.padX 4"

    til = Tix.LabelFrame(w, label='Chooser Widgets', options=options)
    cbx = Tix.LabelFrame(w, label='tixComboBox', options=options)
    ctl = Tix.LabelFrame(w, label='tixControl', options=options)
    sel = Tix.LabelFrame(w, label='tixSelect', options=options)
    opt = Tix.LabelFrame(w, label='tixOptionMenu', options=options)
    fil = Tix.LabelFrame(w, label='tixFileEntry', options=options)
    fbx = Tix.LabelFrame(w, label='tixFileSelectBox', options=options)
    tbr = Tix.LabelFrame(w, label='Tool Bar', options=options)

    MkTitle(til.frame)
    MkCombo(cbx.frame)
    MkControl(ctl.frame)
    MkSelect(sel.frame)
    MkOptMenu(opt.frame)
    MkFileEnt(fil.frame)
    MkFileBox(fbx.frame)
    MkToolBar(tbr.frame)

    # First column: comBox and selector
    cbx.form(top=0, left=0, right='%33')
    sel.form(left=0, right='&'+str(cbx), top=cbx)
    opt.form(left=0, right='&'+str(cbx), top=sel, bottom=-1)

    # Second column: title .. etc
    til.form(left=cbx, top=0,right='%66')
    ctl.form(left=cbx, right='&'+str(til), top=til)
    fil.form(left=cbx, right='&'+str(til), top=ctl)
    tbr.form(left=cbx, right='&'+str(til), top=fil, bottom=-1)

    #
    # Third column: file selection
    fbx.form(right=-1, top=0, left='%66')

def MkCombo(w):
    options="label.width %d label.anchor %s entry.width %d" % (10, Tix.E, 14)

    static = Tix.ComboBox(w, label='Static', editable=0, options=options)
    editable = Tix.ComboBox(w, label='Editable', editable=1, options=options)
    history = Tix.ComboBox(w, label='History', editable=1, history=1,
                           anchor=Tix.E, options=options)
    static.insert(Tix.END, 'January')
    static.insert(Tix.END, 'February')
    static.insert(Tix.END, 'March')
    static.insert(Tix.END, 'April')
    static.insert(Tix.END, 'May')
    static.insert(Tix.END, 'June')
    static.insert(Tix.END, 'July')
    static.insert(Tix.END, 'August')
    static.insert(Tix.END, 'September')
    static.insert(Tix.END, 'October')
    static.insert(Tix.END, 'November')
    static.insert(Tix.END, 'December')

    editable.insert(Tix.END, 'Angola')
    editable.insert(Tix.END, 'Bangladesh')
    editable.insert(Tix.END, 'China')
    editable.insert(Tix.END, 'Denmark')
    editable.insert(Tix.END, 'Ecuador')

    history.insert(Tix.END, '/usr/bin/ksh')
    history.insert(Tix.END, '/usr/local/lib/python')
    history.insert(Tix.END, '/var/adm')

    static.pack(side=Tix.TOP, padx=5, pady=3)
    editable.pack(side=Tix.TOP, padx=5, pady=3)
    history.pack(side=Tix.TOP, padx=5, pady=3)

states = ['Bengal', 'Delhi', 'Karnataka', 'Tamil Nadu']

def spin_cmd(w, inc):
    idx = states.index(demo_spintxt.get()) + inc
    if idx < 0:
        idx = len(states) - 1
    elif idx >= len(states):
        idx = 0
# following doesn't work.
#    return states[idx]
    demo_spintxt.set(states[idx])       # this works

def spin_validate(w):
    global states, demo_spintxt

    try:
        i = states.index(demo_spintxt.get())
    except ValueError:
        return states[0]
    return states[i]
    # why this procedure works as opposed to the previous one beats me.

def MkControl(w):
    global demo_spintxt

    options="label.width %d label.anchor %s entry.width %d" % (10, Tix.E, 13)

    demo_spintxt = Tix.StringVar()
    demo_spintxt.set(states[0])
    simple = Tix.Control(w, label='Numbers', options=options)
    spintxt = Tix.Control(w, label='States', variable=demo_spintxt,
                          options=options)
    spintxt['incrcmd'] = lambda w=spintxt: spin_cmd(w, 1)
    spintxt['decrcmd'] = lambda w=spintxt: spin_cmd(w, -1)
    spintxt['validatecmd'] = lambda w=spintxt: spin_validate(w)

    simple.pack(side=Tix.TOP, padx=5, pady=3)
    spintxt.pack(side=Tix.TOP, padx=5, pady=3)

def MkSelect(w):
    options = "label.anchor %s" % Tix.CENTER

    sel1 = Tix.Select(w, label='Mere Mortals', allowzero=1, radio=1,
                      orientation=Tix.VERTICAL,
                      labelside=Tix.TOP,
                      options=options)
    sel2 = Tix.Select(w, label='Geeks', allowzero=1, radio=0,
                      orientation=Tix.VERTICAL,
                      labelside= Tix.TOP,
                      options=options)

    sel1.add('eat', text='Eat')
    sel1.add('work', text='Work')
    sel1.add('play', text='Play')
    sel1.add('party', text='Party')
    sel1.add('sleep', text='Sleep')

    sel2.add('eat', text='Eat')
    sel2.add('prog1', text='Program')
    sel2.add('prog2', text='Program')
    sel2.add('prog3', text='Program')
    sel2.add('sleep', text='Sleep')

    sel1.pack(side=Tix.LEFT, padx=5, pady=3, fill=Tix.X)
    sel2.pack(side=Tix.LEFT, padx=5, pady=3, fill=Tix.X)

def MkOptMenu(w):
    options='menubutton.width 15 label.anchor %s' % Tix.E

    m = Tix.OptionMenu(w, label='File Format : ', options=options)
    m.add_command('text', label='Plain Text')
    m.add_command('post', label='PostScript')
    m.add_command('format', label='Formatted Text')
    m.add_command('html', label='HTML')
    m.add_command('sep')
    m.add_command('tex', label='LaTeX')
    m.add_command('rtf', label='Rich Text Format')

    m.pack(fill=Tix.X, padx=5, pady=3)

def MkFileEnt(w):
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='Press the "open file" icon button and a TixFileSelectDialog will popup.')
    ent = Tix.FileEntry(w, label='Select a file : ')
    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
    ent.pack(side=Tix.TOP, fill=Tix.X, padx=3, pady=3)

def MkFileBox(w):
    """The FileSelectBox is a Motif-style box with various enhancements.
    For example, you can adjust the size of the two listboxes
    and your past selections are recorded.
    """
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.')
    box = Tix.FileSelectBox(w)
    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
    box.pack(side=Tix.TOP, fill=Tix.X, padx=3, pady=3)

def MkToolBar(w):
    """The Select widget is also good for arranging buttons in a tool bar.
    """
    global demo

    options='frame.borderWidth 1'

    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The Select widget is also good for arranging buttons in a tool bar.')
    bar = Tix.Frame(w, bd=2, relief=Tix.RAISED)
    font = Tix.Select(w, allowzero=1, radio=0, label='', options=options)
    para = Tix.Select(w, allowzero=0, radio=1, label='', options=options)

    font.add('bold', bitmap='@' + demo.dir + '/bitmaps/bold.xbm')
    font.add('italic', bitmap='@' + demo.dir + '/bitmaps/italic.xbm')
    font.add('underline', bitmap='@' + demo.dir + '/bitmaps/underline.xbm')
    font.add('capital', bitmap='@' + demo.dir + '/bitmaps/capital.xbm')

    para.add('left', bitmap='@' + demo.dir + '/bitmaps/leftj.xbm')
    para.add('right', bitmap='@' + demo.dir + '/bitmaps/rightj.xbm')
    para.add('center', bitmap='@' + demo.dir + '/bitmaps/centerj.xbm')
    para.add('justify', bitmap='@' + demo.dir + '/bitmaps/justify.xbm')

    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
    bar.pack(side=Tix.TOP, fill=Tix.X, padx=3, pady=3)
    font.pack({'in':bar}, side=Tix.LEFT, padx=3, pady=3)
    para.pack({'in':bar}, side=Tix.LEFT, padx=3, pady=3)

def MkTitle(w):
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='There are many types of "chooser" widgets that allow the user to input different types of information')
    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)

def MkScroll(nb, name):
    w = nb.page(name)
    options='label.padX 4'

    sls = Tix.LabelFrame(w, label='Tix.ScrolledListBox', options=options)
    swn = Tix.LabelFrame(w, label='Tix.ScrolledWindow', options=options)
    stx = Tix.LabelFrame(w, label='Tix.ScrolledText', options=options)

    MkSList(sls.frame)
    MkSWindow(swn.frame)
    MkSText(stx.frame)

    sls.form(top=0, left=0, right='%33', bottom=-1)
    swn.form(top=0, left=sls, right='%66', bottom=-1)
    stx.form(top=0, left=swn, right=-1, bottom=-1)


def MkSList(w):
    """This TixScrolledListBox is configured so that it uses scrollbars
    only when it is necessary. Use the handles to resize the listbox and
    watch the scrollbars automatically appear and disappear.  """
    top = Tix.Frame(w, width=300, height=330)
    bot = Tix.Frame(w)
    msg = Tix.Message(top,
                      relief=Tix.FLAT, width=200, anchor=Tix.N,
                      text='This TixScrolledListBox is configured so that it uses scrollbars only when it is necessary. Use the handles to resize the listbox and watch the scrollbars automatically appear and disappear.')

    list = Tix.ScrolledListBox(top, scrollbar='auto')
    list.place(x=50, y=150, width=120, height=80)
    list.listbox.insert(Tix.END, 'Alabama')
    list.listbox.insert(Tix.END, 'California')
    list.listbox.insert(Tix.END, 'Montana')
    list.listbox.insert(Tix.END, 'New Jersey')
    list.listbox.insert(Tix.END, 'New York')
    list.listbox.insert(Tix.END, 'Pennsylvania')
    list.listbox.insert(Tix.END, 'Washington')

    rh = Tix.ResizeHandle(top, bg='black',
                          relief=Tix.RAISED,
                          handlesize=8, gridded=1, minwidth=50, minheight=30)
    btn = Tix.Button(bot, text='Reset', command=lambda w=rh, x=list: SList_reset(w,x))
    top.propagate(0)
    msg.pack(fill=Tix.X)
    btn.pack(anchor=Tix.CENTER)
    top.pack(expand=1, fill=Tix.BOTH)
    bot.pack(fill=Tix.BOTH)
    list.bind('<Map>', func=lambda arg=0, rh=rh, list=list:
              list.tk.call('tixDoWhenIdle', str(rh), 'attachwidget', str(list)))

def SList_reset(rh, list):
    list.place(x=50, y=150, width=120, height=80)
    list.update()
    rh.attach_widget(list)

def MkSWindow(w):
    """The ScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.
    """
    global demo

    text = 'The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.'

    file = os.path.join(demo.dir, 'bitmaps', 'tix.gif')
    if not os.path.isfile(file):
        text += ' (Image missing)'

    top = Tix.Frame(w, width=330, height=330)
    bot = Tix.Frame(w)
    msg = Tix.Message(top,
                      relief=Tix.FLAT, width=200, anchor=Tix.N,
                      text=text)

    win = Tix.ScrolledWindow(top, scrollbar='auto')

    image1 = win.window.image_create('photo', file=file)
    lbl = Tix.Label(win.window, image=image1)
    lbl.pack(expand=1, fill=Tix.BOTH)

    win.place(x=30, y=150, width=190, height=120)

    rh = Tix.ResizeHandle(top, bg='black',
                          relief=Tix.RAISED,
                          handlesize=8, gridded=1, minwidth=50, minheight=30)
    btn = Tix.Button(bot, text='Reset', command=lambda w=rh, x=win: SWindow_reset(w,x))
    top.propagate(0)
    msg.pack(fill=Tix.X)
    btn.pack(anchor=Tix.CENTER)
    top.pack(expand=1, fill=Tix.BOTH)
    bot.pack(fill=Tix.BOTH)

    win.bind('<Map>', func=lambda arg=0, rh=rh, win=win:
             win.tk.call('tixDoWhenIdle', str(rh), 'attachwidget', str(win)))

def SWindow_reset(rh, win):
    win.place(x=30, y=150, width=190, height=120)
    win.update()
    rh.attach_widget(win)

def MkSText(w):
    """The TixScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget."""
    top = Tix.Frame(w, width=330, height=330)
    bot = Tix.Frame(w)
    msg = Tix.Message(top,
                      relief=Tix.FLAT, width=200, anchor=Tix.N,
                      text='The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.')

    win = Tix.ScrolledText(top, scrollbar='auto')
    win.text['wrap'] = 'none'
    win.text.insert(Tix.END, '''When -scrollbar is set to "auto", the
scrollbars are shown only when needed.
Additional modifiers can be used to force a
scrollbar to be shown or hidden. For example,
"auto -y" means the horizontal scrollbar
should be shown when needed but the vertical
scrollbar should always be hidden;
"auto +x" means the vertical scrollbar
should be shown when needed but the horizontal
scrollbar should always be shown, and so on.'''
)
    win.place(x=30, y=150, width=190, height=100)

    rh = Tix.ResizeHandle(top, bg='black',
                          relief=Tix.RAISED,
                          handlesize=8, gridded=1, minwidth=50, minheight=30)
    btn = Tix.Button(bot, text='Reset', command=lambda w=rh, x=win: SText_reset(w,x))
    top.propagate(0)
    msg.pack(fill=Tix.X)
    btn.pack(anchor=Tix.CENTER)
    top.pack(expand=1, fill=Tix.BOTH)
    bot.pack(fill=Tix.BOTH)
    win.bind('<Map>', func=lambda arg=0, rh=rh, win=win:
             win.tk.call('tixDoWhenIdle', str(rh), 'attachwidget', str(win)))

def SText_reset(rh, win):
    win.place(x=30, y=150, width=190, height=120)
    win.update()
    rh.attach_widget(win)

def MkManager(nb, name):
    w = nb.page(name)
    options='label.padX 4'

    pane = Tix.LabelFrame(w, label='Tix.PanedWindow', options=options)
    note = Tix.LabelFrame(w, label='Tix.NoteBook', options=options)

    MkPanedWindow(pane.frame)
    MkNoteBook(note.frame)

    pane.form(top=0, left=0, right=note, bottom=-1)
    note.form(top=0, right=-1, bottom=-1)

def MkPanedWindow(w):
    """The PanedWindow widget allows the user to interactively manipulate
    the sizes of several panes. The panes can be arranged either vertically
    or horizontally.
    """
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The PanedWindow widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally.')
    group = Tix.LabelEntry(w, label='Newsgroup:', options='entry.width 25')
    group.entry.insert(0,'comp.lang.python')
    pane = Tix.PanedWindow(w, orientation='vertical')

    p1 = pane.add('list', min=70, size=100)
    p2 = pane.add('text', min=70)
    list = Tix.ScrolledListBox(p1)
    text = Tix.ScrolledText(p2)

    list.listbox.insert(Tix.END, "  12324 Re: Tkinter is good for your health")
    list.listbox.insert(Tix.END, "+ 12325 Re: Tkinter is good for your health")
    list.listbox.insert(Tix.END, "+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)")
    list.listbox.insert(Tix.END, "  12327 Re: Tix is even better for your health (Was: Tkinter is good...)")
    list.listbox.insert(Tix.END, "+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)")
    list.listbox.insert(Tix.END, "  12329 Re: Tix is even better for your health (Was: Tkinter is good...)")
    list.listbox.insert(Tix.END, "+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)")

    text.text['bg'] = list.listbox['bg']
    text.text['wrap'] = 'none'
    text.text.insert(Tix.END, """
Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
Lines 353       A new way to put text and bitmaps together iNo responses
ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

Hi,

I have implemented a new image type called "compound". It allows you
to glue together a bunch of bitmaps, images and text strings together
to form a bigger image. Then you can use this image with widgets that
support the -image option. For example, you can display a text string
together with a bitmap, at the same time, inside a TK button widget.
""")
    list.pack(expand=1, fill=Tix.BOTH, padx=4, pady=6)
    text.pack(expand=1, fill=Tix.BOTH, padx=4, pady=6)

    msg.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH)
    group.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH)
    pane.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH, expand=1)

def MkNoteBook(w):
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The NoteBook widget allows you to layout a complex interface into individual pages.')
    # prefix = Tix.OptionName(w)
    # if not prefix: prefix = ''
    # w.option_add('*' + prefix + '*TixNoteBook*tagPadX', 8)
    options = "entry.width %d label.width %d label.anchor %s" % (10, 18, Tix.E)

    nb = Tix.NoteBook(w, ipadx=6, ipady=6, options=options)
    nb.add('hard_disk', label="Hard Disk", underline=0)
    nb.add('network', label="Network", underline=0)

    # Frame for the buttons that are present on all pages
    common = Tix.Frame(nb.hard_disk)
    common.pack(side=Tix.RIGHT, padx=2, pady=2, fill=Tix.Y)
    CreateCommonButtons(common)

    # Widgets belonging only to this page
    a = Tix.Control(nb.hard_disk, value=12, label='Access Time: ')
    w = Tix.Control(nb.hard_disk, value=400, label='Write Throughput: ')
    r = Tix.Control(nb.hard_disk, value=400, label='Read Throughput: ')
    c = Tix.Control(nb.hard_disk, value=1021, label='Capacity: ')
    a.pack(side=Tix.TOP, padx=20, pady=2)
    w.pack(side=Tix.TOP, padx=20, pady=2)
    r.pack(side=Tix.TOP, padx=20, pady=2)
    c.pack(side=Tix.TOP, padx=20, pady=2)

    common = Tix.Frame(nb.network)
    common.pack(side=Tix.RIGHT, padx=2, pady=2, fill=Tix.Y)
    CreateCommonButtons(common)

    a = Tix.Control(nb.network, value=12, label='Access Time: ')
    w = Tix.Control(nb.network, value=400, label='Write Throughput: ')
    r = Tix.Control(nb.network, value=400, label='Read Throughput: ')
    c = Tix.Control(nb.network, value=1021, label='Capacity: ')
    u = Tix.Control(nb.network, value=10, label='Users: ')
    a.pack(side=Tix.TOP, padx=20, pady=2)
    w.pack(side=Tix.TOP, padx=20, pady=2)
    r.pack(side=Tix.TOP, padx=20, pady=2)
    c.pack(side=Tix.TOP, padx=20, pady=2)
    u.pack(side=Tix.TOP, padx=20, pady=2)

    msg.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH)
    nb.pack(side=Tix.TOP, padx=5, pady=5, fill=Tix.BOTH, expand=1)

def CreateCommonButtons(f):
    ok = Tix.Button(f, text='OK', width = 6)
    cancel = Tix.Button(f, text='Cancel', width = 6)
    ok.pack(side=Tix.TOP, padx=2, pady=2)
    cancel.pack(side=Tix.TOP, padx=2, pady=2)

def MkDirList(nb, name):
    w = nb.page(name)
    options = "label.padX 4"

    dir = Tix.LabelFrame(w, label='Tix.DirList', options=options)
    fsbox = Tix.LabelFrame(w, label='Tix.ExFileSelectBox', options=options)
    MkDirListWidget(dir.frame)
    MkExFileWidget(fsbox.frame)
    dir.form(top=0, left=0, right='%40', bottom=-1)
    fsbox.form(top=0, left='%40', right=-1, bottom=-1)

def MkDirListWidget(w):
    """The TixDirList widget gives a graphical representation of the file
    system directory and makes it easy for the user to choose and access
    directories.
    """
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The Tix DirList widget gives a graphical representation of the file system directory and makes it easy for the user to choose and access directories.')
    dirlist = Tix.DirList(w, options='hlist.padY 1 hlist.width 25 hlist.height 16')
    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
    dirlist.pack(side=Tix.TOP, padx=3, pady=3)

def MkExFileWidget(w):
    """The TixExFileSelectBox widget is more user friendly than the Motif
    style FileSelectBox.  """
    msg = Tix.Message(w,
                      relief=Tix.FLAT, width=240, anchor=Tix.N,
                      text='The Tix ExFileSelectBox widget is more user friendly than the Motif style FileSelectBox.')
    # There's a bug in the ComboBoxes - the scrolledlistbox is destroyed
    box = Tix.ExFileSelectBox(w, bd=2, relief=Tix.RAISED)
    msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3)
    box.pack(side=Tix.TOP, padx=3, pady=3)

###
### List of all the demos we want to show off
comments = {'widget' : 'Widget Demos', 'image' : 'Image Demos'}
samples = {'Balloon'            : 'Balloon',
           'Button Box'         : 'BtnBox',
           'Combo Box'          : 'ComboBox',
           'Compound Image'     : 'CmpImg',
           'Directory List'     : 'DirList',
           'Directory Tree'     : 'DirTree',
           'Control'            : 'Control',
           'Notebook'           : 'NoteBook',
           'Option Menu'        : 'OptMenu',
           'Paned Window'       : 'PanedWin',
           'Popup Menu'         : 'PopMenu',
           'ScrolledHList (1)'  : 'SHList1',
           'ScrolledHList (2)'  : 'SHList2',
           'Tree (dynamic)'     : 'Tree'
}

# There are still a lot of demos to be translated:
##      set root {
##          {d "File Selectors"         file    }
##          {d "Hierachical ListBox"    hlist   }
##          {d "Tabular ListBox"        tlist   {c tixTList}}
##          {d "Grid Widget"            grid    {c tixGrid}}
##          {d "Manager Widgets"        manager }
##          {d "Scrolled Widgets"       scroll  }
##          {d "Miscellaneous Widgets"  misc    }
##          {d "Image Types"            image   }
##      }
##
##      set image {
##          {d "Compound Image"         cmpimg  }
##          {d "XPM Image"              xpm     {i pixmap}}
##      }
##
##      set cmpimg {
##done      {f "In Buttons"             CmpImg.tcl      }
##          {f "In NoteBook"            CmpImg2.tcl     }
##          {f "Notebook Color Tabs"    CmpImg4.tcl     }
##          {f "Icons"                  CmpImg3.tcl     }
##      }
##
##      set xpm {
##          {f "In Button"              Xpm.tcl         {i pixmap}}
##          {f "In Menu"                Xpm1.tcl        {i pixmap}}
##      }
##
##      set file {
##added     {f DirList                          DirList.tcl     }
##added     {f DirTree                          DirTree.tcl     }
##          {f DirSelectDialog                  DirDlg.tcl      }
##          {f ExFileSelectDialog               EFileDlg.tcl    }
##          {f FileSelectDialog                 FileDlg.tcl     }
##          {f FileEntry                        FileEnt.tcl     }
##      }
##
##      set hlist {
##          {f HList                    HList1.tcl      }
##          {f CheckList                ChkList.tcl     {c tixCheckList}}
##done      {f "ScrolledHList (1)"      SHList.tcl      }
##done      {f "ScrolledHList (2)"      SHList2.tcl     }
##done      {f Tree                     Tree.tcl        }
##done      {f "Tree (Dynamic)"         DynTree.tcl     {v win}}
##      }
##
##      set tlist {
##          {f "ScrolledTList (1)"      STList1.tcl     {c tixTList}}
##          {f "ScrolledTList (2)"      STList2.tcl     {c tixTList}}
##      }
##      global tcl_platform
##      #  This demo hangs windows
##      if {$tcl_platform(platform) != "windows"} {
##na    lappend tlist     {f "TList File Viewer"        STList3.tcl     {c tixTList}}
##      }
##
##      set grid {
##na        {f "Simple Grid"            SGrid0.tcl      {c tixGrid}}
##na        {f "ScrolledGrid"           SGrid1.tcl      {c tixGrid}}
##na        {f "Editable Grid"          EditGrid.tcl    {c tixGrid}}
##      }
##
##      set scroll {
##          {f ScrolledListBox          SListBox.tcl    }
##          {f ScrolledText             SText.tcl       }
##          {f ScrolledWindow           SWindow.tcl     }
##na        {f "Canvas Object View"     CObjView.tcl    {c tixCObjView}}
##      }
##
##      set manager {
##          {f ListNoteBook             ListNBK.tcl     }
##done      {f NoteBook                 NoteBook.tcl    }
##done      {f PanedWindow              PanedWin.tcl    }
##      }
##
##      set misc {
##done      {f Balloon                  Balloon.tcl     }
##done      {f ButtonBox                BtnBox.tcl      }
##done      {f ComboBox                 ComboBox.tcl    }
##done      {f Control                  Control.tcl     }
##          {f LabelEntry               LabEntry.tcl    }
##          {f LabelFrame               LabFrame.tcl    }
##          {f Meter                    Meter.tcl       {c tixMeter}}
##done      {f OptionMenu               OptMenu.tcl     }
##done      {f PopupMenu                PopMenu.tcl     }
##          {f Select                   Select.tcl      }
##          {f StdButtonBox             StdBBox.tcl     }
##      }
##

stypes = {}
stypes['widget'] = ['Balloon', 'Button Box', 'Combo Box', 'Control',
                    'Directory List', 'Directory Tree',
                    'Notebook', 'Option Menu', 'Popup Menu', 'Paned Window',
                    'ScrolledHList (1)', 'ScrolledHList (2)', 'Tree (dynamic)']
stypes['image'] = ['Compound Image']

def MkSample(nb, name):
    w = nb.page(name)
    options = "label.padX 4"

    pane = Tix.PanedWindow(w, orientation='horizontal')
    pane.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH)
    f1 = pane.add('list', expand='1')
    f2 = pane.add('text', expand='5')
    f1['relief'] = 'flat'
    f2['relief'] = 'flat'

    lab = Tix.LabelFrame(f1, label='Select a sample program:')
    lab.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=5, pady=5)
    lab1 = Tix.LabelFrame(f2, label='Source:')
    lab1.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=5, pady=5)

    slb = Tix.Tree(lab.frame, options='hlist.width 20')
    slb.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=5)

    stext = Tix.ScrolledText(lab1.frame, name='stext')
    font = root.tk.eval('tix option get fixed_font')
    stext.text.config(font=font)

    frame = Tix.Frame(lab1.frame, name='frame')

    run = Tix.Button(frame, text='Run ...', name='run')
    view = Tix.Button(frame, text='View Source ...', name='view')
    run.pack(side=Tix.LEFT, expand=0, fill=Tix.NONE)
    view.pack(side=Tix.LEFT, expand=0, fill=Tix.NONE)

    stext.text['bg'] = slb.hlist['bg']
    stext.text['state'] = 'disabled'
    stext.text['wrap'] = 'none'
    stext.text['width'] = 80

    frame.pack(side=Tix.BOTTOM, expand=0, fill=Tix.X, padx=7)
    stext.pack(side=Tix.TOP, expand=0, fill=Tix.BOTH, padx=7)

    slb.hlist['separator'] = '.'
    slb.hlist['width'] = 25
    slb.hlist['drawbranch'] = 0
    slb.hlist['indent'] = 10
    slb.hlist['wideselect'] = 1
    slb.hlist['command'] = lambda args=0, w=w,slb=slb,stext=stext,run=run,view=view: Sample_Action(w, slb, stext, run, view, 'run')
    slb.hlist['browsecmd'] = lambda args=0, w=w,slb=slb,stext=stext,run=run,view=view: Sample_Action(w, slb, stext, run, view, 'browse')

    run['command']      = lambda args=0, w=w,slb=slb,stext=stext,run=run,view=view: Sample_Action(w, slb, stext, run, view, 'run')
    view['command'] = lambda args=0, w=w,slb=slb,stext=stext,run=run,view=view: Sample_Action(w, slb, stext, run, view, 'view')

    for type in ['widget', 'image']:
        if type != 'widget':
            x = Tix.Frame(slb.hlist, bd=2, height=2, width=150,
                          relief=Tix.SUNKEN, bg=slb.hlist['bg'])
            slb.hlist.add_child(itemtype=Tix.WINDOW, window=x, state='disabled')
        x = slb.hlist.add_child(itemtype=Tix.TEXT, state='disabled',
                                text=comments[type])
        for key in stypes[type]:
            slb.hlist.add_child(x, itemtype=Tix.TEXT, data=key,
                                text=key)
    slb.hlist.selection_clear()

    run['state'] = 'disabled'
    view['state'] = 'disabled'

def Sample_Action(w, slb, stext, run, view, action):
    global demo

    hlist = slb.hlist
    anchor = hlist.info_anchor()
    if not anchor:
        run['state'] = 'disabled'
        view['state'] = 'disabled'
    elif not hlist.info_parent(anchor):
        # a comment
        return

    run['state'] = 'normal'
    view['state'] = 'normal'
    key = hlist.info_data(anchor)
    title = key
    prog = samples[key]

    if action == 'run':
        exec('import ' + prog)
        w = Tix.Toplevel()
        w.title(title)
        rtn = eval(prog + '.RunSample')
        rtn(w)
    elif action == 'view':
        w = Tix.Toplevel()
        w.title('Source view: ' + title)
        LoadFile(w, demo.dir + '/samples/' + prog + '.py')
    elif action == 'browse':
        ReadFile(stext.text, demo.dir + '/samples/' + prog + '.py')

def LoadFile(w, fname):
    global root
    b = Tix.Button(w, text='Close', command=w.destroy)
    t = Tix.ScrolledText(w)
    #    b.form(left=0, bottom=0, padx=4, pady=4)
    #    t.form(left=0, bottom=b, right='-0', top=0)
    t.pack()
    b.pack()

    font = root.tk.eval('tix option get fixed_font')
    t.text.config(font=font)
    t.text['bd'] = 2
    t.text['wrap'] = 'none'

    ReadFile(t.text, fname)

def ReadFile(w, fname):
    old_state = w['state']
    w['state'] = 'normal'
    w.delete('0.0', Tix.END)

    try:
        f = open(fname)
        lines = f.readlines()
        for s in lines:
            w.insert(Tix.END, s)
        f.close()
    finally:
#       w.see('1.0')
        w['state'] = old_state

if __name__ == '__main__':
    root = Tix.Tk()
    RunMain(root)
PKe,�Zg�ˆgrid.pyonu�[����
��^c	@sddlZddlmZej�Zejd�ejedd�Zej�dej	fd��YZ
e
eddd	d
�Zejdej�xMe
d�D]?Zx6e
d�D](Zejeed
eeef��q�Wq�Wejed
ddej�Zej�ej�dS(i����N(tpprintttesttnameta_labeltMyGridcBseZd�Zd�ZRS(cOs'|j|d<tjj|||�dS(Nt
editnotify(RttktGridt__init__(tselftargstkwargs((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs
cCstS(N(tTrue(R	txty((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs(t__name__t
__module__RR(((s%/usr/lib64/python2.7/Demo/tix/grid.pyRs	ta_gridt
selectunittcelltfillittexttClosetcommand(tTixRRtTktrttitletLabeltltpackRRtgtBOTHtxrangeR
RtsettstrtButtontdestroytctmainloop(((s%/usr/lib64/python2.7/Demo/tix/grid.pyt<module>s

	*
PKe,�Z��{�̖̖tixwidgets.pycnu�[����
��^c
@s�ddlZddlZddlZddlZddlTddlZddlZdQZdRZdSZ	dTZ
dUZdZd	dVd
��YZ
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zddddgad�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd �Z d!�Z!d"�Z"d#�Z#d$�Z$d%�Z%d&�Z&d'�Z'd(�Z(d)�Z)d*�Z*d+�Z+d,�Z,d-�Z-id.d/6d0d16Z.id2d26d3d46d5d66d7d86d9d:6d;d<6d=d=6d>d?6d@dA6dBdC6dDdE6dFdG6dHdI6dJdK6Z/iZ0d2d4d6d=d:d<d?dAdEdCdGdIdKg
e0d/<d8ge0d1<dL�Z1dM�Z2dN�Z3dO�Z4e5dPkr�ej6�a7et7�ndS(Wi����N(t*iiiiiitDemocBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCsT||_d|_d|_d|_tj�|_|jjd�d|_	d|_
d|_d|_t
jd}tjj|�}|r'|tjkr'||_d}xHttt
j��D]1}t
j|}|dtjfkr�|}q�q�W|dkr|t
j|<q6t
jjd|�ntj�|_t
jjd|jd�dS(Ni����t0tis/samples(troottexittNonetdirtballoontTixt	StringVartuseBalloonstsett	statusbartwelmsgtwelfonttwelsizetsystargvtostpathtdirnametcurdirtrangetlentinserttgetcwd(tselfttoptprognameRtindextitp((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt__init__s0								
	

c	Cs|j}tj|dddt�}tj|dddddd�}tj|dd	dddd�}|jd
t�|jd
t�tj|dd�}||d<tj|dd�}||d<|j	d
dddd|d��|j
d
ddddtd|j�|S(NtbditreliefttexttFilet	underlineit	takefocustHelptsidettearofftmenutlabeltExititcommandcSs
|j�S(N(tquitcmd(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt<lambda>FRtBalloonHelptvariable(
RR	tFrametRAISEDt
MenubuttontpacktLEFTtRIGHTtMenutadd_commandtadd_checkbuttont
ToggleHelpR(RRtwtfilethelptfmthm((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt
MkMainMenu9s	!!



c
Cs,|j}tj|dddddd�}|d|d<|jddd	d
dd|dd
��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|S(NtipadxitipadytoptionssC
        tagPadX 6
        tagPadY 4
        borderWidth 2
        tbgtwelR,tWelcomeR&it	createcmdcSs
t||�S(N(t	MkWelcome(R=tname((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0ZRtchotChooserscSs
t||�S(N(t
MkChoosers(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0\RtscrsScrolled WidgetscSs
t||�S(N(tMkScroll(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0^RtmgrsManager WidgetscSs
t||�S(N(t	MkManager(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0`RRsDirectory ListcSs
t||�S(N(t	MkDirList(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0bRtexpsRun Sample ProgramscSs
t||�S(N(tMkSample(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0dR(RR	tNoteBooktadd(RRR=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytMkMainNotebookOs"		c	Csq|j}tj|dtjdd�}tj|dtjdd�t_tjjddddddd	d
�|S(NR#R"itpadxitpadytleftitrights%70(	RR	R3R4tLabeltSUNKENtdemoR
tform(RRR=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytMkMainStatusgs
	!%cCs|j}|j�}|jd�|j�dkrD|jd�n
|jd�tj|�t_|j	�}|j
�}|j�}|jdt
dt�|jdtdt�|jdt
dddtd	d
dd
�tjtjd<|jd
|d��dS(NsTix Widget Demonstrationi s
790x590+10+10s
890x640+10+10R)tfilltexpandiRYiRZR
tWM_DELETE_WINDOWcSs
|j�S(N(R/(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�R(Rtwinfo_topleveltwm_titletwinfo_screenwidthtgeometryR	tBalloonR_RRBRXRaR6tTOPtXtBOTTOMtBOTHR
twm_protocol(RRtztframe1tframe2tframe3((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytbuildps	

(cCs
d|_dS(s@Quit our mainloop. It is up to you to call root.destroy() after.iN(R(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR/�scCsx|jdkry-x&|jdkr=|jjjt�qWWqtk
r\d|_dStk
r�tjdd�dkrd|_dSqqt	j
�\}}}d}x+tj|||�D]}||d7}q�Wytj
d	|�WnnXd|_td�qXqWdS(
s�This is an explict replacement for _tkinter mainloop()
        It lets you catch keyboard interrupts easier, and avoids
        the 20 msec. dead sleep() which burns a constant CPU.iiNt	InterruptsReally Quit?tyesRs
tError(RRttkt
dooneeventtTCL_ALL_EVENTSt
SystemExittKeyboardInterruptttkMessageBoxtaskquestionRtexc_infot	tracebacktformat_exceptiont	showerror(RtttvttbR$tline((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytloop�s.
	
		cCs|jj�dS(N(Rtdestroy(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s(
t__name__t
__module__R!RBRXRaRsR/R�R�(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRs								"cCs.t|�atj�tj�tj�dS(N(RR_RsR�R�(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytRunMain�s

c	Csi|j|�}t|�}t|�}|jdtdtdddd�|jdtdtdd�dS(NR)RbRYiRZRci(tpagetMkWelcomeBart
MkWelcomeTextR6RjRkRm(tnbRKR=tbarR$((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRJ�s
"cCs�tj|dddtj�}tj|d|d��}tj|d|d��}d|jd<d	|jjd
<d|jd<d	|jjd
<|t_|t_	|j
tjd�|j
tjd
�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|jd�|jd	�|j
dtjdddd�|j
dtjdddd�tjj|dddd�tjj|dddd�|S(NR"iR#R.cSs
t|�S(N(tMainTextFont(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RcSs
t|�S(N(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RitwidthitheightitCouriert	HelveticatLucidasTimes Romant8t10t12t14t18iR)RYRZtmsgs
Choose
a fontt	statusmsgsChoose a font for this pages
Point sizes"Choose the font size for this page(R	R3tGROOVEtComboBoxtentrytslistboxtlistboxR_RRRtENDtpickR6R7Rtbind_widget(RR=tb1tb2((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s6

		

c
Cs�tj|dd�}|j}d}tj|dddddtjd	|�}tj|dddd
dtjd	d�}|jdd
dtjdddd�|jdd
dtjdddd�|t_	|S(Nt	scrollbartautosWelcome to TIX in PythonR"iR�itanchorR$i�s%Tix is a set of mega-widgets based on TK. This program demonstrates the widgets in the Tix widget set. You can choose the pages in this window to look at the corresponding widgets. 

To quit this program, choose the "File | Exit" command.

For more information, see http://tix.sourceforge.net.RciRbRYi
RZ(
R	tScrolledWindowtwindowR]tNtMessageR6RmR_R(RR=twinR$ttitleR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s		%%	cCs]tjs
dStjd}tjd}|dkr<d}nd||f}|tjd<dS(NtvaluesTimes Romanttimess%s %stfont(R_RRR(R=R�tpointtfontstr((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	

	cCs6tjj�dkr%dtjd<n
dtjd<dS(Nt1tbothtstatetnone(R_RtgetR(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR<sc	Csw|j|�}d}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|dd	d|�}	tj|dd
d|�}
tj|ddd|�}t|j�t|j�t|j�t|j�t|j�t	|	j�t
|
j�t|j�|jdd
dd
dd�|jdd
ddt
|�d|�|jdd
ddt
|�d|dd�|jd|dd
dd�|jd|ddt
|�d|�|	jd|ddt
|�d|�|jd|ddt
|�d|	dd�|
jdddd
dd�dS(Nslabel.padX 4R,sChooser WidgetsREttixComboBoxt
tixControlt	tixSelectt
tixOptionMenuttixFileEntryttixFileSelectBoxsTool BarRiR[R\s%33t&tbottomi����s%66(R�R	t
LabelFrametMkTitletframetMkCombot	MkControltMkSelectt	MkOptMenut	MkFileEntt	MkFileBoxt	MkToolBarR`tstr(R�RKR=REttiltcbxtctltseltopttfiltfbxttbr((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRNs4







&,&&,cCseddtjdf}tj|ddddd|�}tj|dd	dd
d|�}tj|dddd
dd
d
tjd|�}|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd �|jtjd!�|jd"tjd#d$d%d&�|jd"tjd#d$d%d&�|jd"tjd#d$d%d&�dS('Ns-label.width %d label.anchor %s entry.width %di
iR,tStaticteditableiREtEditableitHistorythistoryR�tJanuarytFebruarytMarchtApriltMaytJunetJulytAugustt	SeptembertOctobertNovembertDecembertAngolat
BangladeshtChinatDenmarktEcuadors/usr/bin/kshs/usr/local/lib/pythons/var/admR)RYiRZi(R	tER�RR�R6Rj(R=REtstaticR�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�0s8!!tBengaltDelhit	Karnatakas
Tamil NaducCshtjtj��|}|dkr8tt�d}n|tt�krSd}ntjt|�dS(Nii(tstatesRtdemo_spintxtR�RR(R=tinctidx((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytspin_cmdTs	cCs:ytjtj��}Wntk
r1tdSXt|S(Ni(R�RR�R�t
ValueError(R=R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt
spin_validate^s

	cCs�ddtjdf}tj�atjtd�tj|ddd|�}tj|ddd	td|�}|d
�|d<|d�|d
<|d�|d<|jdtjdddd�|jdtjdddd�dS(Ns-label.width %d label.anchor %s entry.width %di
i
iR,tNumbersREtStatesR2cSs
t|d�S(Ni(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0rRtincrcmdcSs
t|d�S(Ni����(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0sRtdecrcmdcSs
t|�S(N(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0tRtvalidatecmdR)RYiRZi(	R	R�R
R�RR�tControlR6Rj(R=REtsimpletspintxt((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�hs	cCs�dtj}tj|dddddddtjdtjd	|�}tj|dd
dddddtjdtjd	|�}|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdtjddddd tj�|jdtjddddd tj�dS(!Nslabel.anchor %sR,sMere Mortalst	allowzeroitradiotorientationt	labelsideREtGeeksiteatR$tEattworktWorktplaytPlaytpartytPartytsleeptSleeptprog1tProgramtprog2tprog3R)RYiRZiRb(	R	tCENTERtSelecttVERTICALRjRWR6R7Rk(R=REtsel1tsel2((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�ys*
						(cCs�dtj}tj|ddd|�}|jddd�|jddd�|jd	dd
�|jddd�|jd
�|jddd�|jddd�|jdtjdddd�dS(Ns#menubutton.width 15 label.anchor %sR,sFile Format : RER$s
Plain Texttpostt
PostScripttformatsFormatted TextthtmltHTMLtsepttextLaTeXtrtfsRich Text FormatRbRYiRZi(R	R�t
OptionMenuR:R6Rk(R=REtm((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s

cCs�tj|dtjdddtjdd�}tj|dd�}|jd	tjd
ddtjd
ddd�|jd	tjdtjd
ddd�dS(NR#R�i�R�R$sGPress the "open file" icon button and a TixFileSelectDialog will popup.R,sSelect a file : R)RciRbRYiRZ(	R	R�tFLATR�t	FileEntryR6RjRmRk(R=R�tent((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	.cCs�tj|dtjdddtjdd�}tj|�}|jdtjdd	d
tjddd
d�|jdtjd
tjddd
d�dS(s�The FileSelectBox is a Motif-style box with various enhancements.
    For example, you can adjust the size of the two listboxes
    and your past selections are recorded.
    R#R�i�R�R$s�The Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.R)RciRbRYiRZN(	R	R�R"R�t
FileSelectBoxR6RjRmRk(R=R�tbox((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	.cCs;d}tj|dtjdddtjdd�}tj|dd	dtj�}tj|d
ddd
ddd|�}tj|d
d
ddddd|�}|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d �|jd!ddtj	d"�|j
d#tjd$dd%tjd&d'd(d'�|j
d#tjd%tj
d&d'd(d'�|j
i|d)6d#tjd&d'd(d'�|j
i|d)6d#tjd&d'd(d'�d*S(+sHThe Select widget is also good for arranging buttons in a tool bar.
    sframe.borderWidth 1R#R�i�R�R$sCThe Select widget is also good for arranging buttons in a tool bar.R"iR�iRiR,RREtboldtbitmapt@s/bitmaps/bold.xbmtitalics/bitmaps/italic.xbmR&s/bitmaps/underline.xbmtcapitals/bitmaps/capital.xbmR[s/bitmaps/leftj.xbmR\s/bitmaps/rightj.xbmtcenters/bitmaps/centerj.xbmtjustifys/bitmaps/justify.xbmR)RcRbRYiRZtinN(R	R�R"R�R3R4RRWR_RR6RjRmRkR7(R=RER�R�R�tpara((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s&	''.()cCs_tj|dtjdddtjdd�}|jdtjdd	d
tjddd
d�dS(NR#R�i�R�R$seThere are many types of "chooser" widgets that allow the user to input different types of informationR)RciRbRYiRZ(R	R�R"R�R6RjRm(R=R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	c	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}tj|ddd|�}t|j�t|j�t|j�|jddd	dd
ddd
�|jddd	|d
ddd
�|jddd	|d
d
dd
�dS(Nslabel.padX 4R,sTix.ScrolledListBoxREsTix.ScrolledWindowsTix.ScrolledTextRiR[R\s%33R�i����s%66(R�R	R�tMkSListR�t	MkSWindowtMkSTextR`(R�RKR=REtslstswntstx((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRP�s


""cCstj|dddd�}tj|�}tj|dtjdddtjdd	�}tj|d
d�}|jdd
dddddd�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�tj
|dddtjdddddd
d d!�}tj|dd"d#||d$��}|j
d%�|jd&tj�|jdtj�|jd'dd&tj�|jd&tj�|jd(d)d%||d*��d+S(,s�This TixScrolledListBox is configured so that it uses scrollbars
    only when it is necessary. Use the handles to resize the listbox and
    watch the scrollbars automatically appear and disappear.  R�i,R�iJR#i�R�R$s�This TixScrolledListBox is configured so that it uses scrollbars only when it is necessary. Use the handles to resize the listbox and watch the scrollbars automatically appear and disappear.R�R�txi2tyi�ixiPtAlabamat
CaliforniatMontanas
New JerseysNew YorktPennsylvaniat
WashingtonRFtblackt
handlesizeitgriddeditminwidtht	minheightitResetR.cSs
t||�S(N(tSList_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0RiRbRcs<Map>tfunccSs%|jjdt|�dt|��S(Nt
tixDoWhenIdletattachwidget(RwtcallR�(targtrhtlist((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0sN(R	R3R�R"R�tScrolledListBoxtplaceR�RR�tResizeHandleR4tButtont	propagateR6RkRRmtbind(R=RtbotR�RJRItbtn((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�s0	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6i2R7i�R�ixR�iP(RLtupdatet
attach_widget(RIRJ((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRC
s"
cCs�d}tjjtjdd�}tjj|�s@|d7}ntj|dddd�}tj|�}tj|dtj	dd	d
tj
d|�}tj|dd
�}|jj
dd|�}tj|jd|�}|jdddtj�|jdddddddd�tj|dddtjdddddd d!d�}	tj|dd"d#|	|d$��}
|jd%�|jdtj�|
jd
tj�|jdddtj�|jdtj�|jd&d'd%|	|d(��d)S(*s�The ScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.
    s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.tbitmapsstix.gifs (Image missing)R�iJR�R#i�R�R$R�R�tphotoR>timageRciRbR6iR7i�i�ixRFR=R>iR?R@i2RARBR.cSs
t||�S(N(t
SWindow_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0,Ris<Map>RDcSs%|jjdt|�dt|��S(NRERF(RwRGR�(RHRIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR03sN(RRtjoinR_RtisfileR	R3R�R"R�R�R�timage_createR]R6RmRLRMR4RNRORkRRP(R=R$R>RRQR�R�timage1tlblRIRR((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR1s0
	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6iR7i�R�i�R�ix(RLRSRT(RIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRX6s"
cCs�tj|dddd�}tj|�}tj|dtjdddtjdd�}tj|d	d
�}d|jd<|jjtjd
�|j	dddddddd�tj
|dddtjdddddddd�}tj|ddd||d��}|j
d �|jd!tj�|jdtj�|jd"dd!tj�|jd!tj�|jd#d$d ||d%��d&S('s�The TixScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.R�iJR�R#i�R�R$s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.R�R�R�twraps�When -scrollbar is set to "auto", the
scrollbars are shown only when needed.
Additional modifiers can be used to force a
scrollbar to be shown or hidden. For example,
"auto -y" means the horizontal scrollbar
should be shown when needed but the vertical
scrollbar should always be hidden;
"auto +x" means the vertical scrollbar
should be shown when needed but the horizontal
scrollbar should always be shown, and so on.R6iR7i�i�idRFR=R>iR?iR@i2RARBR.cSs
t||�S(N(tSText_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0VRiRbRcs<Map>RDcSs%|jjdt|�dt|��S(NRERF(RwRGR�(RHRIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0\sN(R	R3R�R"R�tScrolledTextR$RR�RLRMR4RNROR6RkRRmRP(R=RRQR�R�RIRR((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR2;s(	
	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6iR7i�R�i�R�ix(RLRSRT(RIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR__s"
c	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}t|j�t|j�|jddddd	|d
d�|jddd	dd
d�dS(Nslabel.padX 4R,sTix.PanedWindowREsTix.NoteBookRiR[R\R�i����(R�R	R�t
MkPanedWindowR�t
MkNoteBookR`(R�RKR=REtpanetnote((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRRds

"cCs[tj|dtjdddtjdd�}tj|ddd	d
�}|jjdd�tj|d
d�}|jddddd�}|jddd�}tj	|�}tj
|�}|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jd|j
d<d|j
d<|j
jtjd�|jdd d!tjd"d#d$d%�|jdd d!tjd"d#d$d%�|jd&tjd"d'd$d'd!tj�|jd&tjd"d'd$d'd!tj�|jd&tjd"d'd$d'd!tjdd �d(S()s�The PanedWindow widget allows the user to interactively manipulate
    the sizes of several panes. The panes can be arranged either vertically
    or horizontally.
    R#R�i�R�R$s�The PanedWindow widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally.R,s
Newsgroup:REsentry.width 25iscomp.lang.pythonRtverticalRJtminiFtsizeids+  12324 Re: Tkinter is good for your healths++ 12325 Re: Tkinter is good for your healthsH+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12327 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12329 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)RFR�R^sO
Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
Lines 353       A new way to put text and bitmaps together iNo responses
ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

Hi,

I have implemented a new image type called "compound". It allows you
to glue together a bunch of bitmaps, images and text strings together
to form a bigger image. Then you can use this image with widgets that
support the -image option. For example, you can display a text string
together with a bitmap, at the same time, inside a TK button widget.
RciRbRYiRZiR)iN(R	R�R"R�t
LabelEntryR�RtPanedWindowRWRKR`R�R�R$R6RmRj(R=R�tgroupRctp1tp2RJR$((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRaqs4	
%%((c	Cs�tj|dtjdddtjdd�}ddd	tjf}tj|d
dddd
|�}|jddddd�|jddddd�tj|j�}|j	dtj
dddddtj�t|�tj
|jdddd�}tj
|jdddd�}tj
|jdddd�}tj
|jdd dd!�}|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�tj|j�}|j	dtj
dddddtj�t|�tj
|jdddd�}tj
|jdddd�}tj
|jdddd�}tj
|jdd dd!�}tj
|jdddd#�}|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd$dd$dtj�|j	dtjdd%dd%dtjd&d'�dS((NR#R�i�R�R$sSThe NoteBook widget allows you to layout a complex interface into individual pages.s-entry.width %d label.width %d label.anchor %si
iRCiRDREt	hard_diskR,s	Hard DiskR&itnetworktNetworkR)RYiRZRbR�is
Access Time: i�sWrite Throughput: sRead Throughput: i�s
Capacity: isUsers: iiRci(R	R�R"R�R�RVRWR3RmR6R8tYtCreateCommonButtonsR�RjRnRm(	R=R�RER�tcommontatrtctu((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRb�sB	!(
(
(cCsxtj|dddd�}tj|dddd�}|jdtjddd	d�|jdtjddd	d�dS(
NR$tOKR�itCancelR)RYiRZ(R	RNR6Rj(tftoktcancel((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRq�sc	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}t|j�t|j�|jddddd	d
dd�|jdddd
d	ddd�dS(
Nslabel.padX 4R,sTix.DirListREsTix.ExFileSelectBoxRiR[R\s%40R�i����(R�R	R�tMkDirListWidgetR�tMkExFileWidgetR`(R�RKR=RERtfsbox((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRS�s

"cCs�tj|dtjdddtjdd�}tj|dd�}|jd	tjd
ddtjd
ddd�|jd	tjd
ddd�dS(s�The TixDirList widget gives a graphical representation of the file
    system directory and makes it easy for the user to choose and access
    directories.
    R#R�i�R�R$s�The Tix DirList widget gives a graphical representation of the file system directory and makes it easy for the user to choose and access directories.REs+hlist.padY 1 hlist.width 25 hlist.height 16R)RciRbRYiRZN(R	R�R"R�tDirListR6RjRm(R=R�tdirlist((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR|�s	.cCs�tj|dtjdddtjdd�}tj|dddtj�}|jd	tjd
ddtjd
ddd�|jd	tjd
ddd�dS(s]The TixExFileSelectBox widget is more user friendly than the Motif
    style FileSelectBox.  R#R�i�R�R$sXThe Tix ExFileSelectBox widget is more user friendly than the Motif style FileSelectBox.R"iR)RciRbRYiRZN(	R	R�R"R�tExFileSelectBoxR4R6RjRm(R=R�R&((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR}�s	.sWidget DemostwidgetsImage DemosRWRitBtnBoxs
Button BoxR�s	Combo BoxtCmpImgsCompound ImageRsDirectory ListtDirTreesDirectory TreeR�RVtNotebooktOptMenusOption MenutPanedWinsPaned WindowtPopMenus
Popup MenutSHList1sScrolledHList (1)tSHList2sScrolledHList (2)tTreesTree (dynamic)cCsv|j|�}d}tj|dd�}|jdtjdddtj�|jddd	�}|jd
dd�}d|d
<d|d
<tj|dd�}|jdtjdddtjdddd�tj|dd�}|jdtjdddtjdddd�tj|j	dd�}	|	jdtjdddtjdd�tj
|j	dd�}
tjj
d�}|
jjd|�tj|j	dd�}tj|d
ddd�}
tj|d
ddd�}|
jdtjdddtj�|jdtjdddtj�|	jd |
jd <d!|
jd"<d#|
jd$<d%|
jd&<|jdtjdddtjdd'�|
jdtjdddtjdd'�d(|	jd)<d*|	jd&<d|	jd+<d,|	jd-<d|	jd.<d||	|
|
|d/�|	jd0<d||	|
|
|d1�|	jd2<d||	|
|
|d3�|
d0<d||	|
|
|d4�|d0<x�d5d6gD]�}|d5kr�tj|	jd7d8d9d8d&d:d
tjd |	jd �}|	jjd;tjd<|d"d!�n|	jjd;tjd"d!d
t|�}x7t|D]+}|	jj|d;tjd=|d
|�qWqzW|	jj�d!|
d"<d!|d"<dS(>Nslabel.padX 4Rt
horizontalR)RciRbRJR�R$t5tflatR#R,sSelect a sample program:RYiRZsSource:REshlist.width 20RKtstextstix option get fixed_fontR�R�sRun ...trunsView Source ...tviewiRFtdisabledR�R�R^iPR�it.t	separatorit
drawbranchi
tindentt
wideselectcSst|||||d�S(NR�(t
Sample_Action(targsR=tslbR�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RR.cSst|||||d�S(Ntbrowse(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�Rt	browsecmdcSst|||||d�S(NR�(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RcSst|||||d�S(NR�(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RR�RWR"iR�i�titemtypeR�tdata(R�R	RiR6RjRmRWR�R�R�R`RRwtevalR$tconfigR3RNR7tNONEthlistRlRkR^t	add_childtWINDOWtTEXTtcommentststypestselection_clear(R�RKR=RERctf1tf2tlabtlab1R�R�R�R�R�R�ttypeR6tkey((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRUksd"

..(""


((




""!%


cBs@|j}|j�}|s2d|d<d|d<n|j|�sEdSd|d<d|d<|j|�}|}	e|}
|dkr�d|
dUej�}|j|	�e|
d�}||�nv|dkrej�}|jd|	�e	|t
jd	|
d
�n.|dkr<e|j
t
jd	|
d
�ndS(NR�R�tnormalR�simport s
.RunSampleR�s
Source view: s	/samples/s.pyR�(R�tinfo_anchortinfo_parentt	info_datatsamplesR	tToplevelR�R�tLoadFileR_RtReadFileR$(R=R�R�R�R�tactionR�R�R�R�tprogtrtn((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s0	






cCs�tj|ddd|j�}tj|�}|j�|j�tjjd�}|jj	d|�d|jd<d|jd	<t
|j|�dS(
NR$tCloseR.stix option get fixed_fontR�iR"R�R^(R	RNR�R`R6RRwR�R$R�R�(R=tfnametbR�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s



cCs�|d}d|d<|jdtj�zJt|�}|j�}x!|D]}|jtj|�qIW|j�Wd||d<XdS(NR�R�s0.0(tdeleteR	R�topent	readlinesRtclose(R=R�t	old_stateRytlinests((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s


t__main__iiiii ((8Rtos.pathRR	tTkconstantsRR|t
TCL_DONT_WAITtTCL_WINDOW_EVENTStTCL_FILE_EVENTStTCL_TIMER_EVENTStTCL_IDLE_EVENTSRyRR�RJR�R�R�R<RNR�R�R�R�R�R�R�R�R�R�R�RPR0RCR1RXR2R_RRRaRbRqRSR|R}R�R�R�RUR�R�R�R�tTkR(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt<module>s�0
�	
		%				%	"	
	
									 		'		$		
	/	.				


^
	@			PKe,�ZF���
README.txtnu�[���About Tix.py
-----------

Tix.py is based on an idea of Jean-Marc Lugrin (lugrin@ms.com) who wrote
pytix (another Python-Tix marriage). Tix widgets are an attractive and
useful extension to Tk. See http://tix.sourceforge.net
for more details about Tix and how to get it.

Features:
	1) It is almost complete.
	2) Tix widgets are represented by classes in Python. Sub-widgets
	   are members of the mega-widget class. For example, if a
	   particular TixWidget (e.g. ScrolledText) has an embedded widget
	   (Text in this case), it is possible to call the methods of the
	   child directly.
	3) The members of the class are created automatically. In the case
	   of widgets like ButtonBox, the members are added dynamically.


PKe,�Z��*ϰ�INSTALL.txtnu�[���$Id$

Installing Tix.py
----------------

0) To use Tix.py, you need Tcl/Tk (V8.3.3), Tix (V8.1.1) and Python (V2.1.1).
   Tix.py has been written and tested on an Intel Pentium running RH Linux 5.2
   and Mandrake Linux 7.0 and Windows with the above mentioned packages.

   Older versions, e.g. Tix 4.1 and Tk 8.0, might also work.

   There is nothing OS-specific in Tix.py itself so it should work on
   any machine with Tix and Python installed. You can get Tcl and Tk
   from http://dev.scriptics.com and Tix from http://tix.sourceforge.net.

1) Build and install Tcl/Tk 8.3. Build and install Tix 8.1.
   Ensure that Tix is properly installed by running tixwish and executing
   the demo programs. Under Unix, use the --enable-shared configure option
   for all three. We recommend tcl8.3.3 for this release of Tix.py.

2a) If you have a distribution like ActiveState with a tcl subdirectory
   of $PYTHONHOME, which contains the directories tcl8.3 and tk8.3,
   make a directory tix8.1 as well. Recursively copy the files from
   <tix>/library to $PYTHONHOME/lib/tix8.1, and copy the dynamic library
   (tix8183.dll or libtix8.1.8.3.so) to the same place as the tcl dynamic
   libraries  ($PYTHONHOME/Dlls or lib/python-2.1/lib-dynload). In this
   case you are all installed, and you can skip to the end.

2b) Modify Modules/Setup.dist and setup.py to change the version of the 
   tix library from tix4.1.8.0 to tix8.1.8.3
   These modified files can be used for Tkinter with or without Tix.
   
3) The default is to build dynamically, and use the Tcl 'package require'.
   To build statically, modify the Modules/Setup file to link in the Tix 
   library according to the comments in the file. On Linux this looks like:

# *** Always uncomment this (leave the leading underscore in!):
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
	-L/usr/local/lib \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
	-I/usr/local/include \
# *** Uncomment and edit to reflect where your X11 header files are:
	-I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
#	-I/usr/openwin/include \
# *** Uncomment and edit for BLT extension only:
#	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
# *** Uncomment and edit for PIL (TkImaging) extension only:
#     (See http://www.pythonware.com/products/pil/ for more info)
#	-DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
# *** Uncomment and edit for TOGL extension only:
#	-DWITH_TOGL togl.c \
# *** Uncomment and edit for Tix extension only:
	-DWITH_TIX -ltix8.1.8.3 \
# *** Uncomment and edit to reflect your Tcl/Tk versions:
	-ltk8.3 -ltcl8.3 \
# *** Uncomment and edit to reflect where your X11 libraries are:
	-L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
#	-L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
#	-lGL -lGLU -lXext -lXmu \
# *** Uncomment for AIX:
#	-lld \
# *** Always uncomment this; X11 libraries to link with:
	-lX11

4) Rebuild Python and reinstall.

You should now have a working Tix implementation in Python. To see if all
is as it should be, run the 'tixwidgets.py' script in the Demo/tix directory.
Under X windows, do
	/usr/local/bin/python Demo/tix/tixwidgets.py

If this does not work, you may need to tell python where to find
the Tcl, Tk and Tix library files. This is done by setting the
TCL_LIBRARY, TK_LIBRARY and TIX_LIBRARY environment variables. Try this:

	env 	TCL_LIBRARY=/usr/local/lib/tcl8.3 \
		TK_LIBRARY=/usr/local/lib/tk8.3 \
		TIX_LIBRARY=/usr/local/lib/tix8.1 \
		/usr/local/bin/python Demo/tix/tixwidgets.py


If you find any bugs or have suggestions for improvement, please report them
via http://tix.sourceforge.net


PKe,�Znb!���samples/PanedWin.pycnu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(tDemoPanedwintmainlooptdestroy(troottpanedwin((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt	RunSamples
RcBs,eZd�Zd�Zd�Zd�ZRS(c
Cs�||_d|_|j�}|jd|d��tj|dddd�}|jjdd	�tj|d
d�}|j	dd
ddd�}|j	dd
d�}tj
|�}d|jd<d|jd<tj|�}d|j
d<d|j
d<|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jd|j
d<d|j
d <|j
jtjd!�d"|j
d#<|jd$d%d&tjd'd(d)d*�|jd$d%d&tjd'd(d)d*�|jd+tjd'd,d)d,d&tj�|jd+tjd'd,d)d,d&tjd$d%�tj|d
tj�}	|	j	d-dd.d/ddd*d0|j�|	j	d1dd2d/ddd*d0|j�|	jd+tjd&tj�dS(3Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt<lambda>!ttlabels
Newsgroup:toptionssentry.width 25iscomp.lang.pythontorientationtverticaltlisttminiFtsizeidttextiPtwidthitheightis+  12324 Re: Tkinter is good for your healths++ 12325 Re: Tkinter is good for your healthsH+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12327 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12329 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)tbgtnonetwraps~
    Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
    Lines 353       A new way to put text and bitmaps together iNo responses
    ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

    Hi,

    I have implemented a new image type called "compound". It allows you
    to glue together a bunch of bitmaps, images and text strings together
    to form a bigger image. Then you can use this image with widgets that
    support the -image option. For example, you can display a text string string
    together with a bitmap, at the same time, inside a TK button widget.
    tdisabledtstatetexpanditfilltpadxitpadyitsideitoktOkt	underlinetcommandtcanceltCancel(Rtexittwinfo_topleveltwm_protocoltTixt
LabelEntrytentrytinserttPanedWindowtaddtScrolledListBoxtlistboxtScrolledTextRtENDtpacktBOTHtTOPt	ButtonBoxt
HORIZONTALRtBOTTOMtX(
Rtwtztgrouptpanetp1tp2RRtbox((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt__init__sJ		





%%(.

cCs
d|_dS(Ni(R%(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRVscCs-x&|jdkr(|jjjt�qWdS(Ni(R%Rttkt
dooneeventtTCL_ALL_EVENTS(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRYscCs|jj�dS(N(RR(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyR]s(t__name__t
__module__R@RRR(((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRs	:		t__main__((R(RCRRRDtTkR(((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt<module>s	EPKe,�Z�3U
��samples/DirList.pyonu�[����
��^c@s�ddlZddlZddlZddlTdZd�Zddd��YZedkr�ddlZddl	Z	yej
�Zee�Wq�ej
�\ZZZdZxAe	jeee�D]&Zeed	Zejd
e�Zq�Wq�XndS(i����N(t*icCs$t|�}|j�|j�dS(N(tDemoDirListtmainlooptdestroy(troottdirlist((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt	RunSamples
RcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(c
Csc||_d|_|j�}|jd|d��tj|dtdd�}tj|�|_d|jj	d<tj
|d	d
dd�|_tj|d
ddddd�|_
|jjjd�}||j
jd<tjtj�|_|j|j
jd<|j|j
|d�|jd<|j
jjd|d��|jdddddt�|jjdddtdd dd dt�|jjd!d"dd dd dt�|j
jdddtd!d"dd dd dt�tj|d#d$�}|jd%d	d&d'ddd(d|d)��|jd*d	d+d'ddd(d|d,��|jd!d"dd-dt�dS(.Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt<lambda>#ttrelieftbdii(twidthttexts  >>  tpadyitlabelsInstallation Directory:t	labelsidettoptoptionss�
                                  entry.width 40
                                  label.anchor w
                                  stix option get fixed_fonttfontttextvariablecSs|j||�S(N(t	copy_name(tdirtentR	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
Kstcommands<Return>cSs
|j�S(N(tokcmd(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
ORtexpandtyestfilltbothtsidetpadxitanchortstorientationt
horizontaltoktOkt	underlineicSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
ZRtcanceltCancelcSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
\Rtx(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDtDirListRthlisttButtontbtnt
LabelEntryRttktevaltentrytcopytostcurdirt	dlist_dirtbindtpacktTOPtBOTHtLEFTtXt	ButtonBoxtaddtBOTTOM(R	twtzRRtbox((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt__init__s6		+%1

cCs?|jd�|_|jjdd�|jjd|j�dS(Ntvalueitend(tcgetR=R9tdeletetinsert(R	RR((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR`scCs|j�dS(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRgscCs
d|_dS(Ni(R,(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRkscCs-x&|jdkr(|jjjt�qWdS(Ni(R,RR7t
dooneeventtTCL_ALL_EVENTS(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRnscCs|jj�dS(N(RR(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRrs(t__name__t
__module__RJRRRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRs	B				t__main__sError running the demo script:
s
sTix Demo Error((R/R;R:tTkconstantsRQRRRRttkMessageBoxt	tracebacktTkRtsystexc_infotttvttbRtformat_exceptiontlinet	showerrortd(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt<module>s$
	[PKe,�Zzd��3	3	samples/Tree.pyonu�[����
��^c@sfddlZddlZd�Zd�Zd�Zedkrbej�Zee�ej�ndS(i����NcCs+tj|dtjdd�}tj|dd�}|jdddtjdd	d
d	dtj�d|d�|d
<t|d�tj	|dtj
�}|jdddddd|jdd�|jdddddd|jdd�|jdtj
dtj�|jdtjdtjdd�dS(Ntrelieftbditoptionss
separator "/"texpandtfilltpadxi
tpadytsidecSs
t||�S(N(topendir(tdirtw((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt<lambda>ttopencmdt/torientationtokttexttOkt	underlineitcommandtwidthitcanceltCancel(tTixtFrametRAISEDtTreetpacktBOTHtLEFTtNonetadddirt	ButtonBoxt
HORIZONTALtaddtdestroytBOTTOMtXtTOP(R
ttopttreetbox((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt	RunSamples.
((cCs�|dkrd}ntjj|�}|jj|dtjd|d|jjddd��y!tj	|�|j
|d�Wntjk
r�nXdS(	NRtitemtypeRtimagettixtgetimagetfoldertopen(tostpathtbasenamethlistR#Rt	IMAGETEXTttktcalltlistdirtsetmodeterror(R)R	R((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR #s	
cCs�|jj|�}|r<x!|D]}|jj|�qWntj|�}x|D]w}tjj|d|�r�t||d|�qR|jj|d|dt	j
d|d|jjddd��qRWdS(NRR,RR-R.R/tfile(
R5t
info_childrent
show_entryR2R9R3tisdirR R#RR6R7R8(R)R	tentriestentrytfilesR<((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR9s

&t__main__(	RR2R+R Rt__name__tTktroottmainloop(((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt<module>s			
PKe,�Z��J��samples/DirTree.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
#       $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py":  it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program using tixwish.

# This file demonstrates the use of the tixDirTree widget -- you can
# use it for the user to select a directory. For example, an installation
# program can use the tixDirTree widget to ask the user to select the
# installation directory for an application.
#

import Tix, os, copy
from Tkconstants import *

TCL_ALL_EVENTS          = 0

def RunSample (root):
    dirtree = DemoDirTree(root)
    dirtree.mainloop()
    dirtree.destroy()

class DemoDirTree:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        # Create the tixDirTree and the tixLabelEntry widgets on the on the top
        # of the dialog box

        # bg = root.tk.eval('tix option get bg')
        # adding bg=bg crashes Windows pythonw tk8.3.3 Python 2.1.0

        top = Tix.Frame( w, relief=RAISED, bd=1)

        # Create the DirTree widget. By default it will show the current
        # directory
        #
        #
        top.dir = Tix.DirTree(top)
        top.dir.hlist['width'] = 40

        # When the user presses the ".." button, the selected directory
        # is "transferred" into the entry widget
        #
        top.btn = Tix.Button(top, text = "  >>  ", pady = 0)

        # We use a LabelEntry to hold the installation directory. The user
        # can choose from the DirTree widget, or he can type in the directory
        # manually
        #
        top.ent = Tix.LabelEntry(top, label="Installation Directory:",
                                  labelside = 'top',
                                  options = '''
                                  entry.width 40
                                  label.anchor w
                                  ''')

        self.dlist_dir = copy.copy(os.curdir)
        top.ent.entry['textvariable'] = self.dlist_dir
        top.btn['command'] = lambda dir=top.dir, ent=top.ent, self=self: \
                             self.copy_name(dir,ent)

        top.ent.entry.bind('<Return>', lambda self=self: self.okcmd () )

        top.pack( expand='yes', fill='both', side=TOP)
        top.dir.pack( expand=1, fill=BOTH, padx=4, pady=4, side=LEFT)
        top.btn.pack( anchor='s', padx=4, pady=4, side=LEFT)
        top.ent.pack( expand=1, fill=X, anchor='s', padx=4, pady=4, side=LEFT)

        # Use a ButtonBox to hold the buttons.
        #
        box = Tix.ButtonBox (w, orientation='horizontal')
        box.add ('ok', text='Ok', underline=0, width=6,
                     command = lambda self=self: self.okcmd () )
        box.add ('cancel', text='Cancel', underline=0, width=6,
                     command = lambda self=self: self.quitcmd () )

        box.pack( anchor='s', fill='x', side=BOTTOM)

    def copy_name (self, dir, ent):
        # This should work as it is the entry's textvariable
        self.dlist_dir = dir.cget('value')
        # but it isn't so I'll do it manually
        ent.entry.delete(0,'end')
        ent.entry.insert(0, self.dlist_dir)

    def okcmd (self):
        # tixDemo:Status "You have selected the directory" + self.dlist_dir
        self.quitcmd()

    def quitcmd (self):
        # tixDemo:Status "You have selected the directory" + self.dlist_dir
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()

# This "if" statement makes it possible to run this script file inside or
# outside of the main demo program "tixwidgets.py".
#
if __name__== '__main__' :
    root=Tix.Tk()
    RunSample(root)
PKe,�Z�?�samples/CmpImg.pyonu�[����
��^c@s`ddlZdZdZdZdZd�Zedkr\ej�Zee�ej	�ndS(i����Ns�/* XPM */
static char * netw_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 7 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #404040",
"+      c blue",
"@      c red",
/* pixels */
"                                ",
"                 .............. ",
"                 .XXXXXXXXXXXX. ",
"                 .XooooooooooO. ",
"                 .Xo.......XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++oo++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.+o++++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.XXXXXXXoO. ",
"                 .XooooooooooO. ",
"                 .Xo@ooo....oO. ",
" ..............  .XooooooooooO. ",
" .XXXXXXXXXXXX.  .XooooooooooO. ",
" .XooooooooooO.  .OOOOOOOOOOOO. ",
" .Xo.......XoO.  .............. ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++oo++XoO.        @        ",
" .Xo.++++++XoO.        @        ",
" .Xo.+o++++XoO.        @        ",
" .Xo.++++++XoO.      .....      ",
" .Xo.XXXXXXXoO.      .XXX.      ",
" .XooooooooooO.@@@@@@.X O.      ",
" .Xo@ooo....oO.      .OOO.      ",
" .XooooooooooO.      .....      ",
" .XooooooooooO.                 ",
" .OOOOOOOOOOOO.                 ",
" ..............                 ",
"                                "};
su/* XPM */
static char * drivea_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 5 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #800080008000",
/* pixels */
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"   ..........................   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXo.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .Xoo...................oO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .oOOOOOOOOOOOOOOOOOOOOOOO.   ",
"   ..........................   ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                "};
su
#define netw_width 32
#define netw_height 32
static unsigned char netw_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x02, 0x40,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x52,
   0x00, 0x00, 0x0a, 0x52, 0x00, 0x00, 0x8a, 0x51, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0x4a, 0x50, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x02, 0x40, 0xfe, 0x7f, 0x52, 0x55,
   0x02, 0x40, 0xaa, 0x6a, 0xfa, 0x5f, 0xfe, 0x7f, 0x0a, 0x50, 0xfe, 0x7f,
   0x0a, 0x52, 0x80, 0x00, 0x0a, 0x52, 0x80, 0x00, 0x8a, 0x51, 0x80, 0x00,
   0x0a, 0x50, 0x80, 0x00, 0x4a, 0x50, 0x80, 0x00, 0x0a, 0x50, 0xe0, 0x03,
   0x0a, 0x50, 0x20, 0x02, 0xfa, 0xdf, 0x3f, 0x03, 0x02, 0x40, 0xa0, 0x02,
   0x52, 0x55, 0xe0, 0x03, 0xaa, 0x6a, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00,
   0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
s{
#define drivea_width 32
#define drivea_height 32
static unsigned char drivea_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0xf8, 0xff, 0xff, 0x1f, 0x08, 0x00, 0x00, 0x18, 0xa8, 0xaa, 0xaa, 0x1a,
   0x48, 0x55, 0xd5, 0x1d, 0xa8, 0xaa, 0xaa, 0x1b, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xfa, 0xaf, 0x1a, 0xc8, 0xff, 0xff, 0x1d, 0xa8, 0xfa, 0xaf, 0x1a,
   0x48, 0x55, 0x55, 0x1d, 0xa8, 0xaa, 0xaa, 0x1a, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xaa, 0xaa, 0x1a, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
cCs�tjddt�|_|js<tjddt�|_ntjddt�|_|jsxtjddt�|_ntj|dddddd	�}tj|dddddd	�}tjd
d|�|_	|j	j
jt|j	�dd
�|j	j
jt|j	�dddddd�|j	j
jt|j	�dddd�|j	j
jt|j	�ddd|j�|j	|d<tjd
d|�|_
|j
j
jt|j
�dd
�|j
j
jt|j
�dddddd�|j
j
jt|j
�dddd�|j
j
jt|j
�ddd|j�|j
|d<tj|ddddd|d��}|jdtjdddddtjdd�|jdtjdddddtjdd�|jdtjdddddtjdd�dS( Ntpixmaptdatatbitmaptpadxitpadyitwidthixtcompoundtwindowtaddtlinettexts-texts	Hard Disks
-underlinet0tspaces-widtht7timages-imagetNetworktClosetcommandcSs
|j�S(N(tdestroy(tw((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt<lambda>�ttsidei
tfilltexpand(tTixtImagetnetwork_pixmaptimg0tnetwork_bitmapthard_disk_pixmaptimg1thard_disk_bitmaptButtonthdd_imgttktcalltstrtnet_imgtpacktLEFTtY(Rthddtnettclose((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt	RunSample�s6		!!"$
(+
"$
(+
..t__main__(
RRRRR R-t__name__tTktroottmainloop(((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt<module>s/-	/
PKe,�Zi�|##samples/Control.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixControl widget -- it is an
# entry widget with up/down arrow buttons. You can use the arrow buttons
# to adjust the value inside the entry widget.
#
# This example program uses three Control widgets. One lets you select
# integer values; one lets you select floating point values and the last
# one lets you select a few names.

import Tix

TCL_ALL_EVENTS          = 0

def RunSample (root):
    control = DemoControl(root)
    control.mainloop()
    control.destroy()

class DemoControl:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        global demo_maker, demo_thrust, demo_num_engines

        demo_maker = Tix.StringVar()
        demo_thrust = Tix.DoubleVar()
        demo_num_engines = Tix.IntVar()
        demo_maker.set('P&W')
        demo_thrust.set(20000.0)
        demo_num_engines.set(2)

        top = Tix.Frame(w, bd=1, relief=Tix.RAISED)

        # $w.top.a allows only integer values
        #
        # [Hint] The -options switch sets the options of the subwidgets.
        # [Hint] We set the label.width subwidget option of the Controls to
        #        be 16 so that their labels appear to be aligned.
        #
        a = Tix.Control(top, label='Number of Engines: ', integer=1,
                        variable=demo_num_engines, min=1, max=4,
                        options='entry.width 10 label.width 20 label.anchor e')

        b = Tix.Control(top, label='Thrust: ', integer=0,
                        min='10000.0', max='60000.0', step=500,
                        variable=demo_thrust,
                        options='entry.width 10 label.width 20 label.anchor e')

        c = Tix.Control(top, label='Engine Maker: ', value='P&W',
                        variable=demo_maker,
                        options='entry.width 10 label.width 20 label.anchor e')

        # We can't define these in the init because the widget 'c' doesn't
        # exist yet and we need to reference it
        c['incrcmd'] = lambda w=c: adjust_maker(w, 1)
        c['decrcmd'] = lambda w=c: adjust_maker(w, -1)
        c['validatecmd'] = lambda w=c: validate_maker(w)

        a.pack(side=Tix.TOP, anchor=Tix.W)
        b.pack(side=Tix.TOP, anchor=Tix.W)
        c.pack(side=Tix.TOP, anchor=Tix.W)

        box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
        box.add('ok', text='Ok', underline=0, width=6,
                command=self.okcmd)
        box.add('cancel', text='Cancel', underline=0, width=6,
                command=self.quitcmd)
        box.pack(side=Tix.BOTTOM, fill=Tix.X)
        top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

    def okcmd (self):
        # tixDemo:Status "Selected %d of %s engines each of thrust %d", (demo_num_engines.get(), demo_maker.get(), demo_thrust.get())
        self.quitcmd()

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()

maker_list = ['P&W', 'GE', 'Rolls Royce']

def adjust_maker(w, inc):
    i = maker_list.index(demo_maker.get())
    i = i + inc
    if i >= len(maker_list):
        i = 0
    elif i < 0:
        i = len(maker_list) - 1

    # In Tcl/Tix we should return the string maker_list[i]. We can't
    # do that in Tkinter so we set the global variable. (This works).
    demo_maker.set(maker_list[i])

def validate_maker(w):
    try:
        i = maker_list.index(demo_maker.get())
    except ValueError:
        # Works here though. Why ? Beats me.
        return maker_list[0]
    # Works here though. Why ? Beats me.
    return maker_list[i]

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
PKe,�ZB~g��samples/SHList2.pycnu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(t
DemoSHListtmainlooptdestroy(troottshlist((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs%||_d|_|j�}|jd|d��tj|dtjdd�}tj|dd�|_|jj	d	dd
tj
ddd
ddtj�|jj}|j
jdddd�}i}tjtjd|dtjddd
dd|�|d<|jddtjddd|d�|jddtjddd|d�|jdd�dN}dOdPdQg}dRdSdTdUdVdWdXg}	tjtjd|�|d:<tjtjddd|�|d;<tjtjd|�|d<<tjtjddd|�|d=<|jd>d?d@dAdBddCd�|jddDdE�|jd?dtjd|dd|d:�|jd?ddtjd|dd|d;�xp|D]h\}
}}d?|
}
|j|
dtjd|d|d:�|j|
ddtjd|d|d;�q�Wxr|	D]j\}
}}}d?|d?|
}|j|d|d|d<�|j|ddtjd|d|d=�q
Wtj|dFtj�}|jdGddHdIdd@dJdK|j�|jdLddMdIdd@dJdK|j�|j	dtjd
tj�|j	dtjd
tj
d	d�dS(YNi����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt<lambda>"ttrelieftbditoptionsshlist.columns 3 hlist.header 1texpandtfilltpadxi
tpadytsidettixtoptiontgett	bold_fontt	refwindowtanchoriitfonttheaderititemtypettexttNametstyletPositiontdoesJohn DoetDirectortjeffsJeff WaxmantManagertjohnsJohn LeetpetersPeter KensontalexsAlex KellmantClerktalans
Alan AdamstandysAndreas CrawfordtSalesmantdougs
Douglas Bloomtjons
Jon BarakitchrissChris GeoffreytchucksChuck McLeantCleanertmgr_nametmgr_posnt	empl_namet	empl_posnt	separatort.twidthit
drawbranchtindenttcharsitorientationtoktOkt	underlineitcommandtcanceltCancel(R sJohn DoeR!(R"sJeff WaxmanR#(R$sJohn LeeR#(R%sPeter KensonR#(R&R$sAlex KellmanR'(R(R$s
Alan AdamsR'(R)R%sAndreas CrawfordR*(R+R"s
Douglas BloomR'(R,R%s
Jon BarakiR*(R-R"sChris GeoffreyR'(R.R"sChuck McLeanR/(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDt
ScrolledHListtatpacktBOTHtTOPthlistttktcalltDisplayStyletTEXTtCENTERt
header_createtcolumn_widthtconfigtaddtitem_createt	ButtonBoxt
HORIZONTALtokcmdRtBOTTOMtX(RtwtzttopRLtboldfontRtbosstmanagerst	employeestkeytnametposntetmgrt	entrypathtbox((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt__init__sp		1"		""""


cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyRY�scCs
d|_dS(Ni(RA(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�scCs-x&|jdkr(|jjjt�qWdS(Ni(RARRMt
dooneeventtTCL_ALL_EVENTS(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�scCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�s(t__name__t
__module__RjRYRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyRs
	x			t__main__((RDRlRRRmtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt<module>s	�PKf,�Zs�Rgsamples/SHList2.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidget": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program using tixwish.

# This file demonstrates how to use multiple columns and multiple styles
# in the tixHList widget
#
# In a tixHList widget, you can have one ore more columns.
#

import Tix

TCL_ALL_EVENTS          = 0

def RunSample (root):
    shlist = DemoSHList(root)
    shlist.mainloop()
    shlist.destroy()

class DemoSHList:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        # We create the frame and the ScrolledHList widget
        # at the top of the dialog box
        #
        top = Tix.Frame( w, relief=Tix.RAISED, bd=1)

        # Put a simple hierachy into the HList (two levels). Use colors and
        # separator widgets (frames) to make the list look fancy
        #
        top.a = Tix.ScrolledHList(top, options='hlist.columns 3 hlist.header 1' )
        top.a.pack( expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.TOP)

        hlist=top.a.hlist

        # Create the title for the HList widget
        #       >> Notice that we have set the hlist.header subwidget option to true
        #      so that the header is displayed
        #

        boldfont=hlist.tk.call('tix','option','get','bold_font')

        # First some styles for the headers
        style={}
        style['header'] = Tix.DisplayStyle(Tix.TEXT, refwindow=hlist,
            anchor=Tix.CENTER, padx=8, pady=2, font = boldfont )

        hlist.header_create(0, itemtype=Tix.TEXT, text='Name',
            style=style['header'])
        hlist.header_create(1, itemtype=Tix.TEXT, text='Position',
            style=style['header'])

        # Notice that we use 3 columns in the hlist widget. This way when the user
        # expands the windows wide, the right side of the header doesn't look
        # chopped off. The following line ensures that the 3 column header is
        # not shown unless the hlist window is wider than its contents.
        #
        hlist.column_width(2,0)

        # This is our little relational database
        #
        boss = ('doe', 'John Doe',      'Director')

        managers = [
            ('jeff',  'Jeff Waxman',    'Manager'),
            ('john',  'John Lee',               'Manager'),
            ('peter', 'Peter Kenson',   'Manager')
        ]

        employees = [
            ('alex',  'john',   'Alex Kellman',         'Clerk'),
            ('alan',  'john',       'Alan Adams',               'Clerk'),
            ('andy',  'peter',      'Andreas Crawford', 'Salesman'),
            ('doug',  'jeff',       'Douglas Bloom',    'Clerk'),
            ('jon',   'peter',      'Jon Baraki',               'Salesman'),
            ('chris', 'jeff',       'Chris Geoffrey',   'Clerk'),
            ('chuck', 'jeff',       'Chuck McLean',             'Cleaner')
        ]

        style['mgr_name'] = Tix.DisplayStyle(Tix.TEXT, refwindow=hlist)

        style['mgr_posn'] = Tix.DisplayStyle(Tix.TEXT, padx=8, refwindow=hlist)

        style['empl_name'] = Tix.DisplayStyle(Tix.TEXT, refwindow=hlist)

        style['empl_posn'] = Tix.DisplayStyle(Tix.TEXT, padx=8, refwindow=hlist)

        # Let configure the appearance of the HList subwidget
        #
        hlist.config(separator='.', width=25, drawbranch=0, indent=10)
        hlist.column_width(0, chars=20)

        # Create the boss
        #
        hlist.add ('.',           itemtype=Tix.TEXT, text=boss[1],
            style=style['mgr_name'])
        hlist.item_create('.', 1, itemtype=Tix.TEXT, text=boss[2],
            style=style['mgr_posn'])

        # Create the managers
        #

        for key,name,posn in managers :
            e= '.'+ key
            hlist.add(e, itemtype=Tix.TEXT, text=name,
                style=style['mgr_name'])
            hlist.item_create(e, 1, itemtype=Tix.TEXT, text=posn,
                style=style['mgr_posn'])


        for key,mgr,name,posn in employees :
            # "." is the separator character we chose above

            entrypath = '.' + mgr        + '.' + key

            #           ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
            #       parent entryPath / child's name

            hlist.add(entrypath, text=name, style=style['empl_name'])
            hlist.item_create(entrypath, 1, itemtype=Tix.TEXT,
                text = posn, style = style['empl_posn'] )


        # Use a ButtonBox to hold the buttons.
        #
        box= Tix.ButtonBox(top, orientation=Tix.HORIZONTAL )
        box.add( 'ok',  text='Ok', underline=0,  width=6,
            command = self.okcmd )

        box.add( 'cancel', text='Cancel', underline=0, width=6,
            command = self.quitcmd )

        box.pack( side=Tix.BOTTOM, fill=Tix.X)
        top.pack( side=Tix.TOP,    fill=Tix.BOTH, expand=1 )

    def okcmd (self):
        self.quitcmd()

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()


# This "if" statement makes it possible to run this script file inside or
# outside of the main demo program "tixwidgets.py".
#
if __name__== '__main__' :
    root=Tix.Tk()
    RunSample(root)
PKf,�Z7�:�BBsamples/BtnBox.pyonu�[����
��^c@sHddlZd�ZedkrDej�Zee�ej�ndS(i����NcCs�tj|dddddddtjdtjd	d
�}tj|dtj�}|jdd	d
ddddd|d��|jdd	dddddd|d��|jdtjdtj	�|jdtj
dtjdd�dS(Ntpadxitpadyi
tbditrelieftanchorttexts?This dialog box is
 a demonstration of the
 tixButtonBox widgettorientationtoktOKt	underlineitwidthitcommandcSs
|j�S(N(tdestroy(tw((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt<lambda>#ttclosetCancelcSs
|j�S(N(R(R
((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyR%Rtsidetfilltexpand(tTixtLabeltRAISEDtCENTERt	ButtonBoxt
HORIZONTALtaddtpacktBOTTOMtXtTOPtBOTH(R
ttoptbox((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt	RunSamples'	

t__main__(RR#t__name__tTktroottmainloop(((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt<module>s
	
PKf,�Z���88samples/PopMenu.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
#       $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program using tixwish.

# This file demonstrates the use of the tixPopupMenu widget.
#
import Tix

def RunSample(w):
    # We create the frame and the button, then we'll bind the PopupMenu
    # to both widgets. The result is, when you press the right mouse
    # button over $w.top or $w.top.but, the PopupMenu will come up.
    #
    top = Tix.Frame(w, relief=Tix.RAISED, bd=1)
    but = Tix.Button(top, text='Press the right mouse button over this button or its surrounding area')
    but.pack(expand=1, fill=Tix.BOTH, padx=50, pady=50)

    p = Tix.PopupMenu(top, title='Popup Test')
    p.bind_widget(top)
    p.bind_widget(but)

    # Set the entries inside the PopupMenu widget.
    # [Hint] You have to manipulate the "menu" subwidget.
    #        $w.top.p itself is NOT a menu widget.
    # [Hint] Watch carefully how the sub-menu is created
    #
    p.menu.add_command(label='Desktop', underline=0)
    p.menu.add_command(label='Select', underline=0)
    p.menu.add_command(label='Find', underline=0)
    p.menu.add_command(label='System', underline=1)
    p.menu.add_command(label='Help', underline=0)
    m1 = Tix.Menu(p.menu)
    m1.add_command(label='Hello')
    p.menu.add_cascade(label='More', menu=m1)

    but.pack(side=Tix.TOP, padx=40, pady=50)

    box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
    box.add('ok', text='Ok', underline=0, width=6,
            command=lambda w=w: w.destroy())
    box.add('cancel', text='Cancel', underline=0, width=6,
            command=lambda w=w: w.destroy())
    box.pack(side=Tix.BOTTOM, fill=Tix.X)
    top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z*MB��
�
samples/ComboBox.pyonu�[����
��^c@siddlZd�Zdd�Zdd�Zd�Zedkreej�Zee�ej	�ndS(i����NcCs�tj|dddtj�}tj�atj�atj|dddddtdd	d
tdd�}tj|dd
dd	dtddd
tdd�}|j	dtj
dtj�|j	dtj
dtj�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d �|jtj
d!�|jd�|jd �tj|d"tj�}|jd#d$d%d&d	d'd(d|d)��|jd*d$d+d&d	d'd(d|d,��|j	dtjd-tj�|j	dtj
d-tjd.d�dS(/NtbditrelieftlabelsMonth: tdropdowntcommandteditableitvariabletoptionss.listbox.height 6 label.width 10 label.anchor esYear: s<listbox.height 4 label.padY 5 label.width 10 label.anchor netsidetanchortJanuarytFebruarytMarchtApriltMaytJunetJulytAugustt	SeptembertOctobertNovembertDecembert1992t1993t1994t1995t1996torientationtokttexttOkt	underlinetwidthicSs
t|�S(N(t
ok_command(tw((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt<lambda>QttcanceltCancelcSs
|j�S(N(tdestroy(R"((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR#SR$tfilltexpand(tTixtFrametRAISEDt	StringVart
demo_montht	demo_yeartComboBoxtselect_monthtselect_yeartpacktTOPtWtinserttENDt
set_silentt	ButtonBoxt
HORIZONTALtaddtBOTTOMtXtBOTH(R"ttoptatbtbox((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt	RunSamplesJ			



cCsdS(N((tevent((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR1WscCsdS(N((RD((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR2[scCs|j�dS(N(R'(R"((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR!_st__main__(
R*RCtNoneR1R2R!t__name__tTktroottmainloop(((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt<module>s	E	
PKf,�ZB~g��samples/SHList2.pyonu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(t
DemoSHListtmainlooptdestroy(troottshlist((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs%||_d|_|j�}|jd|d��tj|dtjdd�}tj|dd�|_|jj	d	dd
tj
ddd
ddtj�|jj}|j
jdddd�}i}tjtjd|dtjddd
dd|�|d<|jddtjddd|d�|jddtjddd|d�|jdd�dN}dOdPdQg}dRdSdTdUdVdWdXg}	tjtjd|�|d:<tjtjddd|�|d;<tjtjd|�|d<<tjtjddd|�|d=<|jd>d?d@dAdBddCd�|jddDdE�|jd?dtjd|dd|d:�|jd?ddtjd|dd|d;�xp|D]h\}
}}d?|
}
|j|
dtjd|d|d:�|j|
ddtjd|d|d;�q�Wxr|	D]j\}
}}}d?|d?|
}|j|d|d|d<�|j|ddtjd|d|d=�q
Wtj|dFtj�}|jdGddHdIdd@dJdK|j�|jdLddMdIdd@dJdK|j�|j	dtjd
tj�|j	dtjd
tj
d	d�dS(YNi����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt<lambda>"ttrelieftbditoptionsshlist.columns 3 hlist.header 1texpandtfilltpadxi
tpadytsidettixtoptiontgett	bold_fontt	refwindowtanchoriitfonttheaderititemtypettexttNametstyletPositiontdoesJohn DoetDirectortjeffsJeff WaxmantManagertjohnsJohn LeetpetersPeter KensontalexsAlex KellmantClerktalans
Alan AdamstandysAndreas CrawfordtSalesmantdougs
Douglas Bloomtjons
Jon BarakitchrissChris GeoffreytchucksChuck McLeantCleanertmgr_nametmgr_posnt	empl_namet	empl_posnt	separatort.twidthit
drawbranchtindenttcharsitorientationtoktOkt	underlineitcommandtcanceltCancel(R sJohn DoeR!(R"sJeff WaxmanR#(R$sJohn LeeR#(R%sPeter KensonR#(R&R$sAlex KellmanR'(R(R$s
Alan AdamsR'(R)R%sAndreas CrawfordR*(R+R"s
Douglas BloomR'(R,R%s
Jon BarakiR*(R-R"sChris GeoffreyR'(R.R"sChuck McLeanR/(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDt
ScrolledHListtatpacktBOTHtTOPthlistttktcalltDisplayStyletTEXTtCENTERt
header_createtcolumn_widthtconfigtaddtitem_createt	ButtonBoxt
HORIZONTALtokcmdRtBOTTOMtX(RtwtzttopRLtboldfontRtbosstmanagerst	employeestkeytnametposntetmgrt	entrypathtbox((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt__init__sp		1"		""""


cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyRY�scCs
d|_dS(Ni(RA(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�scCs-x&|jdkr(|jjjt�qWdS(Ni(RARRMt
dooneeventtTCL_ALL_EVENTS(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�scCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyR�s(t__name__t
__module__RjRYRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyRs
	x			t__main__((RDRlRRRmtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList2.pyt<module>s	�PKf,�Z�N���	�	samples/OptMenu.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixOptionMenu widget -- you can
# use it for the user to choose from a fixed set of options
#
import Tix

options = {'text':'Plain Text', 'post':'PostScript', 'html':'HTML',
           'tex':'LaTeX', 'rtf':'Rich Text Format'}

def RunSample(w):
    global demo_opt_from, demo_opt_to

    demo_opt_from = Tix.StringVar()
    demo_opt_to = Tix.StringVar()

    top = Tix.Frame(w, bd=1, relief=Tix.RAISED)

    from_file = Tix.OptionMenu(top, label="From File Format : ",
                               variable=demo_opt_from,
                               options = 'label.width  19 label.anchor e menubutton.width 15')

    to_file = Tix.OptionMenu(top, label="To File Format : ",
                             variable=demo_opt_to,
                             options='label.width  19 label.anchor e menubutton.width 15')

    # Add the available options to the two OptionMenu widgets
    #
    # [Hint] You have to add the options first before you set the
    #        global variables "demo_opt_from" and "demo_opt_to". Otherwise
    #        the OptionMenu widget will complain about "unknown options"!
    #
    for opt in options.keys():
        from_file.add_command(opt, label=options[opt])
        to_file.add_command(opt, label=options[opt])

    demo_opt_from.set('html')
    demo_opt_to.set('post')

    from_file.pack(side=Tix.TOP, anchor=Tix.W, pady=3, padx=6)
    to_file.pack(side=Tix.TOP, anchor=Tix.W, pady=3, padx=6)

    box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
    box.add('ok', text='Ok', underline=0, width=6,
            command=lambda w=w: ok_command(w))
    box.add('cancel', text='Cancel', underline=0, width=6,
            command=lambda w=w: w.destroy())
    box.pack(side=Tix.BOTTOM, fill=Tix.X)
    top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

def ok_command(w):
    # tixDemo:Status "Convert file from %s to %s" % ( demo_opt_from.get(), demo_opt_to.get())
    w.destroy()

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z���aasamples/SHList1.pycnu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(t
DemoSHListtmainlooptdestroy(troottshlist((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(c
Cst||_d|_|j�}|jd|d��tj|dtjdd�}tj|�|_|jj	dddtj
d	d
dd
dtj�d9d:d;g}d<d=d>d?d@dAdBg}|jj}|j
d!d"d#d$d%d&d'd
�d&}x�|D]�\}}	|retj|d(d)|d*d+d#d,dd+dtj�}
|jd-tjd.|
d/tj�n|j|d-tjd0|	�|d}q�Wx8|D]0\}}}	|d"|}|j|d0|	�q�Wtj|d1tj�}
|
jd2d0d3d4d&d#d5d6|j�|
jd7d0d8d4d&d#d5d6|j�|
j	dtjdtj�|j	dtjdtj
dd�dS(CNi����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt<lambda>ttrelieftbditexpandtfilltpadxi
tpadytsidetjeffsJeff WaxmantjohnsJohn LeetpetersPeter KensontalexsAlex Kellmantalans
Alan AdamstandysAndreas Crawfordtdougs
Douglas Bloomtjons
Jon BarakitchrissChris GeoffreytchucksChuck McLeant	separatort.twidthit
drawbranchitindenttnamessep%dtheightii�titemtypetwindowtstatettexttorientationtoktOkt	underlineitcommandtcanceltCancel(RsJeff Waxman(RsJohn Lee(RsPeter Kenson(RRsAlex Kellman(RRs
Alan Adams(RRsAndreas Crawford(RRs
Douglas Bloom(RRs
Jon Baraki(RRsChris Geoffrey(RRsChuck McLean(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDt
ScrolledHListtatpacktBOTHtTOPthlisttconfigtSUNKENt	add_childtWINDOWtDISABLEDtaddtTEXTt	ButtonBoxt
HORIZONTALtokcmdRtBOTTOMtX(Rtwtzttoptbossest	employeesR9tcounttbossR!tftpersontkeytbox((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt__init__sL		1		""

cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRCpscCs
d|_dS(Ni(R.(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRsscCs-x&|jdkr(|jjjt�qWdS(Ni(R.Rttkt
dooneeventtTCL_ALL_EVENTS(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRvscCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRzs(t__name__t
__module__RQRCRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRs
	V			t__main__((R1RTRRRUtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt<module>s	hPKf,�Z���\
\
samples/Balloon.pyonu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(tDemoBalloontmainlooptdestroy(troottballoon((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt	RunSamples
RcBs,eZd�Zd�Zd�Zd�ZRS(c	Cs@||_d|_|j�}|jd|d��tj|dddtjdd�}|jd	tjd
tj	ddd
d�tj
|ddd|j�}tj
|dd�}|d�|d<|jd	tjdd�|jd	tjdd�tj
|d|�}|j|dddd�|j|dddd�dS(Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt<lambda>!ttwidthi(trelieftbditsidetfilltpadxitpadyttextsSomething UnexpectedtcommandsSomething Else UnexpectedcSs
|j�S(N(R(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR	*R
texpandt	statusbart
balloonmsgsClose Windowt	statusmsgs&Press this button to close this windowsSelf-destruct buttons,Press this button and it will destroy itself(Rtexittwinfo_topleveltwm_protocoltTixtLabeltSUNKENtpacktBOTTOMtYtButtonRtTOPtBalloontbind_widget(RRtztstatustbutton1tbutton2tb((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt__init__s"		$(cCs
d|_dS(Ni(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR7scCsAd}x4|jdkr<|dkr<|jjjt�}q	WdS(Nii(RRttkt
dooneeventtTCL_ALL_EVENTS(Rt
foundEvent((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR:scCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR?s(t__name__t
__module__R+RRR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyRs			t__main__((RR.RRR0tTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt<module>s	'PKf,�Z�-����samples/PanedWin.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixPanedWindow widget. This program
# is a dummy news reader: the user can adjust the sizes of the list
# of artical names and the size of the text widget that shows the body
# of the article.

import Tix

TCL_ALL_EVENTS          = 0

def RunSample (root):
    panedwin = DemoPanedwin(root)
    panedwin.mainloop()
    panedwin.destroy()

class DemoPanedwin:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        group = Tix.LabelEntry(w, label='Newsgroup:', options='entry.width 25')
        group.entry.insert(0,'comp.lang.python')
        pane = Tix.PanedWindow(w, orientation='vertical')

        p1 = pane.add('list', min=70, size=100)
        p2 = pane.add('text', min=70)
        list = Tix.ScrolledListBox(p1)
        list.listbox['width'] = 80
        list.listbox['height'] = 5
        text = Tix.ScrolledText(p2)
        text.text['width'] = 80
        text.text['height'] = 20

        list.listbox.insert(Tix.END, "  12324 Re: Tkinter is good for your health")
        list.listbox.insert(Tix.END, "+ 12325 Re: Tkinter is good for your health")
        list.listbox.insert(Tix.END, "+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)")
        list.listbox.insert(Tix.END, "  12327 Re: Tix is even better for your health (Was: Tkinter is good...)")
        list.listbox.insert(Tix.END, "+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)")
        list.listbox.insert(Tix.END, "  12329 Re: Tix is even better for your health (Was: Tkinter is good...)")
        list.listbox.insert(Tix.END, "+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)")

        text.text['bg'] = list.listbox['bg']
        text.text['wrap'] = 'none'
        text.text.insert(Tix.END, """
    Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
    Lines 353       A new way to put text and bitmaps together iNo responses
    ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

    Hi,

    I have implemented a new image type called "compound". It allows you
    to glue together a bunch of bitmaps, images and text strings together
    to form a bigger image. Then you can use this image with widgets that
    support the -image option. For example, you can display a text string string
    together with a bitmap, at the same time, inside a TK button widget.
    """)
        text.text['state'] = 'disabled'

        list.pack(expand=1, fill=Tix.BOTH, padx=4, pady=6)
        text.pack(expand=1, fill=Tix.BOTH, padx=4, pady=6)

        group.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH)
        pane.pack(side=Tix.TOP, padx=3, pady=3, fill=Tix.BOTH, expand=1)

        box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
        box.add('ok', text='Ok', underline=0, width=6,
                command=self.quitcmd)
        box.add('cancel', text='Cancel', underline=0, width=6,
                command=self.quitcmd)
        box.pack(side=Tix.BOTTOM, fill=Tix.X)

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
PKf,�Z�t��samples/DirTree.pycnu�[����
��^c@syddlZddlZddlZddlTdZd�Zddd��YZedkruej�Z	ee	�ndS(	i����N(t*icCs$t|�}|j�|j�dS(N(tDemoDirTreetmainlooptdestroy(troottdirtree((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt	RunSamples
RcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(c
Cs>||_d|_|j�}|jd|d��tj|dtdd�}tj|�|_d|jj	d<tj
|d	d
dd�|_tj|d
ddddd�|_
tjtj�|_|j|j
jd<|j|j
|d�|jd<|j
jjd|d��|jdddddt�|jjdddtdddddt�|jjdd dddddt�|j
jdddtdd dddddt�tj|d!d"�}|jd#d	d$d%ddd&d|d'��|jd(d	d)d%ddd&d|d*��|jdd dd+dt�dS(,Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt<lambda>#ttrelieftbdii(twidthttexts  >>  tpadyitlabelsInstallation Directory:t	labelsidettoptoptionss�
                                  entry.width 40
                                  label.anchor w
                                  ttextvariablecSs|j||�S(N(t	copy_name(tdirtentR	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
Fstcommands<Return>cSs
|j�S(N(tokcmd(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
IRtexpandtyestfilltbothtsidetpadxitanchortstorientationt
horizontaltoktOkt	underlineicSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
TRtcanceltCancelcSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
VRtx(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDtDirTreeRthlisttButtontbtnt
LabelEntryRtcopytostcurdirt	dlist_dirtentrytbindtpacktTOPtBOTHtLEFTtXt	ButtonBoxtaddtBOTTOM(R	twtzRtbox((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt__init__s2		+%1

cCs?|jd�|_|jjdd�|jjd|j�dS(Ntvalueitend(tcgetR9R:tdeletetinsert(R	RR((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRZscCs|j�dS(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRascCs
d|_dS(Ni(R+(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRescCs-x&|jdkr(|jjjt�qWdS(Ni(R+Rttkt
dooneeventtTCL_ALL_EVENTS(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRiscCs|jj�dS(N(RR(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRms(t__name__t
__module__RGRRRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRs	<				t__main__((
R.R7R6tTkconstantsRORRRPtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt<module>s$
	VPKf,�Z��q��samples/Control.pyonu�[����
��^c@sxddlZdZd�Zddd��YZdddgZd	�Zd
�Zedkrtej�Z	ee	�ndS(
i����NicCs$t|�}|j�|j�dS(N(tDemoControltmainlooptdestroy(troottcontrol((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs<||_d|_tj�atj�atj�atj	d�tj	d�tj	d�tj
|dddtj�}tj|dd	d
ddtddd
ddd�}tj|ddd
dddd
ddddtdd�}tj|dddddtdd�}|d�|d<|d�|d<|d�|d<|j
dtjd tj�|j
dtjd tj�|j
dtjd tj�tj|d!tj�}|jd"d#d$d%dd&d'd(|j�|jd)d#d*d%dd&d'd(|j�|j
dtjd+tj�|j
dtjd+tjd,d�dS(-Ni����sP&Wg��@itbditrelieftlabelsNumber of Engines: tintegertvariabletmintmaxitoptionss,entry.width 10 label.width 20 label.anchor esThrust: is10000.0s60000.0tstepi�sEngine Maker: tvaluecSs
t|d�S(Ni(tadjust_maker(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt<lambda>CttincrcmdcSs
t|d�S(Ni����(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRDRtdecrcmdcSs
t|�S(N(tvalidate_maker(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRERtvalidatecmdtsidetanchortorientationtokttexttOkt	underlinetwidthitcommandtcanceltCanceltfilltexpand(RtexittTixt	StringVart
demo_makert	DoubleVartdemo_thrusttIntVartdemo_num_enginestsettFrametRAISEDtControltpacktTOPtWt	ButtonBoxt
HORIZONTALtaddtokcmdtquitcmdtBOTTOMtXtBOTH(tselfRttoptatbtctbox((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt__init__s@		


			

cCs|j�dS(N(R8(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR7SscCs
d|_dS(Ni(R%(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR8WscCs-x&|jdkr(|jjjt�qWdS(Ni(R%Rttkt
dooneeventtTCL_ALL_EVENTS(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRZscCs|jj�dS(N(RR(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR^s(t__name__t
__module__RBR7R8RR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRs
	4			sP&WtGEsRolls RoycecCsntjtj��}||}|tt�kr:d}n|dkrYtt�d}ntjt|�dS(Nii(t
maker_listtindexR(tgettlenR-(Rtincti((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRcs
	cCs:ytjtj��}Wntk
r1tdSXt|S(Ni(RIRJR(RKt
ValueError(RRN((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRos

	t__main__((
R&RERRRIRRRFtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt<module>s	C			PKf,�Zzd��3	3	samples/Tree.pycnu�[����
��^c@sfddlZddlZd�Zd�Zd�Zedkrbej�Zee�ej�ndS(i����NcCs+tj|dtjdd�}tj|dd�}|jdddtjdd	d
d	dtj�d|d�|d
<t|d�tj	|dtj
�}|jdddddd|jdd�|jdddddd|jdd�|jdtj
dtj�|jdtjdtjdd�dS(Ntrelieftbditoptionss
separator "/"texpandtfilltpadxi
tpadytsidecSs
t||�S(N(topendir(tdirtw((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt<lambda>ttopencmdt/torientationtokttexttOkt	underlineitcommandtwidthitcanceltCancel(tTixtFrametRAISEDtTreetpacktBOTHtLEFTtNonetadddirt	ButtonBoxt
HORIZONTALtaddtdestroytBOTTOMtXtTOP(R
ttopttreetbox((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt	RunSamples.
((cCs�|dkrd}ntjj|�}|jj|dtjd|d|jjddd��y!tj	|�|j
|d�Wntjk
r�nXdS(	NRtitemtypeRtimagettixtgetimagetfoldertopen(tostpathtbasenamethlistR#Rt	IMAGETEXTttktcalltlistdirtsetmodeterror(R)R	R((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR #s	
cCs�|jj|�}|r<x!|D]}|jj|�qWntj|�}x|D]w}tjj|d|�r�t||d|�qR|jj|d|dt	j
d|d|jjddd��qRWdS(NRR,RR-R.R/tfile(
R5t
info_childrent
show_entryR2R9R3tisdirR R#RR6R7R8(R)R	tentriestentrytfilesR<((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR9s

&t__main__(	RR2R+R Rt__name__tTktroottmainloop(((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt<module>s			
PKf,�Znb!���samples/PanedWin.pyonu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(tDemoPanedwintmainlooptdestroy(troottpanedwin((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt	RunSamples
RcBs,eZd�Zd�Zd�Zd�ZRS(c
Cs�||_d|_|j�}|jd|d��tj|dddd�}|jjdd	�tj|d
d�}|j	dd
ddd�}|j	dd
d�}tj
|�}d|jd<d|jd<tj|�}d|j
d<d|j
d<|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jd|j
d<d|j
d <|j
jtjd!�d"|j
d#<|jd$d%d&tjd'd(d)d*�|jd$d%d&tjd'd(d)d*�|jd+tjd'd,d)d,d&tj�|jd+tjd'd,d)d,d&tjd$d%�tj|d
tj�}	|	j	d-dd.d/ddd*d0|j�|	j	d1dd2d/ddd*d0|j�|	jd+tjd&tj�dS(3Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt<lambda>!ttlabels
Newsgroup:toptionssentry.width 25iscomp.lang.pythontorientationtverticaltlisttminiFtsizeidttextiPtwidthitheightis+  12324 Re: Tkinter is good for your healths++ 12325 Re: Tkinter is good for your healthsH+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12327 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12329 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)tbgtnonetwraps~
    Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
    Lines 353       A new way to put text and bitmaps together iNo responses
    ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

    Hi,

    I have implemented a new image type called "compound". It allows you
    to glue together a bunch of bitmaps, images and text strings together
    to form a bigger image. Then you can use this image with widgets that
    support the -image option. For example, you can display a text string string
    together with a bitmap, at the same time, inside a TK button widget.
    tdisabledtstatetexpanditfilltpadxitpadyitsideitoktOkt	underlinetcommandtcanceltCancel(Rtexittwinfo_topleveltwm_protocoltTixt
LabelEntrytentrytinserttPanedWindowtaddtScrolledListBoxtlistboxtScrolledTextRtENDtpacktBOTHtTOPt	ButtonBoxt
HORIZONTALRtBOTTOMtX(
Rtwtztgrouptpanetp1tp2RRtbox((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt__init__sJ		





%%(.

cCs
d|_dS(Ni(R%(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRVscCs-x&|jdkr(|jjjt�qWdS(Ni(R%Rttkt
dooneeventtTCL_ALL_EVENTS(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRYscCs|jj�dS(N(RR(R((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyR]s(t__name__t
__module__R@RRR(((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyRs	:		t__main__((R(RCRRRDtTkR(((s1/usr/lib64/python2.7/Demo/tix/samples/PanedWin.pyt<module>s	EPKf,�Z0�7bbsamples/OptMenu.pyonu�[����
��^c@szddlZidd6dd6dd6dd	6d
d6Zd�Zd
�Zedkrvej�Zee�ej�ndS(i����Ns
Plain Textttextt
PostScripttposttHTMLthtmltLaTeXttexsRich Text FormattrtfcCs�tj�atj�atj|dddtj�}tj|dddtdd�}tj|dd	dtdd�}xBtj�D]4}|j	|dt|�|j	|dt|�q�Wtj
d
�tj
d�|jdtjd
tj
dddd�|jdtjd
tj
dddd�tj|dtj�}|jdddddddd|d��|jdddddddd|d��|jdtjdtj�|jdtjdtjdd�dS( NtbditrelieftlabelsFrom File Format : tvariabletoptionss2label.width  19 label.anchor e menubutton.width 15sTo File Format : RRtsidetanchortpadyitpadxitorientationtokRtOkt	underlineitwidthtcommandcSs
t|�S(N(t
ok_command(tw((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt<lambda>7ttcanceltCancelcSs
|j�S(N(tdestroy(R((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyR9Rtfilltexpand(tTixt	StringVart
demo_opt_fromtdemo_opt_totFrametRAISEDt
OptionMenuRtkeystadd_commandtsettpacktTOPtWt	ButtonBoxt
HORIZONTALtaddtBOTTOMtXtBOTH(Rttopt	from_filetto_filetopttbox((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt	RunSamples.		

((

cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyR=st__main__(R RR8Rt__name__tTktroottmainloop(((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt<module>s	(	
PKf,�Z�t��samples/DirTree.pyonu�[����
��^c@syddlZddlZddlZddlTdZd�Zddd��YZedkruej�Z	ee	�ndS(	i����N(t*icCs$t|�}|j�|j�dS(N(tDemoDirTreetmainlooptdestroy(troottdirtree((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt	RunSamples
RcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(c
Cs>||_d|_|j�}|jd|d��tj|dtdd�}tj|�|_d|jj	d<tj
|d	d
dd�|_tj|d
ddddd�|_
tjtj�|_|j|j
jd<|j|j
|d�|jd<|j
jjd|d��|jdddddt�|jjdddtdddddt�|jjdd dddddt�|j
jdddtdd dddddt�tj|d!d"�}|jd#d	d$d%ddd&d|d'��|jd(d	d)d%ddd&d|d*��|jdd dd+dt�dS(,Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt<lambda>#ttrelieftbdii(twidthttexts  >>  tpadyitlabelsInstallation Directory:t	labelsidettoptoptionss�
                                  entry.width 40
                                  label.anchor w
                                  ttextvariablecSs|j||�S(N(t	copy_name(tdirtentR	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
Fstcommands<Return>cSs
|j�S(N(tokcmd(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
IRtexpandtyestfilltbothtsidetpadxitanchortstorientationt
horizontaltoktOkt	underlineicSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
TRtcanceltCancelcSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyR
VRtx(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDtDirTreeRthlisttButtontbtnt
LabelEntryRtcopytostcurdirt	dlist_dirtentrytbindtpacktTOPtBOTHtLEFTtXt	ButtonBoxtaddtBOTTOM(R	twtzRtbox((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt__init__s2		+%1

cCs?|jd�|_|jjdd�|jjd|j�dS(Ntvalueitend(tcgetR9R:tdeletetinsert(R	RR((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRZscCs|j�dS(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRascCs
d|_dS(Ni(R+(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRescCs-x&|jdkr(|jjjt�qWdS(Ni(R+Rttkt
dooneeventtTCL_ALL_EVENTS(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRiscCs|jj�dS(N(RR(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRms(t__name__t
__module__RGRRRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyRs	<				t__main__((
R.R7R6tTkconstantsRORRRPtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirTree.pyt<module>s$
	VPKf,�Z��q��samples/Control.pycnu�[����
��^c@sxddlZdZd�Zddd��YZdddgZd	�Zd
�Zedkrtej�Z	ee	�ndS(
i����NicCs$t|�}|j�|j�dS(N(tDemoControltmainlooptdestroy(troottcontrol((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs<||_d|_tj�atj�atj�atj	d�tj	d�tj	d�tj
|dddtj�}tj|dd	d
ddtddd
ddd�}tj|ddd
dddd
ddddtdd�}tj|dddddtdd�}|d�|d<|d�|d<|d�|d<|j
dtjd tj�|j
dtjd tj�|j
dtjd tj�tj|d!tj�}|jd"d#d$d%dd&d'd(|j�|jd)d#d*d%dd&d'd(|j�|j
dtjd+tj�|j
dtjd+tjd,d�dS(-Ni����sP&Wg��@itbditrelieftlabelsNumber of Engines: tintegertvariabletmintmaxitoptionss,entry.width 10 label.width 20 label.anchor esThrust: is10000.0s60000.0tstepi�sEngine Maker: tvaluecSs
t|d�S(Ni(tadjust_maker(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt<lambda>CttincrcmdcSs
t|d�S(Ni����(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRDRtdecrcmdcSs
t|�S(N(tvalidate_maker(R((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRERtvalidatecmdtsidetanchortorientationtokttexttOkt	underlinetwidthitcommandtcanceltCanceltfilltexpand(RtexittTixt	StringVart
demo_makert	DoubleVartdemo_thrusttIntVartdemo_num_enginestsettFrametRAISEDtControltpacktTOPtWt	ButtonBoxt
HORIZONTALtaddtokcmdtquitcmdtBOTTOMtXtBOTH(tselfRttoptatbtctbox((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt__init__s@		


			

cCs|j�dS(N(R8(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR7SscCs
d|_dS(Ni(R%(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR8WscCs-x&|jdkr(|jjjt�qWdS(Ni(R%Rttkt
dooneeventtTCL_ALL_EVENTS(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRZscCs|jj�dS(N(RR(R<((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyR^s(t__name__t
__module__RBR7R8RR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRs
	4			sP&WtGEsRolls RoycecCsntjtj��}||}|tt�kr:d}n|dkrYtt�d}ntjt|�dS(Nii(t
maker_listtindexR(tgettlenR-(Rtincti((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRcs
	cCs:ytjtj��}Wntk
r1tdSXt|S(Ni(RIRJR(RKt
ValueError(RRN((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyRos

	t__main__((
R&RERRRIRRRFtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Control.pyt<module>s	C			PKf,�Z�3U
��samples/DirList.pycnu�[����
��^c@s�ddlZddlZddlZddlTdZd�Zddd��YZedkr�ddlZddl	Z	yej
�Zee�Wq�ej
�\ZZZdZxAe	jeee�D]&Zeed	Zejd
e�Zq�Wq�XndS(i����N(t*icCs$t|�}|j�|j�dS(N(tDemoDirListtmainlooptdestroy(troottdirlist((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt	RunSamples
RcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(c
Csc||_d|_|j�}|jd|d��tj|dtdd�}tj|�|_d|jj	d<tj
|d	d
dd�|_tj|d
ddddd�|_
|jjjd�}||j
jd<tjtj�|_|j|j
jd<|j|j
|d�|jd<|j
jjd|d��|jdddddt�|jjdddtdd dd dt�|jjd!d"dd dd dt�|j
jdddtd!d"dd dd dt�tj|d#d$�}|jd%d	d&d'ddd(d|d)��|jd*d	d+d'ddd(d|d,��|jd!d"dd-dt�dS(.Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt<lambda>#ttrelieftbdii(twidthttexts  >>  tpadyitlabelsInstallation Directory:t	labelsidettoptoptionss�
                                  entry.width 40
                                  label.anchor w
                                  stix option get fixed_fonttfontttextvariablecSs|j||�S(N(t	copy_name(tdirtentR	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
Kstcommands<Return>cSs
|j�S(N(tokcmd(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
ORtexpandtyestfilltbothtsidetpadxitanchortstorientationt
horizontaltoktOkt	underlineicSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
ZRtcanceltCancelcSs
|j�S(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR
\Rtx(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDtDirListRthlisttButtontbtnt
LabelEntryRttktevaltentrytcopytostcurdirt	dlist_dirtbindtpacktTOPtBOTHtLEFTtXt	ButtonBoxtaddtBOTTOM(R	twtzRRtbox((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt__init__s6		+%1

cCs?|jd�|_|jjdd�|jjd|j�dS(Ntvalueitend(tcgetR=R9tdeletetinsert(R	RR((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR`scCs|j�dS(N(R(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRgscCs
d|_dS(Ni(R,(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRkscCs-x&|jdkr(|jjjt�qWdS(Ni(R,RR7t
dooneeventtTCL_ALL_EVENTS(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRnscCs|jj�dS(N(RR(R	((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRrs(t__name__t
__module__RJRRRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRs	B				t__main__sError running the demo script:
s
sTix Demo Error((R/R;R:tTkconstantsRQRRRRttkMessageBoxt	tracebacktTkRtsystexc_infotttvttbRtformat_exceptiontlinet	showerrortd(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt<module>s$
	[PKf,�Z�û�T
T
samples/ComboBox.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixComboBox widget, which is close
# to the MS Window Combo Box control.
#
import Tix

def RunSample(w):
    global demo_month, demo_year

    top = Tix.Frame(w, bd=1, relief=Tix.RAISED)

    demo_month = Tix.StringVar()
    demo_year = Tix.StringVar()

    # $w.top.a is a drop-down combo box. It is not editable -- who wants
    # to invent new months?
    #
    # [Hint] The -options switch sets the options of the subwidgets.
    # [Hint] We set the label.width subwidget option of both comboboxes to
    #        be 10 so that their labels appear to be aligned.
    #
    a = Tix.ComboBox(top, label="Month: ", dropdown=1,
        command=select_month, editable=0, variable=demo_month,
        options='listbox.height 6 label.width 10 label.anchor e')

    # $w.top.b is a non-drop-down combo box. It is not editable: we provide
    # four choices for the user, but he can enter an alternative year if he
    # wants to.
    #
    # [Hint] Use the padY and anchor options of the label subwidget to
    #        align the label with the entry subwidget.
    # [Hint] Notice that you should use padY (the NAME of the option) and not
    #        pady (the SWITCH of the option).
    #
    b = Tix.ComboBox(top, label="Year: ", dropdown=0,
        command=select_year, editable=1, variable=demo_year,
        options='listbox.height 4 label.padY 5 label.width 10 label.anchor ne')

    a.pack(side=Tix.TOP, anchor=Tix.W)
    b.pack(side=Tix.TOP, anchor=Tix.W)

    a.insert(Tix.END, 'January')
    a.insert(Tix.END, 'February')
    a.insert(Tix.END, 'March')
    a.insert(Tix.END, 'April')
    a.insert(Tix.END, 'May')
    a.insert(Tix.END, 'June')
    a.insert(Tix.END, 'July')
    a.insert(Tix.END, 'August')
    a.insert(Tix.END, 'September')
    a.insert(Tix.END, 'October')
    a.insert(Tix.END, 'November')
    a.insert(Tix.END, 'December')

    b.insert(Tix.END, '1992')
    b.insert(Tix.END, '1993')
    b.insert(Tix.END, '1994')
    b.insert(Tix.END, '1995')
    b.insert(Tix.END, '1996')

    # Use "tixSetSilent" to set the values of the combo box if you
    # don't want your -command procedures (cbx:select_month and
    # cbx:select_year) to be called.
    #
    a.set_silent('January')
    b.set_silent('1995')

    box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
    box.add('ok', text='Ok', underline=0, width=6,
            command=lambda w=w: ok_command(w))
    box.add('cancel', text='Cancel', underline=0, width=6,
            command=lambda w=w: w.destroy())
    box.pack(side=Tix.BOTTOM, fill=Tix.X)
    top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

def select_month(event=None):
    # tixDemo:Status "Month = %s" % demo_month.get()
    pass

def select_year(event=None):
    # tixDemo:Status "Year = %s" % demo_year.get()
    pass

def ok_command(w):
    # tixDemo:Status "Month = %s, Year= %s" % (demo_month.get(), demo_year.get())
    w.destroy()

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Zl���//samples/Tree.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates how to use the TixTree widget to display
# dynamic hierachical data (the files in the Unix file system)
#

import Tix, os

def RunSample(w):
    top = Tix.Frame(w, relief=Tix.RAISED, bd=1)
    tree = Tix.Tree(top, options='separator "/"')
    tree.pack(expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.LEFT)
    tree['opencmd'] = lambda dir=None, w=tree: opendir(w, dir)

    # The / directory is added in the "open" mode. The user can open it
    # and then browse its subdirectories ...
    adddir(tree, "/")

    box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
    box.add('ok', text='Ok', underline=0, command=w.destroy, width=6)
    box.add('cancel', text='Cancel', underline=0, command=w.destroy, width=6)
    box.pack(side=Tix.BOTTOM, fill=Tix.X)
    top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

def adddir(tree, dir):
    if dir == '/':
        text = '/'
    else:
        text = os.path.basename(dir)
    tree.hlist.add(dir, itemtype=Tix.IMAGETEXT, text=text,
                   image=tree.tk.call('tix', 'getimage', 'folder'))
    try:
        os.listdir(dir)
        tree.setmode(dir, 'open')
    except os.error:
        # No read permission ?
        pass

# This function is called whenever the user presses the (+) indicator or
# double clicks on a directory whose mode is "open". It loads the files
# inside that directory into the Tree widget.
#
# Note we didn't specify the closecmd option for the Tree widget, so it
# performs the default action when the user presses the (-) indicator or
# double clicks on a directory whose mode is "close": hide all of its child
# entries
def opendir(tree, dir):
    entries = tree.hlist.info_children(dir)
    if entries:
        # We have already loaded this directory. Let's just
        # show all the child entries
        #
        # Note: since we load the directory only once, it will not be
        #       refreshed if the you add or remove files from this
        #       directory.
        #
        for entry in entries:
            tree.hlist.show_entry(entry)
    files = os.listdir(dir)
    for file in files:
        if os.path.isdir(dir + '/' + file):
            adddir(tree, dir + '/' + file)
        else:
            tree.hlist.add(dir + '/' + file, itemtype=Tix.IMAGETEXT, text=file,
                           image=tree.tk.call('tix', 'getimage', 'file'))

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z��b&UUsamples/PopMenu.pycnu�[����
��^c@sHddlZd�ZedkrDej�Zee�ej�ndS(i����NcCstj|dtjdd�}tj|dd�}|jdddtjdd	d
d	�tj|dd�}|j|�|j|�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�tj
|j�}|j	d
d�|jjd
dd|�|jdtjddd
d	�tj
|dtj�}|jdddddddd|d ��|jd!dd"ddddd|d#��|jdtjdtj�|jdtjdtjdd�dS($NtrelieftbdittextsEPress the right mouse button over this button or its surrounding areatexpandtfilltpadxi2tpadyttitles
Popup TesttlabeltDesktopt	underlineitSelecttFindtSystemtHelptHellotMoretmenutsidei(torientationtoktOktwidthitcommandcSs
|j�S(N(tdestroy(tw((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt<lambda>0ttcanceltCancelcSs
|j�S(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyR2R(tTixtFrametRAISEDtButtontpacktBOTHt	PopupMenutbind_widgetRtadd_commandtMenutadd_cascadetTOPt	ButtonBoxt
HORIZONTALtaddtBOTTOMtX(Rttoptbuttptm1tbox((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt	RunSamples,%



t__main__(RR4t__name__tTktroottmainloop(((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt<module>s
	%
PKf,�Z�m7&~~samples/SHList1.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program using tixwish.

# This file demonstrates the use of the tixScrolledHList widget.
#

import Tix

TCL_ALL_EVENTS          = 0

def RunSample (root):
    shlist = DemoSHList(root)
    shlist.mainloop()
    shlist.destroy()

class DemoSHList:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        # We create the frame and the ScrolledHList widget
        # at the top of the dialog box
        #
        top = Tix.Frame( w, relief=Tix.RAISED, bd=1)

        # Put a simple hierachy into the HList (two levels). Use colors and
        # separator widgets (frames) to make the list look fancy
        #
        top.a = Tix.ScrolledHList(top)
        top.a.pack( expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.TOP)

        # This is our little relational database
        #
        bosses = [
            ('jeff',  'Jeff Waxman'),
            ('john',  'John Lee'),
            ('peter', 'Peter Kenson')
        ]

        employees = [
            ('alex',  'john',  'Alex Kellman'),
            ('alan',  'john',  'Alan Adams'),
            ('andy',  'peter', 'Andreas Crawford'),
            ('doug',  'jeff',  'Douglas Bloom'),
            ('jon',   'peter', 'Jon Baraki'),
            ('chris', 'jeff',  'Chris Geoffrey'),
            ('chuck', 'jeff',  'Chuck McLean')
        ]

        hlist=top.a.hlist

        # Let configure the appearance of the HList subwidget
        #
        hlist.config( separator='.', width=25, drawbranch=0, indent=10)

        count=0
        for boss,name in bosses :
            if count :
                f=Tix.Frame(hlist, name='sep%d' % count, height=2, width=150,
                    bd=2, relief=Tix.SUNKEN )

                hlist.add_child( itemtype=Tix.WINDOW,
                    window=f, state=Tix.DISABLED )

            hlist.add(boss, itemtype=Tix.TEXT, text=name)
            count = count+1


        for person,boss,name in employees :
            # '.' is the separator character we chose above
            #
            key= boss    + '.'     + person
            #    ^^^^                ^^^^^^
            #    parent entryPath /  child's name

            hlist.add( key, text=name )

            # [Hint] Make sure the keys (e.g. 'boss.person') you choose
            #    are unique names. If you cannot be sure of this (because of
            #    the structure of your database, e.g.) you can use the
            #    "add_child" command instead:
            #
            #  hlist.addchild( boss,  text=name)
            #                  ^^^^
            #                  parent entryPath


        # Use a ButtonBox to hold the buttons.
        #
        box= Tix.ButtonBox(top, orientation=Tix.HORIZONTAL )
        box.add( 'ok',  text='Ok', underline=0,  width=6,
            command = self.okcmd)

        box.add( 'cancel', text='Cancel', underline=0, width=6,
            command = self.quitcmd)

        box.pack( side=Tix.BOTTOM, fill=Tix.X)
        top.pack( side=Tix.TOP,    fill=Tix.BOTH, expand=1 )

    def okcmd (self):
        self.quitcmd()

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()


# This "if" statement makes it possible to run this script file inside or
# outside of the main demo program "tixwidgets.py".
#
if __name__== '__main__' :
    root=Tix.Tk()
    RunSample(root)
PKf,�Z�tܙyysamples/NoteBook.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixNoteBook widget, which allows
# you to lay out your interface using a "notebook" metaphore
#
import Tix

def RunSample(w):
    global root
    root = w

    # We use these options to set the sizes of the subwidgets inside the
    # notebook, so that they are well-aligned on the screen.
    prefix = Tix.OptionName(w)
    if prefix:
        prefix = '*'+prefix
    else:
        prefix = ''
    w.option_add(prefix+'*TixControl*entry.width', 10)
    w.option_add(prefix+'*TixControl*label.width', 18)
    w.option_add(prefix+'*TixControl*label.anchor', Tix.E)
    w.option_add(prefix+'*TixNoteBook*tagPadX', 8)

    # Create the notebook widget and set its backpagecolor to gray.
    # Note that the -backpagecolor option belongs to the "nbframe"
    # subwidget.
    nb = Tix.NoteBook(w, name='nb', ipadx=6, ipady=6)
    nb['bg'] = 'gray'
    nb.nbframe['backpagecolor'] = 'gray'

    # Create the two tabs on the notebook. The -underline option
    # puts a underline on the first character of the labels of the tabs.
    # Keyboard accelerators will be defined automatically according
    # to the underlined character.
    nb.add('hard_disk', label="Hard Disk", underline=0)
    nb.add('network', label="Network", underline=0)

    nb.pack(expand=1, fill=Tix.BOTH, padx=5, pady=5 ,side=Tix.TOP)

    #----------------------------------------
    # Create the first page
    #----------------------------------------
    # Create two frames: one for the common buttons, one for the
    # other widgets
    #
    tab=nb.hard_disk
    f = Tix.Frame(tab)
    common = Tix.Frame(tab)

    f.pack(side=Tix.LEFT, padx=2, pady=2, fill=Tix.BOTH, expand=1)
    common.pack(side=Tix.RIGHT, padx=2, fill=Tix.Y)

    a = Tix.Control(f, value=12,   label='Access time: ')
    w = Tix.Control(f, value=400,  label='Write Throughput: ')
    r = Tix.Control(f, value=400,  label='Read Throughput: ')
    c = Tix.Control(f, value=1021, label='Capacity: ')

    a.pack(side=Tix.TOP, padx=20, pady=2)
    w.pack(side=Tix.TOP, padx=20, pady=2)
    r.pack(side=Tix.TOP, padx=20, pady=2)
    c.pack(side=Tix.TOP, padx=20, pady=2)

    # Create the common buttons
    createCommonButtons(common)

    #----------------------------------------
    # Create the second page
    #----------------------------------------

    tab = nb.network

    f = Tix.Frame(tab)
    common = Tix.Frame(tab)

    f.pack(side=Tix.LEFT, padx=2, pady=2, fill=Tix.BOTH, expand=1)
    common.pack(side=Tix.RIGHT, padx=2, fill=Tix.Y)

    a = Tix.Control(f, value=12,   label='Access time: ')
    w = Tix.Control(f, value=400,  label='Write Throughput: ')
    r = Tix.Control(f, value=400,  label='Read Throughput: ')
    c = Tix.Control(f, value=1021, label='Capacity: ')
    u = Tix.Control(f, value=10,   label='Users: ')

    a.pack(side=Tix.TOP, padx=20, pady=2)
    w.pack(side=Tix.TOP, padx=20, pady=2)
    r.pack(side=Tix.TOP, padx=20, pady=2)
    c.pack(side=Tix.TOP, padx=20, pady=2)
    u.pack(side=Tix.TOP, padx=20, pady=2)

    createCommonButtons(common)

def doDestroy():
    global root
    root.destroy()

def createCommonButtons(master):
    ok = Tix.Button(master, name='ok', text='OK', width=6,
                command=doDestroy)
    cancel = Tix.Button(master, name='cancel',
                    text='Cancel', width=6,
                    command=doDestroy)

    ok.pack(side=Tix.TOP, padx=2, pady=2)
    cancel.pack(side=Tix.TOP, padx=2, pady=2)

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z�D�*__samples/NoteBook.pyonu�[����
��^c@sZddlZd�Zd�Zd�ZedkrVej�aet�tj�ndS(i����Nc
Cs)|atj|�}|r(d|}nd}|j|dd�|j|dd�|j|dtj�|j|dd	�tj|d
ddd
dd
�}d|d<d|jd<|jddddd�|jddddd�|jdddtj	dddddtj
�|j}tj|�}tj|�}|jdtj
dd dd dtj	dd�|jdtjdd dtj�tj|d!d"dd#�}tj|d!d$dd%�}tj|d!d$dd&�}tj|d!d'dd(�}|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �t|�|j}tj|�}tj|�}|jdtj
dd dd dtj	dd�|jdtjdd dtj�tj|d!d"dd#�}tj|d!d$dd%�}tj|d!d$dd&�}tj|d!d'dd(�}tj|d!ddd*�}	|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|	jdtj
dd)dd �t|�dS(+Nt*ts*TixControl*entry.widthi
s*TixControl*label.widthis*TixControl*label.anchors*TixNoteBook*tagPadXitnametnbtipadxitipadytgraytbgt
backpagecolort	hard_disktlabels	Hard Diskt	underlineitnetworktNetworktexpanditfilltpadxitpadytsideitvalueis
Access time: i�sWrite Throughput: sRead Throughput: i�s
Capacity: isUsers: (troottTixt
OptionNamet
option_addtEtNoteBooktnbframetaddtpacktBOTHtTOPR	tFrametLEFTtRIGHTtYtControltcreateCommonButtonsR(
twtprefixRttabtftcommontatrtctu((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt	RunSamplesZ
!

.	."
	."cCstj�dS(N(Rtdestroy(((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt	doDestroyfsc
Cs�tj|dddddddt�}tj|dddd	dddt�}|jd
tjddd
d�|jd
tjddd
d�dS(NRtokttexttOKtwidthitcommandtcanceltCancelRRiR(RtButtonR0RR(tmasterR1R6((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyR$js		t__main__(RR.R0R$t__name__tTkRtmainloop(((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt<module>s	T		

PKf,�Z�D�*__samples/NoteBook.pycnu�[����
��^c@sZddlZd�Zd�Zd�ZedkrVej�aet�tj�ndS(i����Nc
Cs)|atj|�}|r(d|}nd}|j|dd�|j|dd�|j|dtj�|j|dd	�tj|d
ddd
dd
�}d|d<d|jd<|jddddd�|jddddd�|jdddtj	dddddtj
�|j}tj|�}tj|�}|jdtj
dd dd dtj	dd�|jdtjdd dtj�tj|d!d"dd#�}tj|d!d$dd%�}tj|d!d$dd&�}tj|d!d'dd(�}|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �t|�|j}tj|�}tj|�}|jdtj
dd dd dtj	dd�|jdtjdd dtj�tj|d!d"dd#�}tj|d!d$dd%�}tj|d!d$dd&�}tj|d!d'dd(�}tj|d!ddd*�}	|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|jdtj
dd)dd �|	jdtj
dd)dd �t|�dS(+Nt*ts*TixControl*entry.widthi
s*TixControl*label.widthis*TixControl*label.anchors*TixNoteBook*tagPadXitnametnbtipadxitipadytgraytbgt
backpagecolort	hard_disktlabels	Hard Diskt	underlineitnetworktNetworktexpanditfilltpadxitpadytsideitvalueis
Access time: i�sWrite Throughput: sRead Throughput: i�s
Capacity: isUsers: (troottTixt
OptionNamet
option_addtEtNoteBooktnbframetaddtpacktBOTHtTOPR	tFrametLEFTtRIGHTtYtControltcreateCommonButtonsR(
twtprefixRttabtftcommontatrtctu((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt	RunSamplesZ
!

.	."
	."cCstj�dS(N(Rtdestroy(((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt	doDestroyfsc
Cs�tj|dddddddt�}tj|dddd	dddt�}|jd
tjddd
d�|jd
tjddd
d�dS(NRtokttexttOKtwidthitcommandtcanceltCancelRRiR(RtButtonR0RR(tmasterR1R6((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyR$js		t__main__(RR.R0R$t__name__tTkRtmainloop(((s1/usr/lib64/python2.7/Demo/tix/samples/NoteBook.pyt<module>s	T		

PKf,�ZD�l�11samples/CmpImg.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the compound images: it uses compound
# images to display a text string together with a pixmap inside
# buttons
#

import Tix

network_pixmap = """/* XPM */
static char * netw_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 7 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #404040",
"+      c blue",
"@      c red",
/* pixels */
"                                ",
"                 .............. ",
"                 .XXXXXXXXXXXX. ",
"                 .XooooooooooO. ",
"                 .Xo.......XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++oo++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.+o++++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.XXXXXXXoO. ",
"                 .XooooooooooO. ",
"                 .Xo@ooo....oO. ",
" ..............  .XooooooooooO. ",
" .XXXXXXXXXXXX.  .XooooooooooO. ",
" .XooooooooooO.  .OOOOOOOOOOOO. ",
" .Xo.......XoO.  .............. ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++oo++XoO.        @        ",
" .Xo.++++++XoO.        @        ",
" .Xo.+o++++XoO.        @        ",
" .Xo.++++++XoO.      .....      ",
" .Xo.XXXXXXXoO.      .XXX.      ",
" .XooooooooooO.@@@@@@.X O.      ",
" .Xo@ooo....oO.      .OOO.      ",
" .XooooooooooO.      .....      ",
" .XooooooooooO.                 ",
" .OOOOOOOOOOOO.                 ",
" ..............                 ",
"                                "};
"""

hard_disk_pixmap = """/* XPM */
static char * drivea_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 5 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #800080008000",
/* pixels */
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"   ..........................   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXo.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .Xoo...................oO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .oOOOOOOOOOOOOOOOOOOOOOOO.   ",
"   ..........................   ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                "};
"""

network_bitmap = """
#define netw_width 32
#define netw_height 32
static unsigned char netw_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x02, 0x40,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x52,
   0x00, 0x00, 0x0a, 0x52, 0x00, 0x00, 0x8a, 0x51, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0x4a, 0x50, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x02, 0x40, 0xfe, 0x7f, 0x52, 0x55,
   0x02, 0x40, 0xaa, 0x6a, 0xfa, 0x5f, 0xfe, 0x7f, 0x0a, 0x50, 0xfe, 0x7f,
   0x0a, 0x52, 0x80, 0x00, 0x0a, 0x52, 0x80, 0x00, 0x8a, 0x51, 0x80, 0x00,
   0x0a, 0x50, 0x80, 0x00, 0x4a, 0x50, 0x80, 0x00, 0x0a, 0x50, 0xe0, 0x03,
   0x0a, 0x50, 0x20, 0x02, 0xfa, 0xdf, 0x3f, 0x03, 0x02, 0x40, 0xa0, 0x02,
   0x52, 0x55, 0xe0, 0x03, 0xaa, 0x6a, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00,
   0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
"""

hard_disk_bitmap = """
#define drivea_width 32
#define drivea_height 32
static unsigned char drivea_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0xf8, 0xff, 0xff, 0x1f, 0x08, 0x00, 0x00, 0x18, 0xa8, 0xaa, 0xaa, 0x1a,
   0x48, 0x55, 0xd5, 0x1d, 0xa8, 0xaa, 0xaa, 0x1b, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xfa, 0xaf, 0x1a, 0xc8, 0xff, 0xff, 0x1d, 0xa8, 0xfa, 0xaf, 0x1a,
   0x48, 0x55, 0x55, 0x1d, 0xa8, 0xaa, 0xaa, 0x1a, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xaa, 0xaa, 0x1a, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
"""

def RunSample(w):
    w.img0 = Tix.Image('pixmap', data=network_pixmap)
    if not w.img0:
        w.img0 = Tix.Image('bitmap', data=network_bitmap)
    w.img1 = Tix.Image('pixmap', data=hard_disk_pixmap)
    if not w.img0:
        w.img1 = Tix.Image('bitmap', data=hard_disk_bitmap)

    hdd = Tix.Button(w, padx=4, pady=1, width=120)
    net = Tix.Button(w, padx=4, pady=1, width=120)

    # Create the first image: we create a line, then put a string,
    # a space and an image into this line, from left to right.
    # The result: we have a one-line image that consists of three
    # individual items
    #
    # The tk.calls should be methods in Tix ...
    w.hdd_img = Tix.Image('compound', window=hdd)
    w.hdd_img.tk.call(str(w.hdd_img), 'add', 'line')
    w.hdd_img.tk.call(str(w.hdd_img), 'add', 'text', '-text', 'Hard Disk',
                    '-underline', '0')
    w.hdd_img.tk.call(str(w.hdd_img), 'add', 'space', '-width', '7')
    w.hdd_img.tk.call(str(w.hdd_img), 'add', 'image', '-image', w.img1)

    # Put this image into the first button
    #
    hdd['image'] = w.hdd_img

    # Next button
    w.net_img = Tix.Image('compound', window=net)
    w.net_img.tk.call(str(w.net_img), 'add', 'line')
    w.net_img.tk.call(str(w.net_img), 'add', 'text', '-text', 'Network',
                    '-underline', '0')
    w.net_img.tk.call(str(w.net_img), 'add', 'space', '-width', '7')
    w.net_img.tk.call(str(w.net_img), 'add', 'image', '-image', w.img0)

    # Put this image into the first button
    #
    net['image'] = w.net_img

    close = Tix.Button(w, pady=1, text='Close',
                       command=lambda w=w: w.destroy())

    hdd.pack(side=Tix.LEFT, padx=10, pady=10, fill=Tix.Y, expand=1)
    net.pack(side=Tix.LEFT, padx=10, pady=10, fill=Tix.Y, expand=1)
    close.pack(side=Tix.LEFT, padx=10, pady=10, fill=Tix.Y, expand=1)

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z*MB��
�
samples/ComboBox.pycnu�[����
��^c@siddlZd�Zdd�Zdd�Zd�Zedkreej�Zee�ej	�ndS(i����NcCs�tj|dddtj�}tj�atj�atj|dddddtdd	d
tdd�}tj|dd
dd	dtddd
tdd�}|j	dtj
dtj�|j	dtj
dtj�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d�|jtj
d �|jtj
d!�|jd�|jd �tj|d"tj�}|jd#d$d%d&d	d'd(d|d)��|jd*d$d+d&d	d'd(d|d,��|j	dtjd-tj�|j	dtj
d-tjd.d�dS(/NtbditrelieftlabelsMonth: tdropdowntcommandteditableitvariabletoptionss.listbox.height 6 label.width 10 label.anchor esYear: s<listbox.height 4 label.padY 5 label.width 10 label.anchor netsidetanchortJanuarytFebruarytMarchtApriltMaytJunetJulytAugustt	SeptembertOctobertNovembertDecembert1992t1993t1994t1995t1996torientationtokttexttOkt	underlinetwidthicSs
t|�S(N(t
ok_command(tw((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt<lambda>QttcanceltCancelcSs
|j�S(N(tdestroy(R"((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR#SR$tfilltexpand(tTixtFrametRAISEDt	StringVart
demo_montht	demo_yeartComboBoxtselect_monthtselect_yeartpacktTOPtWtinserttENDt
set_silentt	ButtonBoxt
HORIZONTALtaddtBOTTOMtXtBOTH(R"ttoptatbtbox((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt	RunSamplesJ			



cCsdS(N((tevent((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR1WscCsdS(N((RD((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR2[scCs|j�dS(N(R'(R"((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyR!_st__main__(
R*RCtNoneR1R2R!t__name__tTktroottmainloop(((s1/usr/lib64/python2.7/Demo/tix/samples/ComboBox.pyt<module>s	E	
PKf,�ZSa����samples/DirList.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
#       $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py":  it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program using tixwish.

# This file demonstrates the use of the tixDirList widget -- you can
# use it for the user to select a directory. For example, an installation
# program can use the tixDirList widget to ask the user to select the
# installation directory for an application.
#

import Tix, os, copy
from Tkconstants import *

TCL_ALL_EVENTS          = 0

def RunSample (root):
    dirlist = DemoDirList(root)
    dirlist.mainloop()
    dirlist.destroy()

class DemoDirList:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        # Create the tixDirList and the tixLabelEntry widgets on the on the top
        # of the dialog box

        # bg = root.tk.eval('tix option get bg')
        # adding bg=bg crashes Windows pythonw tk8.3.3 Python 2.1.0

        top = Tix.Frame( w, relief=RAISED, bd=1)

        # Create the DirList widget. By default it will show the current
        # directory
        #
        #
        top.dir = Tix.DirList(top)
        top.dir.hlist['width'] = 40

        # When the user presses the ".." button, the selected directory
        # is "transferred" into the entry widget
        #
        top.btn = Tix.Button(top, text = "  >>  ", pady = 0)

        # We use a LabelEntry to hold the installation directory. The user
        # can choose from the DirList widget, or he can type in the directory
        # manually
        #
        top.ent = Tix.LabelEntry(top, label="Installation Directory:",
                                  labelside = 'top',
                                  options = '''
                                  entry.width 40
                                  label.anchor w
                                  ''')

        font = self.root.tk.eval('tix option get fixed_font')
        # font = self.root.master.tix_option_get('fixed_font')
        top.ent.entry['font'] = font

        self.dlist_dir = copy.copy(os.curdir)
        # This should work setting the entry's textvariable
        top.ent.entry['textvariable'] = self.dlist_dir
        top.btn['command'] = lambda dir=top.dir, ent=top.ent, self=self: \
                             self.copy_name(dir,ent)

        # top.ent.entry.insert(0,'tix'+repr(self))
        top.ent.entry.bind('<Return>', lambda self=self: self.okcmd () )

        top.pack( expand='yes', fill='both', side=TOP)
        top.dir.pack( expand=1, fill=BOTH, padx=4, pady=4, side=LEFT)
        top.btn.pack( anchor='s', padx=4, pady=4, side=LEFT)
        top.ent.pack( expand=1, fill=X, anchor='s', padx=4, pady=4, side=LEFT)

        # Use a ButtonBox to hold the buttons.
        #
        box = Tix.ButtonBox (w, orientation='horizontal')
        box.add ('ok', text='Ok', underline=0, width=6,
                     command = lambda self=self: self.okcmd () )
        box.add ('cancel', text='Cancel', underline=0, width=6,
                     command = lambda self=self: self.quitcmd () )

        box.pack( anchor='s', fill='x', side=BOTTOM)

    def copy_name (self, dir, ent):
        # This should work as it is the entry's textvariable
        self.dlist_dir = dir.cget('value')
        # but it isn't so I'll do it manually
        ent.entry.delete(0,'end')
        ent.entry.insert(0, self.dlist_dir)

    def okcmd (self):
        # tixDemo:Status "You have selected the directory" + self.dlist_dir
        self.quitcmd()

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        while self.exit < 0:
            self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()

# This "if" statement makes it possible to run this script file inside or
# outside of the main demo program "tixwidgets.py".
#
if __name__== '__main__' :
    import tkMessageBox, traceback

    try:
        root=Tix.Tk()
        RunSample(root)
    except:
        t, v, tb = sys.exc_info()
        text = "Error running the demo script:\n"
        for line in traceback.format_exception(t,v,tb):
            text = text + line + '\n'
            d = tkMessageBox.showerror ( 'Tix Demo Error', text)
PKf,�Z0�7bbsamples/OptMenu.pycnu�[����
��^c@szddlZidd6dd6dd6dd	6d
d6Zd�Zd
�Zedkrvej�Zee�ej�ndS(i����Ns
Plain Textttextt
PostScripttposttHTMLthtmltLaTeXttexsRich Text FormattrtfcCs�tj�atj�atj|dddtj�}tj|dddtdd�}tj|dd	dtdd�}xBtj�D]4}|j	|dt|�|j	|dt|�q�Wtj
d
�tj
d�|jdtjd
tj
dddd�|jdtjd
tj
dddd�tj|dtj�}|jdddddddd|d��|jdddddddd|d��|jdtjdtj�|jdtjdtjdd�dS( NtbditrelieftlabelsFrom File Format : tvariabletoptionss2label.width  19 label.anchor e menubutton.width 15sTo File Format : RRtsidetanchortpadyitpadxitorientationtokRtOkt	underlineitwidthtcommandcSs
t|�S(N(t
ok_command(tw((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt<lambda>7ttcanceltCancelcSs
|j�S(N(tdestroy(R((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyR9Rtfilltexpand(tTixt	StringVart
demo_opt_fromtdemo_opt_totFrametRAISEDt
OptionMenuRtkeystadd_commandtsettpacktTOPtWt	ButtonBoxt
HORIZONTALtaddtBOTTOMtXtBOTH(Rttopt	from_filetto_filetopttbox((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt	RunSamples.		

((

cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyR=st__main__(R RR8Rt__name__tTktroottmainloop(((s0/usr/lib64/python2.7/Demo/tix/samples/OptMenu.pyt<module>s	(	
PKf,�Z���aasamples/SHList1.pyonu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(t
DemoSHListtmainlooptdestroy(troottshlist((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt	RunSamples
RcBs5eZd�Zd�Zd�Zd�Zd�ZRS(c
Cst||_d|_|j�}|jd|d��tj|dtjdd�}tj|�|_|jj	dddtj
d	d
dd
dtj�d9d:d;g}d<d=d>d?d@dAdBg}|jj}|j
d!d"d#d$d%d&d'd
�d&}x�|D]�\}}	|retj|d(d)|d*d+d#d,dd+dtj�}
|jd-tjd.|
d/tj�n|j|d-tjd0|	�|d}q�Wx8|D]0\}}}	|d"|}|j|d0|	�q�Wtj|d1tj�}
|
jd2d0d3d4d&d#d5d6|j�|
jd7d0d8d4d&d#d5d6|j�|
j	dtjdtj�|j	dtjdtj
dd�dS(CNi����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt<lambda>ttrelieftbditexpandtfilltpadxi
tpadytsidetjeffsJeff WaxmantjohnsJohn LeetpetersPeter KensontalexsAlex Kellmantalans
Alan AdamstandysAndreas Crawfordtdougs
Douglas Bloomtjons
Jon BarakitchrissChris GeoffreytchucksChuck McLeant	separatort.twidthit
drawbranchitindenttnamessep%dtheightii�titemtypetwindowtstatettexttorientationtoktOkt	underlineitcommandtcanceltCancel(RsJeff Waxman(RsJohn Lee(RsPeter Kenson(RRsAlex Kellman(RRs
Alan Adams(RRsAndreas Crawford(RRs
Douglas Bloom(RRs
Jon Baraki(RRsChris Geoffrey(RRsChuck McLean(Rtexittwinfo_topleveltwm_protocoltTixtFrametRAISEDt
ScrolledHListtatpacktBOTHtTOPthlisttconfigtSUNKENt	add_childtWINDOWtDISABLEDtaddtTEXTt	ButtonBoxt
HORIZONTALtokcmdRtBOTTOMtX(Rtwtzttoptbossest	employeesR9tcounttbossR!tftpersontkeytbox((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt__init__sL		1		""

cCs|j�dS(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRCpscCs
d|_dS(Ni(R.(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRsscCs-x&|jdkr(|jjjt�qWdS(Ni(R.Rttkt
dooneeventtTCL_ALL_EVENTS(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRvscCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRzs(t__name__t
__module__RQRCRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyRs
	V			t__main__((R1RTRRRUtTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/SHList1.pyt<module>s	hPKf,�Z�?�samples/CmpImg.pycnu�[����
��^c@s`ddlZdZdZdZdZd�Zedkr\ej�Zee�ej	�ndS(i����Ns�/* XPM */
static char * netw_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 7 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #404040",
"+      c blue",
"@      c red",
/* pixels */
"                                ",
"                 .............. ",
"                 .XXXXXXXXXXXX. ",
"                 .XooooooooooO. ",
"                 .Xo.......XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++oo++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.+o++++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.XXXXXXXoO. ",
"                 .XooooooooooO. ",
"                 .Xo@ooo....oO. ",
" ..............  .XooooooooooO. ",
" .XXXXXXXXXXXX.  .XooooooooooO. ",
" .XooooooooooO.  .OOOOOOOOOOOO. ",
" .Xo.......XoO.  .............. ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++oo++XoO.        @        ",
" .Xo.++++++XoO.        @        ",
" .Xo.+o++++XoO.        @        ",
" .Xo.++++++XoO.      .....      ",
" .Xo.XXXXXXXoO.      .XXX.      ",
" .XooooooooooO.@@@@@@.X O.      ",
" .Xo@ooo....oO.      .OOO.      ",
" .XooooooooooO.      .....      ",
" .XooooooooooO.                 ",
" .OOOOOOOOOOOO.                 ",
" ..............                 ",
"                                "};
su/* XPM */
static char * drivea_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 5 1",
/* colors */
"       s None  c None",
".      c #000000000000",
"X      c white",
"o      c #c000c000c000",
"O      c #800080008000",
/* pixels */
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"   ..........................   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXo.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .Xoo...................oO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .oOOOOOOOOOOOOOOOOOOOOOOO.   ",
"   ..........................   ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                "};
su
#define netw_width 32
#define netw_height 32
static unsigned char netw_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x02, 0x40,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x52,
   0x00, 0x00, 0x0a, 0x52, 0x00, 0x00, 0x8a, 0x51, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0x4a, 0x50, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x02, 0x40, 0xfe, 0x7f, 0x52, 0x55,
   0x02, 0x40, 0xaa, 0x6a, 0xfa, 0x5f, 0xfe, 0x7f, 0x0a, 0x50, 0xfe, 0x7f,
   0x0a, 0x52, 0x80, 0x00, 0x0a, 0x52, 0x80, 0x00, 0x8a, 0x51, 0x80, 0x00,
   0x0a, 0x50, 0x80, 0x00, 0x4a, 0x50, 0x80, 0x00, 0x0a, 0x50, 0xe0, 0x03,
   0x0a, 0x50, 0x20, 0x02, 0xfa, 0xdf, 0x3f, 0x03, 0x02, 0x40, 0xa0, 0x02,
   0x52, 0x55, 0xe0, 0x03, 0xaa, 0x6a, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00,
   0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
s{
#define drivea_width 32
#define drivea_height 32
static unsigned char drivea_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0xf8, 0xff, 0xff, 0x1f, 0x08, 0x00, 0x00, 0x18, 0xa8, 0xaa, 0xaa, 0x1a,
   0x48, 0x55, 0xd5, 0x1d, 0xa8, 0xaa, 0xaa, 0x1b, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xfa, 0xaf, 0x1a, 0xc8, 0xff, 0xff, 0x1d, 0xa8, 0xfa, 0xaf, 0x1a,
   0x48, 0x55, 0x55, 0x1d, 0xa8, 0xaa, 0xaa, 0x1a, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xaa, 0xaa, 0x1a, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
cCs�tjddt�|_|js<tjddt�|_ntjddt�|_|jsxtjddt�|_ntj|dddddd	�}tj|dddddd	�}tjd
d|�|_	|j	j
jt|j	�dd
�|j	j
jt|j	�dddddd�|j	j
jt|j	�dddd�|j	j
jt|j	�ddd|j�|j	|d<tjd
d|�|_
|j
j
jt|j
�dd
�|j
j
jt|j
�dddddd�|j
j
jt|j
�dddd�|j
j
jt|j
�ddd|j�|j
|d<tj|ddddd|d��}|jdtjdddddtjdd�|jdtjdddddtjdd�|jdtjdddddtjdd�dS( Ntpixmaptdatatbitmaptpadxitpadyitwidthixtcompoundtwindowtaddtlinettexts-texts	Hard Disks
-underlinet0tspaces-widtht7timages-imagetNetworktClosetcommandcSs
|j�S(N(tdestroy(tw((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt<lambda>�ttsidei
tfilltexpand(tTixtImagetnetwork_pixmaptimg0tnetwork_bitmapthard_disk_pixmaptimg1thard_disk_bitmaptButtonthdd_imgttktcalltstrtnet_imgtpacktLEFTtY(Rthddtnettclose((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt	RunSample�s6		!!"$
(+
"$
(+
..t__main__(
RRRRR R-t__name__tTktroottmainloop(((s//usr/lib64/python2.7/Demo/tix/samples/CmpImg.pyt<module>s/-	/
PKf,�Z7�:�BBsamples/BtnBox.pycnu�[����
��^c@sHddlZd�ZedkrDej�Zee�ej�ndS(i����NcCs�tj|dddddddtjdtjd	d
�}tj|dtj�}|jdd	d
ddddd|d��|jdd	dddddd|d��|jdtjdtj	�|jdtj
dtjdd�dS(Ntpadxitpadyi
tbditrelieftanchorttexts?This dialog box is
 a demonstration of the
 tixButtonBox widgettorientationtoktOKt	underlineitwidthitcommandcSs
|j�S(N(tdestroy(tw((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt<lambda>#ttclosetCancelcSs
|j�S(N(R(R
((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyR%Rtsidetfilltexpand(tTixtLabeltRAISEDtCENTERt	ButtonBoxt
HORIZONTALtaddtpacktBOTTOMtXtTOPtBOTH(R
ttoptbox((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt	RunSamples'	

t__main__(RR#t__name__tTktroottmainloop(((s//usr/lib64/python2.7/Demo/tix/samples/BtnBox.pyt<module>s
	
PKf,�ZV�G���samples/Balloon.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixBalloon widget, which provides
# an interesting way to give help tips about elements in your user interface.
# Your can display the help message in a "balloon" and a status bar widget.
#

import Tix

TCL_ALL_EVENTS          = 0

def RunSample (root):
    balloon = DemoBalloon(root)
    balloon.mainloop()
    balloon.destroy()

class DemoBalloon:
    def __init__(self, w):
        self.root = w
        self.exit = -1

        z = w.winfo_toplevel()
        z.wm_protocol("WM_DELETE_WINDOW", lambda self=self: self.quitcmd())

        status = Tix.Label(w, width=40, relief=Tix.SUNKEN, bd=1)
        status.pack(side=Tix.BOTTOM, fill=Tix.Y, padx=2, pady=1)

        # Create two mysterious widgets that need balloon help
        button1 = Tix.Button(w, text='Something Unexpected',
                             command=self.quitcmd)
        button2 = Tix.Button(w, text='Something Else Unexpected')
        button2['command'] = lambda w=button2: w.destroy()
        button1.pack(side=Tix.TOP, expand=1)
        button2.pack(side=Tix.TOP, expand=1)

        # Create the balloon widget and associate it with the widgets that we want
        # to provide tips for:
        b = Tix.Balloon(w, statusbar=status)

        b.bind_widget(button1, balloonmsg='Close Window',
                      statusmsg='Press this button to close this window')
        b.bind_widget(button2, balloonmsg='Self-destruct button',
                      statusmsg='Press this button and it will destroy itself')

    def quitcmd (self):
        self.exit = 0

    def mainloop(self):
        foundEvent = 1
        while self.exit < 0 and foundEvent > 0:
            foundEvent = self.root.tk.dooneevent(TCL_ALL_EVENTS)

    def destroy (self):
        self.root.destroy()

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
PKf,�Z!��samples/BtnBox.pynu�[���# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id$
#
# Tix Demonstration Program
#
# This sample program is structured in such a way so that it can be
# executed from the Tix demo program "tixwidgets.py": it must have a
# procedure called "RunSample". It should also have the "if" statment
# at the end of this file so that it can be run as a standalone
# program.

# This file demonstrates the use of the tixButtonBox widget, which is a
# group of TK buttons. You can use it to manage the buttons in a dialog box,
# for example.
#

import Tix

def RunSample(w):
    # Create the label on the top of the dialog box
    #
    top = Tix.Label(w, padx=20, pady=10, bd=1, relief=Tix.RAISED,
                    anchor=Tix.CENTER, text='This dialog box is\n a demonstration of the\n tixButtonBox widget')

    # Create the button box and add a few buttons in it. Set the
    # -width of all the buttons to the same value so that they
    # appear in the same size.
    #
    # Note that the -text, -underline, -command and -width options are all
    # standard options of the button widgets.
    #
    box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL)
    box.add('ok', text='OK', underline=0, width=5,
            command=lambda w=w: w.destroy())
    box.add('close', text='Cancel', underline=0, width=5,
            command=lambda w=w: w.destroy())
    box.pack(side=Tix.BOTTOM, fill=Tix.X)
    top.pack(side=Tix.TOP, fill=Tix.BOTH, expand=1)

if __name__ == '__main__':
    root = Tix.Tk()
    RunSample(root)
    root.mainloop()
PKf,�Z���\
\
samples/Balloon.pycnu�[����
��^c@sWddlZdZd�Zddd��YZedkrSej�Zee�ndS(i����NicCs$t|�}|j�|j�dS(N(tDemoBalloontmainlooptdestroy(troottballoon((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt	RunSamples
RcBs,eZd�Zd�Zd�Zd�ZRS(c	Cs@||_d|_|j�}|jd|d��tj|dddtjdd�}|jd	tjd
tj	ddd
d�tj
|ddd|j�}tj
|dd�}|d�|d<|jd	tjdd�|jd	tjdd�tj
|d|�}|j|dddd�|j|dddd�dS(Ni����tWM_DELETE_WINDOWcSs
|j�S(N(tquitcmd(tself((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt<lambda>!ttwidthi(trelieftbditsidetfilltpadxitpadyttextsSomething UnexpectedtcommandsSomething Else UnexpectedcSs
|j�S(N(R(tw((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR	*R
texpandt	statusbart
balloonmsgsClose Windowt	statusmsgs&Press this button to close this windowsSelf-destruct buttons,Press this button and it will destroy itself(Rtexittwinfo_topleveltwm_protocoltTixtLabeltSUNKENtpacktBOTTOMtYtButtonRtTOPtBalloontbind_widget(RRtztstatustbutton1tbutton2tb((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt__init__s"		$(cCs
d|_dS(Ni(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR7scCsAd}x4|jdkr<|dkr<|jjjt�}q	WdS(Nii(RRttkt
dooneeventtTCL_ALL_EVENTS(Rt
foundEvent((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR:scCs|jj�dS(N(RR(R((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyR?s(t__name__t
__module__R+RRR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyRs			t__main__((RR.RRR0tTkR(((s0/usr/lib64/python2.7/Demo/tix/samples/Balloon.pyt<module>s	'PKf,�Z��b&UUsamples/PopMenu.pyonu�[����
��^c@sHddlZd�ZedkrDej�Zee�ej�ndS(i����NcCstj|dtjdd�}tj|dd�}|jdddtjdd	d
d	�tj|dd�}|j|�|j|�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�|jj	d
ddd�tj
|j�}|j	d
d�|jjd
dd|�|jdtjddd
d	�tj
|dtj�}|jdddddddd|d ��|jd!dd"ddddd|d#��|jdtjdtj�|jdtjdtjdd�dS($NtrelieftbdittextsEPress the right mouse button over this button or its surrounding areatexpandtfilltpadxi2tpadyttitles
Popup TesttlabeltDesktopt	underlineitSelecttFindtSystemtHelptHellotMoretmenutsidei(torientationtoktOktwidthitcommandcSs
|j�S(N(tdestroy(tw((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt<lambda>0ttcanceltCancelcSs
|j�S(N(R(R((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyR2R(tTixtFrametRAISEDtButtontpacktBOTHt	PopupMenutbind_widgetRtadd_commandtMenutadd_cascadetTOPt	ButtonBoxt
HORIZONTALtaddtBOTTOMtX(Rttoptbuttptm1tbox((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt	RunSamples,%



t__main__(RR4t__name__tTktroottmainloop(((s0/usr/lib64/python2.7/Demo/tix/samples/PopMenu.pyt<module>s
	%
PKf,�Z��{�̖̖tixwidgets.pyonu�[����
��^c
@s�ddlZddlZddlZddlZddlTddlZddlZdQZdRZdSZ	dTZ
dUZdZd	dVd
��YZ
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zddddgad�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd �Z d!�Z!d"�Z"d#�Z#d$�Z$d%�Z%d&�Z&d'�Z'd(�Z(d)�Z)d*�Z*d+�Z+d,�Z,d-�Z-id.d/6d0d16Z.id2d26d3d46d5d66d7d86d9d:6d;d<6d=d=6d>d?6d@dA6dBdC6dDdE6dFdG6dHdI6dJdK6Z/iZ0d2d4d6d=d:d<d?dAdEdCdGdIdKg
e0d/<d8ge0d1<dL�Z1dM�Z2dN�Z3dO�Z4e5dPkr�ej6�a7et7�ndS(Wi����N(t*iiiiiitDemocBsPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cCsT||_d|_d|_d|_tj�|_|jjd�d|_	d|_
d|_d|_t
jd}tjj|�}|r'|tjkr'||_d}xHttt
j��D]1}t
j|}|dtjfkr�|}q�q�W|dkr|t
j|<q6t
jjd|�ntj�|_t
jjd|jd�dS(Ni����t0tis/samples(troottexittNonetdirtballoontTixt	StringVartuseBalloonstsett	statusbartwelmsgtwelfonttwelsizetsystargvtostpathtdirnametcurdirtrangetlentinserttgetcwd(tselfttoptprognameRtindextitp((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt__init__s0								
	

c	Cs|j}tj|dddt�}tj|dddddd�}tj|dd	dddd�}|jd
t�|jd
t�tj|dd�}||d<tj|dd�}||d<|j	d
dddd|d��|j
d
ddddtd|j�|S(NtbditreliefttexttFilet	underlineit	takefocustHelptsidettearofftmenutlabeltExititcommandcSs
|j�S(N(tquitcmd(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt<lambda>FRtBalloonHelptvariable(
RR	tFrametRAISEDt
MenubuttontpacktLEFTtRIGHTtMenutadd_commandtadd_checkbuttont
ToggleHelpR(RRtwtfilethelptfmthm((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt
MkMainMenu9s	!!



c
Cs,|j}tj|dddddd�}|d|d<|jddd	d
dd|dd
��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|jdddd
dd|dd��|S(NtipadxitipadytoptionssC
        tagPadX 6
        tagPadY 4
        borderWidth 2
        tbgtwelR,tWelcomeR&it	createcmdcSs
t||�S(N(t	MkWelcome(R=tname((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0ZRtchotChooserscSs
t||�S(N(t
MkChoosers(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0\RtscrsScrolled WidgetscSs
t||�S(N(tMkScroll(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0^RtmgrsManager WidgetscSs
t||�S(N(t	MkManager(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0`RRsDirectory ListcSs
t||�S(N(t	MkDirList(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0bRtexpsRun Sample ProgramscSs
t||�S(N(tMkSample(R=RK((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0dR(RR	tNoteBooktadd(RRR=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytMkMainNotebookOs"		c	Csq|j}tj|dtjdd�}tj|dtjdd�t_tjjddddddd	d
�|S(NR#R"itpadxitpadytleftitrights%70(	RR	R3R4tLabeltSUNKENtdemoR
tform(RRR=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytMkMainStatusgs
	!%cCs|j}|j�}|jd�|j�dkrD|jd�n
|jd�tj|�t_|j	�}|j
�}|j�}|jdt
dt�|jdtdt�|jdt
dddtd	d
dd
�tjtjd<|jd
|d��dS(NsTix Widget Demonstrationi s
790x590+10+10s
890x640+10+10R)tfilltexpandiRYiRZR
tWM_DELETE_WINDOWcSs
|j�S(N(R/(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�R(Rtwinfo_topleveltwm_titletwinfo_screenwidthtgeometryR	tBalloonR_RRBRXRaR6tTOPtXtBOTTOMtBOTHR
twm_protocol(RRtztframe1tframe2tframe3((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytbuildps	

(cCs
d|_dS(s@Quit our mainloop. It is up to you to call root.destroy() after.iN(R(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR/�scCsx|jdkry-x&|jdkr=|jjjt�qWWqtk
r\d|_dStk
r�tjdd�dkrd|_dSqqt	j
�\}}}d}x+tj|||�D]}||d7}q�Wytj
d	|�WnnXd|_td�qXqWdS(
s�This is an explict replacement for _tkinter mainloop()
        It lets you catch keyboard interrupts easier, and avoids
        the 20 msec. dead sleep() which burns a constant CPU.iiNt	InterruptsReally Quit?tyesRs
tError(RRttkt
dooneeventtTCL_ALL_EVENTSt
SystemExittKeyboardInterruptttkMessageBoxtaskquestionRtexc_infot	tracebacktformat_exceptiont	showerror(RtttvttbR$tline((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytloop�s.
	
		cCs|jj�dS(N(Rtdestroy(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s(
t__name__t
__module__R!RBRXRaRsR/R�R�(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRs								"cCs.t|�atj�tj�tj�dS(N(RR_RsR�R�(R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytRunMain�s

c	Csi|j|�}t|�}t|�}|jdtdtdddd�|jdtdtdd�dS(NR)RbRYiRZRci(tpagetMkWelcomeBart
MkWelcomeTextR6RjRkRm(tnbRKR=tbarR$((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRJ�s
"cCs�tj|dddtj�}tj|d|d��}tj|d|d��}d|jd<d	|jjd
<d|jd<d	|jjd
<|t_|t_	|j
tjd�|j
tjd
�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|j
tjd�|jd�|jd	�|j
dtjdddd�|j
dtjdddd�tjj|dddd�tjj|dddd�|S(NR"iR#R.cSs
t|�S(N(tMainTextFont(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RcSs
t|�S(N(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RitwidthitheightitCouriert	HelveticatLucidasTimes Romant8t10t12t14t18iR)RYRZtmsgs
Choose
a fontt	statusmsgsChoose a font for this pages
Point sizes"Choose the font size for this page(R	R3tGROOVEtComboBoxtentrytslistboxtlistboxR_RRRtENDtpickR6R7Rtbind_widget(RR=tb1tb2((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s6

		

c
Cs�tj|dd�}|j}d}tj|dddddtjd	|�}tj|dddd
dtjd	d�}|jdd
dtjdddd�|jdd
dtjdddd�|t_	|S(Nt	scrollbartautosWelcome to TIX in PythonR"iR�itanchorR$i�s%Tix is a set of mega-widgets based on TK. This program demonstrates the widgets in the Tix widget set. You can choose the pages in this window to look at the corresponding widgets. 

To quit this program, choose the "File | Exit" command.

For more information, see http://tix.sourceforge.net.RciRbRYi
RZ(
R	tScrolledWindowtwindowR]tNtMessageR6RmR_R(RR=twinR$ttitleR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s		%%	cCs]tjs
dStjd}tjd}|dkr<d}nd||f}|tjd<dS(NtvaluesTimes Romanttimess%s %stfont(R_RRR(R=R�tpointtfontstr((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	

	cCs6tjj�dkr%dtjd<n
dtjd<dS(Nt1tbothtstatetnone(R_RtgetR(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR<sc	Csw|j|�}d}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|ddd|�}tj|dd	d|�}	tj|dd
d|�}
tj|ddd|�}t|j�t|j�t|j�t|j�t|j�t	|	j�t
|
j�t|j�|jdd
dd
dd�|jdd
ddt
|�d|�|jdd
ddt
|�d|dd�|jd|dd
dd�|jd|ddt
|�d|�|	jd|ddt
|�d|�|jd|ddt
|�d|	dd�|
jdddd
dd�dS(Nslabel.padX 4R,sChooser WidgetsREttixComboBoxt
tixControlt	tixSelectt
tixOptionMenuttixFileEntryttixFileSelectBoxsTool BarRiR[R\s%33t&tbottomi����s%66(R�R	t
LabelFrametMkTitletframetMkCombot	MkControltMkSelectt	MkOptMenut	MkFileEntt	MkFileBoxt	MkToolBarR`tstr(R�RKR=REttiltcbxtctltseltopttfiltfbxttbr((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRNs4







&,&&,cCseddtjdf}tj|ddddd|�}tj|dd	dd
d|�}tj|dddd
dd
d
tjd|�}|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd�|jtjd �|jtjd!�|jd"tjd#d$d%d&�|jd"tjd#d$d%d&�|jd"tjd#d$d%d&�dS('Ns-label.width %d label.anchor %s entry.width %di
iR,tStaticteditableiREtEditableitHistorythistoryR�tJanuarytFebruarytMarchtApriltMaytJunetJulytAugustt	SeptembertOctobertNovembertDecembertAngolat
BangladeshtChinatDenmarktEcuadors/usr/bin/kshs/usr/local/lib/pythons/var/admR)RYiRZi(R	tER�RR�R6Rj(R=REtstaticR�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�0s8!!tBengaltDelhit	Karnatakas
Tamil NaducCshtjtj��|}|dkr8tt�d}n|tt�krSd}ntjt|�dS(Nii(tstatesRtdemo_spintxtR�RR(R=tinctidx((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pytspin_cmdTs	cCs:ytjtj��}Wntk
r1tdSXt|S(Ni(R�RR�R�t
ValueError(R=R((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt
spin_validate^s

	cCs�ddtjdf}tj�atjtd�tj|ddd|�}tj|ddd	td|�}|d
�|d<|d�|d
<|d�|d<|jdtjdddd�|jdtjdddd�dS(Ns-label.width %d label.anchor %s entry.width %di
i
iR,tNumbersREtStatesR2cSs
t|d�S(Ni(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0rRtincrcmdcSs
t|d�S(Ni����(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0sRtdecrcmdcSs
t|�S(N(R�(R=((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0tRtvalidatecmdR)RYiRZi(	R	R�R
R�RR�tControlR6Rj(R=REtsimpletspintxt((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�hs	cCs�dtj}tj|dddddddtjdtjd	|�}tj|dd
dddddtjdtjd	|�}|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdd
d�|jdtjddddd tj�|jdtjddddd tj�dS(!Nslabel.anchor %sR,sMere Mortalst	allowzeroitradiotorientationt	labelsideREtGeeksiteatR$tEattworktWorktplaytPlaytpartytPartytsleeptSleeptprog1tProgramtprog2tprog3R)RYiRZiRb(	R	tCENTERtSelecttVERTICALRjRWR6R7Rk(R=REtsel1tsel2((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR�ys*
						(cCs�dtj}tj|ddd|�}|jddd�|jddd�|jd	dd
�|jddd�|jd
�|jddd�|jddd�|jdtjdddd�dS(Ns#menubutton.width 15 label.anchor %sR,sFile Format : RER$s
Plain Texttpostt
PostScripttformatsFormatted TextthtmltHTMLtsepttextLaTeXtrtfsRich Text FormatRbRYiRZi(R	R�t
OptionMenuR:R6Rk(R=REtm((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s

cCs�tj|dtjdddtjdd�}tj|dd�}|jd	tjd
ddtjd
ddd�|jd	tjdtjd
ddd�dS(NR#R�i�R�R$sGPress the "open file" icon button and a TixFileSelectDialog will popup.R,sSelect a file : R)RciRbRYiRZ(	R	R�tFLATR�t	FileEntryR6RjRmRk(R=R�tent((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	.cCs�tj|dtjdddtjdd�}tj|�}|jdtjdd	d
tjddd
d�|jdtjd
tjddd
d�dS(s�The FileSelectBox is a Motif-style box with various enhancements.
    For example, you can adjust the size of the two listboxes
    and your past selections are recorded.
    R#R�i�R�R$s�The Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.R)RciRbRYiRZN(	R	R�R"R�t
FileSelectBoxR6RjRmRk(R=R�tbox((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	.cCs;d}tj|dtjdddtjdd�}tj|dd	dtj�}tj|d
ddd
ddd|�}tj|d
d
ddddd|�}|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d�|jdddtj	d �|jd!ddtj	d"�|j
d#tjd$dd%tjd&d'd(d'�|j
d#tjd%tj
d&d'd(d'�|j
i|d)6d#tjd&d'd(d'�|j
i|d)6d#tjd&d'd(d'�d*S(+sHThe Select widget is also good for arranging buttons in a tool bar.
    sframe.borderWidth 1R#R�i�R�R$sCThe Select widget is also good for arranging buttons in a tool bar.R"iR�iRiR,RREtboldtbitmapt@s/bitmaps/bold.xbmtitalics/bitmaps/italic.xbmR&s/bitmaps/underline.xbmtcapitals/bitmaps/capital.xbmR[s/bitmaps/leftj.xbmR\s/bitmaps/rightj.xbmtcenters/bitmaps/centerj.xbmtjustifys/bitmaps/justify.xbmR)RcRbRYiRZtinN(R	R�R"R�R3R4RRWR_RR6RjRmRkR7(R=RER�R�R�tpara((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s&	''.()cCs_tj|dtjdddtjdd�}|jdtjdd	d
tjddd
d�dS(NR#R�i�R�R$seThere are many types of "chooser" widgets that allow the user to input different types of informationR)RciRbRYiRZ(R	R�R"R�R6RjRm(R=R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s	c	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}tj|ddd|�}t|j�t|j�t|j�|jddd	dd
ddd
�|jddd	|d
ddd
�|jddd	|d
d
dd
�dS(Nslabel.padX 4R,sTix.ScrolledListBoxREsTix.ScrolledWindowsTix.ScrolledTextRiR[R\s%33R�i����s%66(R�R	R�tMkSListR�t	MkSWindowtMkSTextR`(R�RKR=REtslstswntstx((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRP�s


""cCstj|dddd�}tj|�}tj|dtjdddtjdd	�}tj|d
d�}|jdd
dddddd�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�|jjtj	d�tj
|dddtjdddddd
d d!�}tj|dd"d#||d$��}|j
d%�|jd&tj�|jdtj�|jd'dd&tj�|jd&tj�|jd(d)d%||d*��d+S(,s�This TixScrolledListBox is configured so that it uses scrollbars
    only when it is necessary. Use the handles to resize the listbox and
    watch the scrollbars automatically appear and disappear.  R�i,R�iJR#i�R�R$s�This TixScrolledListBox is configured so that it uses scrollbars only when it is necessary. Use the handles to resize the listbox and watch the scrollbars automatically appear and disappear.R�R�txi2tyi�ixiPtAlabamat
CaliforniatMontanas
New JerseysNew YorktPennsylvaniat
WashingtonRFtblackt
handlesizeitgriddeditminwidtht	minheightitResetR.cSs
t||�S(N(tSList_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0RiRbRcs<Map>tfunccSs%|jjdt|�dt|��S(Nt
tixDoWhenIdletattachwidget(RwtcallR�(targtrhtlist((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0sN(R	R3R�R"R�tScrolledListBoxtplaceR�RR�tResizeHandleR4tButtont	propagateR6RkRRmtbind(R=RtbotR�RJRItbtn((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�s0	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6i2R7i�R�ixR�iP(RLtupdatet
attach_widget(RIRJ((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRC
s"
cCs�d}tjjtjdd�}tjj|�s@|d7}ntj|dddd�}tj|�}tj|dtj	dd	d
tj
d|�}tj|dd
�}|jj
dd|�}tj|jd|�}|jdddtj�|jdddddddd�tj|dddtjdddddd d!d�}	tj|dd"d#|	|d$��}
|jd%�|jdtj�|
jd
tj�|jdddtj�|jdtj�|jd&d'd%|	|d(��d)S(*s�The ScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.
    s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.tbitmapsstix.gifs (Image missing)R�iJR�R#i�R�R$R�R�tphotoR>timageRciRbR6iR7i�i�ixRFR=R>iR?R@i2RARBR.cSs
t||�S(N(t
SWindow_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0,Ris<Map>RDcSs%|jjdt|�dt|��S(NRERF(RwRGR�(RHRIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR03sN(RRtjoinR_RtisfileR	R3R�R"R�R�R�timage_createR]R6RmRLRMR4RNRORkRRP(R=R$R>RRQR�R�timage1tlblRIRR((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR1s0
	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6iR7i�R�i�R�ix(RLRSRT(RIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRX6s"
cCs�tj|dddd�}tj|�}tj|dtjdddtjdd�}tj|d	d
�}d|jd<|jjtjd
�|j	dddddddd�tj
|dddtjdddddddd�}tj|ddd||d��}|j
d �|jd!tj�|jdtj�|jd"dd!tj�|jd!tj�|jd#d$d ||d%��d&S('s�The TixScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.R�iJR�R#i�R�R$s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.R�R�R�twraps�When -scrollbar is set to "auto", the
scrollbars are shown only when needed.
Additional modifiers can be used to force a
scrollbar to be shown or hidden. For example,
"auto -y" means the horizontal scrollbar
should be shown when needed but the vertical
scrollbar should always be hidden;
"auto +x" means the vertical scrollbar
should be shown when needed but the horizontal
scrollbar should always be shown, and so on.R6iR7i�i�idRFR=R>iR?iR@i2RARBR.cSs
t||�S(N(tSText_reset(R=R6((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0VRiRbRcs<Map>RDcSs%|jjdt|�dt|��S(NRERF(RwRGR�(RHRIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0\sN(R	R3R�R"R�tScrolledTextR$RR�RLRMR4RNROR6RkRRmRP(R=RRQR�R�RIRR((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR2;s(	
	"	$
c	Cs=|jdddddddd�|j�|j|�dS(	NR6iR7i�R�i�R�ix(RLRSRT(RIR�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR__s"
c	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}t|j�t|j�|jddddd	|d
d�|jddd	dd
d�dS(Nslabel.padX 4R,sTix.PanedWindowREsTix.NoteBookRiR[R\R�i����(R�R	R�t
MkPanedWindowR�t
MkNoteBookR`(R�RKR=REtpanetnote((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRRds

"cCs[tj|dtjdddtjdd�}tj|ddd	d
�}|jjdd�tj|d
d�}|jddddd�}|jddd�}tj	|�}tj
|�}|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jjtjd�|jd|j
d<d|j
d<|j
jtjd�|jdd d!tjd"d#d$d%�|jdd d!tjd"d#d$d%�|jd&tjd"d'd$d'd!tj�|jd&tjd"d'd$d'd!tj�|jd&tjd"d'd$d'd!tjdd �d(S()s�The PanedWindow widget allows the user to interactively manipulate
    the sizes of several panes. The panes can be arranged either vertically
    or horizontally.
    R#R�i�R�R$s�The PanedWindow widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally.R,s
Newsgroup:REsentry.width 25iscomp.lang.pythonRtverticalRJtminiFtsizeids+  12324 Re: Tkinter is good for your healths++ 12325 Re: Tkinter is good for your healthsH+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12327 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12329 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)RFR�R^sO
Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
Lines 353       A new way to put text and bitmaps together iNo responses
ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

Hi,

I have implemented a new image type called "compound". It allows you
to glue together a bunch of bitmaps, images and text strings together
to form a bigger image. Then you can use this image with widgets that
support the -image option. For example, you can display a text string
together with a bitmap, at the same time, inside a TK button widget.
RciRbRYiRZiR)iN(R	R�R"R�t
LabelEntryR�RtPanedWindowRWRKR`R�R�R$R6RmRj(R=R�tgroupRctp1tp2RJR$((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRaqs4	
%%((c	Cs�tj|dtjdddtjdd�}ddd	tjf}tj|d
dddd
|�}|jddddd�|jddddd�tj|j�}|j	dtj
dddddtj�t|�tj
|jdddd�}tj
|jdddd�}tj
|jdddd�}tj
|jdd dd!�}|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�tj|j�}|j	dtj
dddddtj�t|�tj
|jdddd�}tj
|jdddd�}tj
|jdddd�}tj
|jdd dd!�}tj
|jdddd#�}|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd"dd�|j	dtjdd$dd$dtj�|j	dtjdd%dd%dtjd&d'�dS((NR#R�i�R�R$sSThe NoteBook widget allows you to layout a complex interface into individual pages.s-entry.width %d label.width %d label.anchor %si
iRCiRDREt	hard_diskR,s	Hard DiskR&itnetworktNetworkR)RYiRZRbR�is
Access Time: i�sWrite Throughput: sRead Throughput: i�s
Capacity: isUsers: iiRci(R	R�R"R�R�RVRWR3RmR6R8tYtCreateCommonButtonsR�RjRnRm(	R=R�RER�tcommontatrtctu((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRb�sB	!(
(
(cCsxtj|dddd�}tj|dddd�}|jdtjddd	d�|jdtjddd	d�dS(
NR$tOKR�itCancelR)RYiRZ(R	RNR6Rj(tftoktcancel((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRq�sc	Cs�|j|�}d}tj|ddd|�}tj|ddd|�}t|j�t|j�|jddddd	d
dd�|jdddd
d	ddd�dS(
Nslabel.padX 4R,sTix.DirListREsTix.ExFileSelectBoxRiR[R\s%40R�i����(R�R	R�tMkDirListWidgetR�tMkExFileWidgetR`(R�RKR=RERtfsbox((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRS�s

"cCs�tj|dtjdddtjdd�}tj|dd�}|jd	tjd
ddtjd
ddd�|jd	tjd
ddd�dS(s�The TixDirList widget gives a graphical representation of the file
    system directory and makes it easy for the user to choose and access
    directories.
    R#R�i�R�R$s�The Tix DirList widget gives a graphical representation of the file system directory and makes it easy for the user to choose and access directories.REs+hlist.padY 1 hlist.width 25 hlist.height 16R)RciRbRYiRZN(R	R�R"R�tDirListR6RjRm(R=R�tdirlist((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR|�s	.cCs�tj|dtjdddtjdd�}tj|dddtj�}|jd	tjd
ddtjd
ddd�|jd	tjd
ddd�dS(s]The TixExFileSelectBox widget is more user friendly than the Motif
    style FileSelectBox.  R#R�i�R�R$sXThe Tix ExFileSelectBox widget is more user friendly than the Motif style FileSelectBox.R"iR)RciRbRYiRZN(	R	R�R"R�tExFileSelectBoxR4R6RjRm(R=R�R&((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR}�s	.sWidget DemostwidgetsImage DemosRWRitBtnBoxs
Button BoxR�s	Combo BoxtCmpImgsCompound ImageRsDirectory ListtDirTreesDirectory TreeR�RVtNotebooktOptMenusOption MenutPanedWinsPaned WindowtPopMenus
Popup MenutSHList1sScrolledHList (1)tSHList2sScrolledHList (2)tTreesTree (dynamic)cCsv|j|�}d}tj|dd�}|jdtjdddtj�|jddd	�}|jd
dd�}d|d
<d|d
<tj|dd�}|jdtjdddtjdddd�tj|dd�}|jdtjdddtjdddd�tj|j	dd�}	|	jdtjdddtjdd�tj
|j	dd�}
tjj
d�}|
jjd|�tj|j	dd�}tj|d
ddd�}
tj|d
ddd�}|
jdtjdddtj�|jdtjdddtj�|	jd |
jd <d!|
jd"<d#|
jd$<d%|
jd&<|jdtjdddtjdd'�|
jdtjdddtjdd'�d(|	jd)<d*|	jd&<d|	jd+<d,|	jd-<d|	jd.<d||	|
|
|d/�|	jd0<d||	|
|
|d1�|	jd2<d||	|
|
|d3�|
d0<d||	|
|
|d4�|d0<x�d5d6gD]�}|d5kr�tj|	jd7d8d9d8d&d:d
tjd |	jd �}|	jjd;tjd<|d"d!�n|	jjd;tjd"d!d
t|�}x7t|D]+}|	jj|d;tjd=|d
|�qWqzW|	jj�d!|
d"<d!|d"<dS(>Nslabel.padX 4Rt
horizontalR)RciRbRJR�R$t5tflatR#R,sSelect a sample program:RYiRZsSource:REshlist.width 20RKtstextstix option get fixed_fontR�R�sRun ...trunsView Source ...tviewiRFtdisabledR�R�R^iPR�it.t	separatorit
drawbranchi
tindentt
wideselectcSst|||||d�S(NR�(t
Sample_Action(targsR=tslbR�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RR.cSst|||||d�S(Ntbrowse(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�Rt	browsecmdcSst|||||d�S(NR�(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RcSst|||||d�S(NR�(R�(R�R=R�R�R�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR0�RR�RWR"iR�i�titemtypeR�tdata(R�R	RiR6RjRmRWR�R�R�R`RRwtevalR$tconfigR3RNR7tNONEthlistRlRkR^t	add_childtWINDOWtTEXTtcommentststypestselection_clear(R�RKR=RERctf1tf2tlabtlab1R�R�R�R�R�R�ttypeR6tkey((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyRUksd"

..(""


((




""!%


cBs@|j}|j�}|s2d|d<d|d<n|j|�sEdSd|d<d|d<|j|�}|}	e|}
|dkr�d|
dUej�}|j|	�e|
d�}||�nv|dkrej�}|jd|	�e	|t
jd	|
d
�n.|dkr<e|j
t
jd	|
d
�ndS(NR�R�tnormalR�simport s
.RunSampleR�s
Source view: s	/samples/s.pyR�(R�tinfo_anchortinfo_parentt	info_datatsamplesR	tToplevelR�R�tLoadFileR_RtReadFileR$(R=R�R�R�R�tactionR�R�R�R�tprogtrtn((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s0	






cCs�tj|ddd|j�}tj|�}|j�|j�tjjd�}|jj	d|�d|jd<d|jd	<t
|j|�dS(
NR$tCloseR.stix option get fixed_fontR�iR"R�R^(R	RNR�R`R6RRwR�R$R�R�(R=tfnametbR�R�((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s



cCs�|d}d|d<|jdtj�zJt|�}|j�}x!|D]}|jtj|�qIW|j�Wd||d<XdS(NR�R�s0.0(tdeleteR	R�topent	readlinesRtclose(R=R�t	old_stateRytlinests((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyR��s


t__main__iiiii ((8Rtos.pathRR	tTkconstantsRR|t
TCL_DONT_WAITtTCL_WINDOW_EVENTStTCL_FILE_EVENTStTCL_TIMER_EVENTStTCL_IDLE_EVENTSRyRR�RJR�R�R�R<RNR�R�R�R�R�R�R�R�R�R�R�RPR0RCR1RXR2R_RRRaRbRqRSR|R}R�R�R�RUR�R�R�R�tTkR(((s+/usr/lib64/python2.7/Demo/tix/tixwidgets.pyt<module>s�0
�	
		%				%	"	
	
									 		'		$		
	/	.				


^
	@			PKf,�Z�7�o		bitmaps/filebox.xpmnu�[���/* XPM */
static char * filebox_xpm[] = {
"50 40 6 1",
" 	s None	c None",
".	c white",
"X	c gray80",
"o	c black",
"O	c #FFFF80808080",
"+	c gray70",
"                                                  ",
"                                                  ",
"                                                  ",
"   ............................................   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXooXooXoXooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXooXooXoXooXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXooooooooooooooooooooooooooooooooooooo.XXo   ",
"   .XXoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XXo   ",
"   .XXoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XXo   ",
"   .XX......................................XXo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXoooooooooooooooo.XXXXoooooooooooooooo.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XXo+++++++++++++++.XXXXo+++++++++++++++.XXo   ",
"   .XX.................XXXX.................XXo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXooXooXoXooXoXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXooXooXoXooXoXooXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .XXoooooooooooooooooooooooooooooooooooooo.Xo   ",
"   .XXoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo   ",
"   .XXoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo   ",
"   .XX.......................................Xo   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXo   ",
"   .ooooooooooooooooooooooooooooooooooooooooooo   ",
"                                                  ",
"                                                  ",
"                                                  "};
PKf,�Z!��""bitmaps/italic.xbmnu�[���#define italic_width 16
#define italic_height 16
static unsigned char italic_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x80, 0x3f, 0x80, 0x3f, 0x00, 0x06, 0x00, 0x06,
   0x00, 0x03, 0x00, 0x03, 0x80, 0x01, 0x80, 0x01, 0xc0, 0x00, 0xc0, 0x00,
   0x60, 0x00, 0x60, 0x00, 0xfc, 0x01, 0xfc, 0x01};
PKf,�Z�j�		bitmaps/about.xpmnu�[���/* XPM */
static char * about_xpm[] = {
"50 40 7 1",
" 	s None	c None",
".	c black",
"X	c white",
"o	c gray70",
"O	c navy",
"+	c red",
"@	c yellow",
"                                                  ",
"                                                  ",
"                                                  ",
"        .................................         ",
"      ..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXoo.         ",
"      .XooooooooooooooooooooooooooooooXo.         ",
"     .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXooXo.         ",
"     ..oooooooooooooooooooooooooooooooXo.         ",
"     ...............................XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.++++     ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo+++       ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo+++++       ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo++++++      ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo+++   +     ",
"     .OOOOO@@@@@OOOOOOOOOOOOOOOOOOO.Xo++.         ",
"     .OOOOOOO@OOOOO@OOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOO@@OOO@OOO@OOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOOO@OOOO@O@OOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOOO@OOOOO@OOOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOOO@OOOOO@OOOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOOO@OOOO@O@OOOOOOOO.XoXo.         ",
"     .OOOOOOO@OOOO@@@OO@OOO@OOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.XoXo.         ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo..          ",
"     .OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Xo            ",
"      OOOOOOOOOOOOOOOOOOOOOOOOOOOOO.X.            ",
"        .............................             ",
"                                                  ",
"                                                  ",
"                                                  "};
PKf,�Z����4	4	bitmaps/select.xpmnu�[���/* XPM */
static char * select_xpm[] = {
"50 40 9 1",
" 	s None	c None",
".	c black",
"X	c gray95",
"o	c gray50",
"O	c gray70",
"+	c navy",
"@	c #000080800000",
"#	c #808000000000",
"$	c white",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"  ..............................................  ",
"  .XXXXXXXXXXooooooooooooXXXXXXXXXXXoXXXXXXXXXX.  ",
"  .X         ooOOOOOOOOOOXX         oX        o.  ",
"  .X         ooOOOOOOOOOOXX         oX        o.  ",
"  .X   ++++  ooOOOOOOOOOOXX  ...    oX  @     o.  ",
"  .X  +++++  ooOOOOOOOOOOXX .   .   oX  @@@   o.  ",
"  .X +++   + ooOOOOOOOOOOXX .    .  oX @  @   o.  ",
"  .X +     + ooOO#####OOOXX .    .  oX @  @   o.  ",
"  .X +     + ooOO#OOO##OOXX .       oX @   @  o.  ",
"  .X +     + ooO##OOOO##OXX .       oX @    @ o.  ",
"  .X ++   ++ ooO###OOO#OOXX .       oX @    @ o.  ",
"  .X +++++++ ooO#######OOXX .       oX @    @ o.  ",
"  .X +     + ooO##O#OO#OOXX .       oX @    @ o.  ",
"  .X +    ++ ooO##OOOOO#OXX .    .  oX @    @ o.  ",
"  .X +     + ooOO#OOOOO#OXX .    .  oX @   @@ o.  ",
"  .X +    ++ ooOO#OOOOO#OXX  ....   oX @@@@@  o.  ",
"  .X         ooOO######OOXX         oX        o.  ",
"  .X         ooOOOOOOOOOOXX        $oX        o.  ",
"  .XoooooooooooXXXXXXXXXXXoooooooooooXooooooooo.  ",
"  ..............................................  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  "};
PKf,�Z�W=""bitmaps/rightj.xbmnu�[���#define rightj_width 16
#define rightj_height 16
static unsigned char rightj_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xdb, 0x00, 0x00, 0x70, 0xdb,
   0x00, 0x00, 0x00, 0xef, 0x00, 0x00, 0xd8, 0xde, 0x00, 0x00, 0xc0, 0xdd,
   0x00, 0x00, 0xa0, 0xef, 0x00, 0x00, 0xd8, 0xde};
PKf,�Z���ttbitmaps/netw.xbmnu�[���#define netw_width 32
#define netw_height 32
static unsigned char netw_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x02, 0x40,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x52,
   0x00, 0x00, 0x0a, 0x52, 0x00, 0x00, 0x8a, 0x51, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0x4a, 0x50, 0x00, 0x00, 0x0a, 0x50, 0x00, 0x00, 0x0a, 0x50,
   0x00, 0x00, 0xfa, 0x5f, 0x00, 0x00, 0x02, 0x40, 0xfe, 0x7f, 0x52, 0x55,
   0x02, 0x40, 0xaa, 0x6a, 0xfa, 0x5f, 0xfe, 0x7f, 0x0a, 0x50, 0xfe, 0x7f,
   0x0a, 0x52, 0x80, 0x00, 0x0a, 0x52, 0x80, 0x00, 0x8a, 0x51, 0x80, 0x00,
   0x0a, 0x50, 0x80, 0x00, 0x4a, 0x50, 0x80, 0x00, 0x0a, 0x50, 0xe0, 0x03,
   0x0a, 0x50, 0x20, 0x02, 0xfa, 0xdf, 0x3f, 0x03, 0x02, 0x40, 0xa0, 0x02,
   0x52, 0x55, 0xe0, 0x03, 0xaa, 0x6a, 0x00, 0x00, 0xfe, 0x7f, 0x00, 0x00,
   0xfe, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
PKf,�ZF_ajjbitmaps/netw.xpmnu�[���/* XPM */
static char * netw_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 7 1",
/* colors */
" 	s None	c None",
".	c #000000000000",
"X	c white",
"o	c #c000c000c000",
"O	c #404040",
"+	c blue",
"@	c red",
/* pixels */
"                                ",
"                 .............. ",
"                 .XXXXXXXXXXXX. ",
"                 .XooooooooooO. ",
"                 .Xo.......XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++++o+XoO. ",
"                 .Xo.++oo++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.+o++++XoO. ",
"                 .Xo.++++++XoO. ",
"                 .Xo.XXXXXXXoO. ",
"                 .XooooooooooO. ",
"                 .Xo@ooo....oO. ",
" ..............  .XooooooooooO. ",
" .XXXXXXXXXXXX.  .XooooooooooO. ",
" .XooooooooooO.  .OOOOOOOOOOOO. ",
" .Xo.......XoO.  .............. ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++++o+XoO.        @        ",
" .Xo.++oo++XoO.        @        ",
" .Xo.++++++XoO.        @        ",
" .Xo.+o++++XoO.        @        ",
" .Xo.++++++XoO.      .....      ",
" .Xo.XXXXXXXoO.      .XXX.      ",
" .XooooooooooO.@@@@@@.X O.      ",
" .Xo@ooo....oO.      .OOO.      ",
" .XooooooooooO.      .....      ",
" .XooooooooooO.                 ",
" .OOOOOOOOOOOO.                 ",
" ..............                 ",
"                                "};
PKf,�Z{J_��bitmaps/optmenu.xpmnu�[���/* XPM */
static char * optmenu_xpm[] = {
"50 40 5 1",
" 	s None	c None",
".	c white",
"X	c gray80",
"o	c gray50",
"O	c black",
"                                                  ",
"                                                  ",
"   ..............................                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXOXOXXOXXOXXXXOOXXXXXXXXXXo                 ",
"   .XXXOXOXXOXOXXXOXXOXXXXXXXXXXo                 ",
"   .XXXXOXXOXXOXXXOXXXOXXXXXXXXXo                 ",
"   .XXXXOXXXOXXOOXXOXOXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo.............o   ",
"   .............................o             o   ",
"   ..XXXOXXXXXOXXXXXXXXOXXXXXXXOo             o   ",
"   ..XXOXOXOXXOXOXXXOXXOXXXXXXXOo     ......  o   ",
"   ..XXXOXXXOXXOXXXOXXXOXXXXXXXOo     .    o  o   ",
"   ..XXOXXXOXXXOXOXXOXXOXXXXXXXOo     .    o  o   ",
"   ..XXXXXXXXXXXXXXXXXXXXXXXXXXOo     .ooooo  o   ",
"   .OOOOOOOOOOOOOOOOOOOOOOOOOOOOo             o   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo             o   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXooooooooooooooo   ",
"   .XXXXOXXXXXOXXXXXXXXXXXXXXXXXo                 ",
"   .XXXOXXXXXXXXXOXXXXXXXXXXXXXXo                 ",
"   .XXXXOXXOXXOXOXOXXXXXXXXXXXXXo                 ",
"   .XXXXXOXXOXOXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXOXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXOXOXXXXXXXOXOXXXXXOXXXXXXo                 ",
"   .XXXXXOXOXOXXOXXXXXOXXOXXXXXXo                 ",
"   .XXXXOXXOXOXOXXXOXOXOXXOXXXXXo                 ",
"   .XXXOXXXXOXXOXXXOXXOXXXXOXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXo                 ",
"   oooooooooooooooooooooooooooooo                 ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  "};
PKf,�Z�����bitmaps/combobox.xbmnu�[���#define combobox_width 32
#define combobox_height 32
static unsigned char combobox_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0xfc, 0xff, 0xff, 0x3e, 0x04, 0x00, 0x80, 0x2a, 0x04, 0x00, 0x80, 0x2a,
   0x04, 0x00, 0x80, 0x2a, 0x04, 0x00, 0x80, 0x2b, 0xfc, 0xff, 0xff, 0x3e,
   0x08, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x3e, 0x08, 0x00, 0x00, 0x2a,
   0x28, 0x49, 0x00, 0x2a, 0x08, 0x00, 0x00, 0x3e, 0x08, 0x00, 0x00, 0x22,
   0x08, 0x00, 0x00, 0x22, 0x28, 0x49, 0x12, 0x22, 0x08, 0x00, 0x00, 0x22,
   0x08, 0x00, 0x00, 0x22, 0x08, 0x00, 0x00, 0x22, 0x28, 0x49, 0x02, 0x22,
   0x08, 0x00, 0x00, 0x3e, 0x08, 0x00, 0x00, 0x2a, 0x08, 0x00, 0x00, 0x2a,
   0xf8, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
PKf,�Z��0�bitmaps/bold.xbmnu�[���#define bold_width 16
#define bold_height 16
static unsigned char bold_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0xfc, 0x07, 0xfc, 0x0f, 0x18, 0x1c, 0x18, 0x18,
   0x18, 0x18, 0x18, 0x1c, 0xf8, 0x0f, 0xf8, 0x0f, 0x18, 0x18, 0x18, 0x30,
   0x18, 0x30, 0x18, 0x38, 0xfc, 0x3f, 0xfc, 0x1f};
PKg,�Z٦pt"+"+bitmaps/tix.gifnuȯ��GIF87a������������������������,��@��I��8�ͻ�`(�dih�� ���q��lϸ�Ӄ�pHt	}��͘<�L\q�\R�����5v��I��μg,S��*���I��r���F�Rh|fN��cG@h?K�_v�g^�TuW�Ska�mpor*,�|iV�j�iQu����yl�~��O~^��D���L����O)/(��Z6�Ư���`ҁ���U֕[�z�J۝�_���w�[l�M�σ�U���Z���djce3H�L`ᆀ!��h�"� +8��pㄎ�@
�H����A���Q��8�8���+c��Y*���
10r��pBh��SB���R�d
Pp�T�`�����Ӳf�H��iզ\:�`Y�k��˖��d^-�3�$6��eT0����=P�k��z���6�W��][�t�m��u�tuچ@��L�v�fWx��Aߍr��F�n��c�<@�e˵��}m��j���b-�P����Q�����_���ש��
��;������k=jf�Pa��XV����fZk)��_W�(�v�U5J4��^aN��L
�e�0���Irɔ@G+��W�yu`W1.#cAk�� A�|���~3��bA*%�T�<�Op��R-��{�$�
+D\dߗ`�)�b*`��
��f��Y�����`t^	�S����{��T�������fh:�LIb9�(veɇ��x!����瞁�y��f�E�	i�L_��Vvp��V
��妚��槣暦�pX�����D���˔��zW��)P&��r��@Ur5w_\�Ι�j�5��d�aڪ��:5���6˫#�eF��1�&�h��ݗ,�z]�'nf���sBFem���T�lM�U��2{gS��e��+�pܛM�c�4l�D,p��Re��_�#��wY����D�G[foM��[�v�R�5ws�̂�g�|��p�T#� ��������@qQ} �i�cj�)�Gv5d�l�mWT0��,��A�l��@�`DEBȈ�X5VpY�{l��dQ�ٲY}�i�\]J�چװ�+*��k���YK�vX);,��c4%�!$��2[lq�`:+�ib��y皙��[C?��ﲚY�f�^~�6�r=�!��!(?���7����jn��@���$�ɿ����N>p����:Q>5@
9�8V�0䘫1�v�c���
}�cʷ�n0g߂KgV%�������� �1�c��O*���'Uc"8lFq���C�k��v���4�<����7��ufFk[ۏT2����h�۵��"�owN�x��1F���$e�)D%�x�$���q!H@D|x8�"
���8@䏅tc��a��
U��#��E�.9��Db���D0��(s%t�Bk�l(�U�h��<~��O,#'?���AF]�c_dX'�U��@@ 5��,����<92_�˕��
m������4f��pR�Hcc��gRs�C�9F�ͳ�:�g=͹��@�L�q�IP����=��{r�u�VG�M:j�v�L`��Y���@=hfQOa=ԝo�g|b,1��j,'d��f��%ɶ׈�h�GML�f���9�0FDZ�b�ji�М��7���Ȟ��5��v��f/�ZƟ^���'(��v�@�2E�)ƘJ���m=�9�ZS�F�i�Ȫ�d2�j�]�L+.ՇU8�=V��a���)'��Rcڽs�E�l��D���]�a���w���E�	6�ꡫUq� �5��y&,"�@�r��}\A�c��*��lfo�"���K�,œ�͌s���P��Յ�L�:����E��W"6�>�܍�R��(�=[\���;�_�֖��d+��q�;�F�1�1���h�$��@!E3�큵��ؾ��N���lEF��K���-��f��'1�Ì�D|N-f\��qw�	Sh�{� �5��1͎��
U�}Sc]9�/���Ԍ��5\�[[|Ќzܶ��-F���|D��-�d>��}��m2��Xϻ.٘g~t��P,FP$6L�N	�#�n\㙴�Y*M�Z��>�<e;k�2'�����3��D���x������v�[~����Le�ƾZۺS�U�ش9)���+΍T�������~�u�F�1o��0�̓E=
gﲱ�P�^��}jTӃ!�L�enϏNr�T�/�Y��̭e�\iʭ�u&��0��=�4k�Qeh2��b�B�7���a+��)�vT4��0�p��J'<�u�c�U�����m�{q�'nc+t���'#�HN}�I7WL��&?l�"�)��%/��>�&��՝��)�DP-�e�b�e���}���4�23�8�"��쨡ʰ�6#��_��]���#İ�$ܯօ�g�dq=���;���e��F���edH�!�����9e�ոt��OYm���<Ϫ����!�U�t�pS�+��D���r�9�lns���_ꆏ7R���m)��M�2�ܱ���%�q�Ծe�a����O��S�jէ�PPQ�jlu*
)�^��q>�8�ġ�X�؀v-��3�+\C>s�4��d
�3$�r�?{G*��z�6oG.�6z�.րCXp�V�3DI3&7�4�bb*.�E�)����G��bq�'t�+B�8TrO�Q�V��hD�hS@�"�6�7�Da�G	@zu�t#��F�D��F��H(�7�G�Y
Yp�x�T[�Z�^�M$k�gM�5�NVF�(=�:1���0U: ;�"My�	�d��&%��Tc5CްV�I�P/��~Q�J��u������V���8�zK�~����}J�Mlm�)�����%Y;�!.�ʁ2�t�P��I�a�8��X��x�ؘ�"S�ȍ׍p��dP84a�A�%R5��	☋VŽ~�P#�S�eQt U�Z]UxP�Ys��@ER�^�j��
�xZ~C����ȎuRE[��WT"u`�J�S��(��V	��Lx-�z���EP�wk�OQ�o����~���%�V�x��0K
	2�e3�w�4%,�Z.W�xU��+}H�F�H��$p5�
�hIv��(hy��M�O�x2&�JzX�HYYe�"�#78Tבw��I�d"+I��U�'CI�WDIL�AT���U;�wn����e�Uw�z�(%r��[�����a�x�Z���M'X�G�t%Kt9�5ɋzWQPMj�=�R�"�&aV���V��j��w{U^�hY
�%�I�䚕�rm�g:�dx��T*1�;��|\D@�#�TE�LY0�1�9��$�~tH�2�`F�VW��g�x;�HH�؝-p�Z��5�u�\
q\�;�H�w�%]���� E^ʠ`!���#wG;��I}�o��������fg0�
\j�s�1hi� y!yK1i2�\)��ϥ�E��v/ ^$Q^��W�0��i� X� mV_&!�4&�a�1�֣��'�-�U`HJ?S�AS�c�����M��o�5�i�� vq\�E�r���il
!�{r�`�rY��i��t�Q�ɧT� �ޥ02�������p��{��-��<���Jy<���tw(N4F��j�w�F�A��i*r��-��_?W���b6�)㉁EZ�t�J�^�m҂�l�*p�F� �#A�ahJyc!�QT���l���q8�i^>@��!B��c;�BFfD�{��	'&��*���_��dW���!�x��yz�d^��<�fO�9���n�ɚ�="_� �3Rg��2>A��@A���=M�8���{�-;f'�[��[7�#m�'ݷ�]�xgFPW�]<2<K2�Y����(:a�VR�N�
O�U�8+"^cO�����%tR���3Y1�o�g�t!qo&�,�ns&gh���fa��KR��Ɉh陝�yGG&c&s+�%_�����fiªga�v�iƆ'#j�B:1$���UH55����%��5k�{7��&$�k��0�q5G��Q9����r9&�8�=z�	U�y6Y��b5~Ag~d.��0qQ�8C���FGl�wp��?�����v~�6���g���&/�zmB%\���'+g�q�;*P1n��um"�ꆬ&�"�i\�s�!�Ue+e���ӳ養ٶ/�fn�q��Rk��mI4-��v�r��fn���m{�b�|�1s�����w«�v�/Ises1��;��*�yӁ�R>�e,�>�q��:�<!L�	������J�K���$�ԫ;��G�:�f!6q=��{�B�yKs.S<�I'������Z����Ta�h�u�o��'mBs�w|�k�;��Cbrws�ҸH��Pɓ׀I�P��G�@20#}@�s�z'<t�>|���4�(0�1�SŅܿ9i�����Ư	A��o.��?b�g�*�E���<�	��~Za�u���4w͕� ��W���;�qw���[aC6���?| 6j]�ada���8-�z�F�)a��3-臹��!���`͡�OXI�攅'0�������R mǦ�1�Һ����i�*�k!(A]| L.,�%���&}u�8)<��t	�Fvlkl��vN����)�}�Ϣ2�ֻl�4����%s�M)��)��;7���c���9Dzo�����r�L1緿C\|�Q��Z'�M��#ܩ8��{9��T<<�r}�;��j̻ǂ�øD|�S=�K@�\��Ƚ�6�d釆��"Hv����>kAD�<ʒW0�_]���;o���K��t�$&�����h���.�!D��&g}8�6Ӽ�jib�B3wh�B~T.��&t�T�L�8z:Y���5�H
CK>������/�#_�n�Qg]���7�&�V����:4D�:��@���^�j�gsL�u.$��'��}J�<k�N�	K��ݚb:�{�#ǚ\����X�߶w��͔�D�3&3��޼]�s��d�!4{,4}]�)�ە��5���%W�M�
��fc=�'����	9��Ba�z���5��
_.
�|D(Ee�}td
�%v�%Q�>`��U]Q�����!qG�0`����̂�f�~T����N��YP�ޜMЅC�GpD��v�wdGa(���d0Ip�G��Ȥ�I0I�	��$c�;�X}�)�[`(J�^֎Mf��x���[���[�N2���(��uu�̭�ɓ��܀�*w�Ogc����餕�����؏�c�T�|x��|������ִ��P�X��q���C����Y�!�Y�O��GɱP�S����~e˜N|�N*��JӾ���J�,�`��o���I���D/���@���ZU�vy�'��q�9�X~�����M���)�Ԑ�t!��O�O�@k��s2:���=~�H�ˍ�O/uPA�xZ��/�b��s�W�?��_�e������OS�X��N���h���dz%a&QR��	&�����|�������;4�OR�S�y��5���Qi�Բ�R%#���S�(,��&Uc�c}��:�ߍ#�Y�~^��4��b+��h.��o�i�W�ə����?�=@���u�ky��i�0����z�}[M�:�,G�A�^�5���
fN��]@8$��10X�~O��)͝@W�kU��>4������:ƃ��X�ˍ+��ѧi�TI#&����.��/���:E�
��3�/��˶��H�2�8�*ß>��")BԵ��Ы9O�,���Z�����bϵ]��`+Y�TU"V"WIN��a���g�ĭ^ڔ�F37���u��xy�����i�!k��I��̣��ۺp�Ʃ��,�3tr��(�4�b<\�����%�
{4I�E.�N���")g1L�J��a���}B����+`K]��%���١��`ƑI㘕8�j��NG~��Y�˜��c� �Ŝ���k�0�ċf�j���`��A��z�Uz-�1,�p.�R�X.Xw�Ty���[
pq1�u��&����6�f��w]���M2xsb��K&h��H�$%���Զ��N��C�P�D.el�QĿ��m
=��G�
/ȑo�8�.���h�$�ɶ:-q��ګ��͔��"�>"���B)��<'�Ɇ2O��,�Ѓ'�0���0m��q�W�bJ�&~*p�A(��8�f��Y�Qh$�G	z챼�4� �4hbF�zb�,�è��C9K�K���N(ɨ
�Ӱda�x�q�
��M({$l#�;1d��
6$k	#�,�
���M��
����!M�	
��M?�[�;���bI��m+�����`��\�U�J"V
���F���%��`k����
QB�m3Y%�aQG{�`
 ���-�PB� ��43K��V0�CW*u��9��t�_����D�eVH�=�UI%�7XE	-��d�G����х�W҆N��D�L�NPr� W�	]NHu!�n �wh�ځ���c�)b�b�y�B
��Z��%���f�`cuU�`{af�g��vh`����p�K
Zb�}ȼ
�x�^��-�e�vZ괿%"m#�Xh�m��j��j��<��.4�_}�^���Z�|���s��h"��� �H[�����e�UI=`�%��Z�g��]�vӋ-_���t�af���}r��)
]�t��F�|s	���!}�Z����Z��=Ҩ����ؿ���W?�i�N_���7^r�UR�*�����4�3\ � F0�y�~�#B��57�Ov@����>��+{2[�@�
�e�k����>��y��ǮB�hE�w�`�xG�b��[~��0X;�on��IWC���~ȃB]ҀB�&T4�R���qa
T ᇳ�%Q.##�h;4�}>ĝ5��"z�}T��u��!)�vL��P�j�[��h4��Kbm(��Y��\c���������8�}l��@�Že�ZT���Ir�W�3c��(�4��s�!;	�5.r�؈V��S�p4���|T�� mP�����׻�q���I��Ѱ�@���C���4��2���ݠ��t�8;h:l~�h�"7wI�v����][r����,��
U�8*e`�w��#5�(<ᅱw�c$.�h���~Uc- ���fS/d����<c>hY,E��>:P��� ��S�RR	�ˤE=�O]ZX2���6����<�:a7�B�,�m�Q'�M�n�iz�).	:�q���W�F-���>Td�$H�<Ro%0�(��ADF,�c}]���͟�k��d ���7��Z��&���E�� ��v��zi�h��Q�񎰼��FW+0�V��{-kG����t��k$�J�8����Z:	��-�i���iFW���+���9��*��cSKV�N��\��p�ι$�0�>�Jur�-V�u�#x��G	�nt5�UYw^����6[��?�/E�ȣD!��c�BE�똏��z�'��K;�KL8"`Kfqe���i���1Vd���`id���yˊO����A��,m��:�\1[2IQY��<�F���et� 0�Je�'���-F.ˌ0��͸K�U���Y̲_�Ϟ.�w��L��'d��3!W3�����Y��[t��`�~
���_'�2�E�3s��ۊ�T�V�q*8�@���W�j����H|���2�/�E���h`{
�"�]]i��w6�$?C��E�ίvF��a}l����PV�a6�=������h-ltϙ��~�\�=F��g��$��0�y�<�����W���T���]�:]w(�җv)ݦF���jxKW��^��gR�[}�>5��}�<�r�7p�Ḑ�axL��s��ѿv5��}�g\�?�!Ƿ��ߥ�7Ɂem��<�'2�7<�8IT�{������6�w��G��w_�,O$N��R����h�b��kO��z�/`��2���R$�|Ew�w�jb}pAo��v�"��ܥ���sO[�}�8�QNp�S��6B��c�t\&{�-H9�^�6��������F_�����Y�{���Q���5?���Ƀ�� e��6Z��-zU��O+�ũ��sޖ�w��}	�v��^��68����!�T��ejd�Q���E[7�S��#H��K�{��`B&h?����c���i;���P(�#|�?�r*T�ùy";`3�b{A�[�����*��@��@*#-۫2f��k�9�û��OB�-酗#�	�+^��k�AE�Aj�"T�a+-K������ʮ�4K����)�I�y�?�wI��Д34�h�i5I�\�*�@;�k@�J��¼��'�ž:��ǛA�+��38��o���s����0�#ƈ�=�C�9���#5ai���'Z�.!Ү$��c�̣�U�BE���J��{�6�+]3A^��C\�*�AZ�ܫ��<�B?zˡ�	�XL>�S\��S9@��R�{�Md��)�3-�[ĺ=��TL���<`�-�QDmL5,�t��*!���Dl�LA��.��+C=�ŴD��=� ���4����<�T�t;ż{AS;7�;�����S��5�0��\A��$�_˛�œ,��i#^�,#�$>�H�3D[����<�:ϩ�TQp��B���pGE��~����I�|��J�Y�E#J��y�GeTʻ{���=�8(�@�9tI&�C�
{��ʭ��ҁ�9sǙ�,�Y��)��$Bɪ��d|;�|.�l����s�˖\�룵��XaKa����K��L"b�貗3�Y�AK*���,-���P�Lg!B���������K�&��2 Mt��D=�i�l��c��	+|z1�	����#;Aj~��t[���d��X�_��p�᭯�=�
9`ψi��1�b5l:E�0ЕٮKРdдQ��[O��P#x�!PO!X�⡺=���;��)�L�[�#��N)�vDJ[���?������
�{R6D��猣Ǔ��B�;�ж>���@� �����D�@���ʑ��b�c�<�B�D��i�3+B���C�+� ���y�ϰ
n�3����#�0,�ҒܽI,Ii����R��QV��/"ۛ�1U���=�����DN41��
s|Ӡ��� �l����ųS�̃?w�!F�.�R�;�Œ�xC�e�Eғ���H(q=�q�*���Կ�E�=Fc�1,U��QD��ڄL-=־6ɋQ�c>W;)�l23���+�4�м�6�AZ|KI�8h|.�$:k�Q��Nݼ�im:J{����Ucs��Y��x%U0�SGND�iA����bU:vK��/��z��i�|�����c�>�6��(<�̩��}�KU%��B=�C"����4Vm�e�ɸ�.�	ˡ���öS�U��sj��<�%W��I� �t�Ha#6�U5�|�C�7�(��
������<�ۻ�KS�p�*�Z�T���M�k���t�,��Ƴڪ�dmKz,�1>guŁ��;u5�����]5@K����j��]S]Q��2�	�Vs�Il$ˤ��Zj�<�������;�Ʋ��W
8��\�峾Y��%[�@��p���S~�}�C���ڤ�G�B]���\��kݚ�@��]TT��Z].bPB�"
�I�?1X���H=I�2���dA}��>U�`���kG����D �(e���_O%Bb+C�;,��w�=r-R��>*Q��[\U�y<׾��Q�¥�A�uW��\�KLŲ��͝0��4�n<w�]��6�
����0���9ح!���L�>���R�Y�tWeD��[?G�'42J��ٜ�R���:n�;�*�a޺ԙ�ܢ4�Ք̱bM|2ݛ�_��_f�_R��2֐|F���@"c��Q0�ᵈ��Zsu؉�E������&j˝��b���L�z�´!"V����Ÿe(��\cX)N��U,;O��*�k��M�EU]��,�����E��]w�R6�^�8cN�dc�Tȫ3��:kG�Z�i��Z�$�	�1�[x�M�E�99<�N쌅B��c�H�5�*I:�5�\�U=:a$:18Y�.����ڊi"�]1�]!-����Ie�_�:�4���%
ٿ_�'u�'�yzR�B4#1��M��2	iDp�G��!Qi@�F
/f'%ӐD��:|�������$�b�S!�������'�xR�̀8�6 ���<��K�;Qi���;�g����6k�k���g(�4()V��N��kIu��0���oM�t4������g���N��i�i���F�h;���>kQB�~x��;�8\b�9Sf�ēB6�^m��g�^���F��yx�=Ͱ�6�S m�mL�rHk�v���2�mL���<���߆[B�`�&�L��q�#�a*rLG��`�h�;����n��Ff�d[�^o?m�8<�L8�/ؿ�mo��I�m�q�p��e;<�oKo�6�84��Z���څ��V��p/1�2Q
[���C��#H�cpd����ZKn4��^6uB�r���
P�6m�vJ͜�N�?Q������+�:�c��:I��-��\P6��pv���TG(��8�p4go��K/$���les1s,Os������*Y��s��q�Z��s.�;��sEO	�a�����Dc9���7��J�ޒ^�����A�t"$N'�2_Yu17�J_p5�L
]��G���X���
&�����]�b�bf2]#�Ak�I'%�1�-f��ϔ�LIJ���|�ΤO)w� `�\�mG�RjP�-��b�u��AF����~W��9�w��
li�w�g��sp~�x��x�x��x��x��x����;PKg,�Z��{�++bitmaps/underline.xbmnu�[���#define underline_width 16
#define underline_height 16
static unsigned char underline_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x1c, 0x38, 0x1c,
   0x30, 0x0c, 0x30, 0x0c, 0x30, 0x0c, 0x30, 0x0c, 0x30, 0x0c, 0x70, 0x0e,
   0xf0, 0x0f, 0xe0, 0x07, 0x00, 0x00, 0xf8, 0x1f};
PKg,�Z�L����bitmaps/combobox.xpm.1nu�[���/* XPM */
static char * combobox_xpm[] = {
"50 40 4 1",
" 	s None	c None",
".	c black",
"X	c #FFFF80808080",
"o	c gray70",
"                                                  ",
"                                                  ",
"                                                  ",
"   ....................................  .......  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .  .  .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .  .  .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .  .  .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .  .  .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  . ... .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .  .  .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.  .     .  ",
"   ....................................  .......  ",
"                                                  ",
"   .............................................  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .o...................................o.ooooo.  ",
"   .o...................................o.ooooo.  ",
"   .o...................................o.ooooo.  ",
"   .o...................................o.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .ooooooooooooooooooooooooooooooooooooo.ooooo.  ",
"   .............................................  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  "};
PKg,�ZH�j"		bitmaps/combobox.xpmnu�[���/* XPM */
static char * combobox_xpm[] = {
"50 40 6 1",
" 	s None	c None",
".	c black",
"X	c white",
"o	c #FFFF80808080",
"O	c gray70",
"+	c #808000008080",
"                                                  ",
"                                                  ",
"                                                  ",
"   ....................................  XXXXXXX  ",
"   .ooooooooooooooooooooooooooooooooooX  X  .  .  ",
"   .ooooooooooooooooooooooooooooooooooX  X  .  .  ",
"   .oooo.oooooooooooooooooooooooooooooX  X  .  .  ",
"   .oo.o..oo.o.oo.o.ooooooooooooooooooX  X  .  .  ",
"   .o..o.o.o.oo.oo.oo.ooooooooooooooooX  X ... .  ",
"   .oo.oo.oo.o.oo.ooo.ooooooooooooooooX  X  .  .  ",
"   .ooooooooooooooooooooooooooooooooooX  X     .  ",
"   .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  X......  ",
"                                                  ",
"                                                  ",
"                                                  ",
"   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  ",
"   X............................................  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.OOOOX.  ",
"   X.O+OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.OX OX.  ",
"   X.O++OOO+OO+++OOOOOOOOOOOOOOOOOOOOOOOX.X ..X.  ",
"   X.O+O+O+OOO+O+OOOOOOOOOOOOOOOOOOOOOOOX.OOOOX.  ",
"   X.O++OOO+OO+++OOOOOOOOOOOOOOOOOOOOOOOX.OOOOX.  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.XXXXX.  ",
"   X.O.....X..........................OOX.X  .X.  ",
"   X.OX...XXX.X.XX.XX.................OOX.X  .X.  ",
"   X.OX.X..X..X.XX..XX.X..............OOX.X  .X.  ",
"   X.O.X...X..X.X...X..X..............OOX.X  .X.  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOO+OOOOOOOOOOX.X  .X.  ",
"   X.OOOOOOOOO+OOO+OOOOO+OOOO+OOOOOOOOOOX.X  .X.  ",
"   X.O+++OO+OO+O+OO++O++OO+OO+OOOOOOOOOOX.X...X.  ",
"   X.OO+OO++OO+O+OO+OOO+OO+O++OOOOOOOOOOX.OOOOX.  ",
"   X.OOOOOOOO+OOOOO++OO+OOOOOOOOOOOOOOOOX.OOOOX.  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.X  .X.  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.O .OX.  ",
"   X.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOX.OOOOX.  ",
"   X.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXX.  ",
"   X............................................  ",
"                                                  ",
"                                                  ",
"                                                  "};
PKg,�Z�Ǐbitmaps/leftj.xbmnu�[���#define leftj_width 16
#define leftj_height 16
static unsigned char leftj_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0x6d, 0x00, 0x00, 0xdc, 0x01,
   0x00, 0x00, 0xec, 0x0e, 0x00, 0x00, 0xfc, 0x7e, 0x00, 0x00, 0xdc, 0x03,
   0x00, 0x00, 0x6c, 0x3b, 0x00, 0x00, 0x6c, 0x1f};
PKg,�Z*�GS%%bitmaps/capital.xbmnu�[���#define capital_width 16
#define capital_height 16
static unsigned char capital_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x08, 0x30, 0x0c, 0x30, 0x06,
   0x30, 0x03, 0xb0, 0x01, 0xf0, 0x00, 0xf0, 0x00, 0xf0, 0x01, 0xb0, 0x03,
   0x30, 0x07, 0x30, 0x0e, 0x30, 0x1c, 0x00, 0x00};
PKg,�Z5(�=[[bitmaps/drivea.xpmnu�[���/* XPM */
static char * drivea_xpm[] = {
/* width height ncolors chars_per_pixel */
"32 32 5 1",
/* colors */
" 	s None	c None",
".	c #000000000000",
"X	c white",
"o	c #c000c000c000",
"O	c #800080008000",
/* pixels */
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"   ..........................   ",
"   .XXXXXXXXXXXXXXXXXXXXXXXo.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .Xooooooooooooooooo..oooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .Xoo...................oO.   ",
"   .Xoooooooo.......oooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .XooooooooooooooooooooooO.   ",
"   .oOOOOOOOOOOOOOOOOOOOOOOO.   ",
"   ..........................   ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                ",
"                                "};
PKg,�Z#��1}}bitmaps/filebox.xbmnu�[���#define filebox_width 32
#define filebox_height 32
static unsigned char filebox_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x3f, 0x04, 0x00, 0x00, 0x20,
   0xe4, 0xff, 0xff, 0x27, 0x24, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x24,
   0xe4, 0xff, 0xff, 0x27, 0x04, 0x00, 0x00, 0x20, 0xe4, 0x7f, 0xfe, 0x27,
   0x24, 0x50, 0x02, 0x25, 0x24, 0x40, 0x02, 0x24, 0x24, 0x50, 0x02, 0x25,
   0x24, 0x40, 0x02, 0x24, 0x24, 0x50, 0x02, 0x25, 0x24, 0x40, 0x02, 0x24,
   0x24, 0x50, 0x02, 0x25, 0xe4, 0x7f, 0xfe, 0x27, 0x04, 0x00, 0x00, 0x20,
   0xe4, 0xff, 0xff, 0x27, 0x24, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x24,
   0xe4, 0xff, 0xff, 0x27, 0x04, 0x00, 0x00, 0x20, 0xfc, 0xff, 0xff, 0x3f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
PKg,�ZTZye%%bitmaps/centerj.xbmnu�[���#define centerj_width 16
#define centerj_height 16
static unsigned char centerj_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3e, 0x00, 0x00, 0xc0, 0x0d,
   0x00, 0x00, 0x58, 0x77, 0x00, 0x00, 0xb0, 0x3b, 0x00, 0x00, 0xdc, 0xf7,
   0x00, 0x00, 0xf0, 0x3e, 0x00, 0x00, 0xd8, 0x7e};
PKg,�Z>(��%%bitmaps/justify.xbmnu�[���#define justify_width 16
#define justify_height 16
static unsigned char justify_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xec, 0xdb, 0x00, 0x00, 0x7c, 0xdb,
   0x00, 0x00, 0xbc, 0xf7, 0x00, 0x00, 0xdc, 0xde, 0x00, 0x00, 0x6c, 0xdf,
   0x00, 0x00, 0x6c, 0xef, 0x00, 0x00, 0xdc, 0xdf};
PKg,�Z�rn(��bitmaps/exit.xpmnu�[���/* XPM */
static char * exit_xpm[] = {
"50 40 5 1",
" 	s None	c None",
".	c black",
"X	c white",
"o	c #000080800000",
"O	c yellow",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"     .......................................      ",
"     .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.      ",
"     .XoooooooooooooooooooooooooooooooooooX.      ",
"     .XoooooooooooooooooooooooooooooooooooX.      ",
"     .XoooooooooooooooooooooooOoooooooooooX.      ",
"     .XoooooooooooooooooooooooOOooooooooooX.      ",
"     .XoooooooooooooooooooooooOOOoooooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOooooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOOoooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOOOooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOOOOoooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOOOooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOOoooooooX.      ",
"     .XoooooOOOOOOOOOOOOOOOOOOOOOOooooooooX.      ",
"     .XoooooooooooooooooooooooOOOoooooooooX.      ",
"     .XoooooooooooooooooooooooOOooooooooooX.      ",
"     .XoooooooooooooooooooooooOoooooooooooX.      ",
"     .XoooooooooooooooooooooooooooooooooooX.      ",
"     .XoooooooooooooooooooooooooooooooooooX.      ",
"     .XoooooooooooooooooooooooooooooooooooX.      ",
"     .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.      ",
"     .......................................      ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  ",
"                                                  "};
PKg,�Zr,�5zzbitmaps/drivea.xbmnu�[���#define drivea_width 32
#define drivea_height 32
static unsigned char drivea_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0xf8, 0xff, 0xff, 0x1f, 0x08, 0x00, 0x00, 0x18, 0xa8, 0xaa, 0xaa, 0x1a,
   0x48, 0x55, 0xd5, 0x1d, 0xa8, 0xaa, 0xaa, 0x1b, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xfa, 0xaf, 0x1a, 0xc8, 0xff, 0xff, 0x1d, 0xa8, 0xfa, 0xaf, 0x1a,
   0x48, 0x55, 0x55, 0x1d, 0xa8, 0xaa, 0xaa, 0x1a, 0x48, 0x55, 0x55, 0x1d,
   0xa8, 0xaa, 0xaa, 0x1a, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
PKe,�Zg�ˆgrid.pycnu�[���PKe,�Z�䠵&&8grid.pynu�[���PKe,�ZS����
�tixwidgets.pynu�[���PKe,�Zg�ˆ؝grid.pyonu�[���PKe,�Z��{�̖̖�tixwidgets.pycnu�[���PKe,�ZF���
:README.txtnu�[���PKe,�Z��*ϰ�*=INSTALL.txtnu�[���PKe,�Znb!���Lsamples/PanedWin.pycnu�[���PKe,�Z�3U
���\samples/DirList.pyonu�[���PKe,�Zzd��3	3	�nsamples/Tree.pyonu�[���PKe,�Z��J��2xsamples/DirTree.pynu�[���PKe,�Z�?�S�samples/CmpImg.pyonu�[���PKe,�Zi�|##3�samples/Control.pynu�[���PKe,�ZB~g����samples/SHList2.pycnu�[���PKf,�Zs�Rg��samples/SHList2.pynu�[���PKf,�Z7�:�BB��samples/BtnBox.pyonu�[���PKf,�Z���88}�samples/PopMenu.pynu�[���PKf,�Z*MB��
�
��samples/ComboBox.pyonu�[���PKf,�ZB~g��-�samples/SHList2.pyonu�[���PKf,�Z�N���	�	Jsamples/OptMenu.pynu�[���PKf,�Z���aasamples/SHList1.pycnu�[���PKf,�Z���\
\
�samples/Balloon.pyonu�[���PKf,�Z�-����`)samples/PanedWin.pynu�[���PKf,�Z�t���8samples/DirTree.pycnu�[���PKf,�Z��q���Hsamples/Control.pyonu�[���PKf,�Zzd��3	3	�Xsamples/Tree.pycnu�[���PKf,�Znb!���Gbsamples/PanedWin.pyonu�[���PKf,�Z0�7bbssamples/OptMenu.pyonu�[���PKf,�Z�t���{samples/DirTree.pyonu�[���PKf,�Z��q���samples/Control.pycnu�[���PKf,�Z�3U
���samples/DirList.pycnu�[���PKf,�Z�û�T
T
έsamples/ComboBox.pynu�[���PKf,�Zl���//e�samples/Tree.pynu�[���PKf,�Z��b&UU��samples/PopMenu.pycnu�[���PKf,�Z�m7&~~k�samples/SHList1.pynu�[���PKf,�Z�tܙyy+�samples/NoteBook.pynu�[���PKf,�Z�D�*__��samples/NoteBook.pyonu�[���PKf,�Z�D�*__��samples/NoteBook.pycnu�[���PKf,�ZD�l�11-samples/CmpImg.pynu�[���PKf,�Z*MB��
�
�!samples/ComboBox.pycnu�[���PKf,�ZSa�����,samples/DirList.pynu�[���PKf,�Z0�7bb�>samples/OptMenu.pycnu�[���PKf,�Z���aa�Gsamples/SHList1.pyonu�[���PKf,�Z�?�9Vsamples/CmpImg.pycnu�[���PKf,�Z7�:�BBpsamples/BtnBox.pycnu�[���PKf,�ZV�G����usamples/Balloon.pynu�[���PKf,�Z!���~samples/BtnBox.pynu�[���PKf,�Z���\
\
�samples/Balloon.pycnu�[���PKf,�Z��b&UU��samples/PopMenu.pyonu�[���PKf,�Z��{�̖̖M�tixwidgets.pyonu�[���PKf,�Z�7�o		W.bitmaps/filebox.xpmnu�[���PKf,�Z!��""�7bitmaps/italic.xbmnu�[���PKf,�Z�j�		9bitmaps/about.xpmnu�[���PKf,�Z����4	4	KBbitmaps/select.xpmnu�[���PKf,�Z�W=""�Kbitmaps/rightj.xbmnu�[���PKf,�Z���tt%Mbitmaps/netw.xbmnu�[���PKf,�ZF_ajj�Pbitmaps/netw.xpmnu�[���PKf,�Z{J_���Vbitmaps/optmenu.xpmnu�[���PKf,�Z������_bitmaps/combobox.xbmnu�[���PKf,�Z��0�{cbitmaps/bold.xbmnu�[���PKg,�Z٦pt"+"+�dbitmaps/tix.gifnuȯ��PKg,�Z��{�++8�bitmaps/underline.xbmnu�[���PKg,�Z�L������bitmaps/combobox.xpm.1nu�[���PKg,�ZH�j"		ښbitmaps/combobox.xpmnu�[���PKg,�Z�Ǐ,�bitmaps/leftj.xbmnu�[���PKg,�Z*�GS%%��bitmaps/capital.xbmnu�[���PKg,�Z5(�=[[�bitmaps/drivea.xpmnu�[���PKg,�Z#��1}}��bitmaps/filebox.xbmnu�[���PKg,�ZTZye%%Q�bitmaps/centerj.xbmnu�[���PKg,�Z>(��%%��bitmaps/justify.xbmnu�[���PKg,�Z�rn(��!�bitmaps/exit.xpmnu�[���PKg,�Zr,�5zzV�bitmaps/drivea.xbmnu�[���PKHH��