404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.227.10.102: ~ $
"""Sample taken from: http://www.tkdocs.com/tutorial/morewidgets.html and
converted to Python, mainly to demonstrate xscrollcommand option.

grid [tk::listbox .l -yscrollcommand ".s set" -height 5] -column 0 -row 0 -sticky nwes
grid [ttk::scrollbar .s -command ".l yview" -orient vertical] -column 1 -row 0 -sticky ns
grid [ttk::label .stat -text "Status message here" -anchor w] -column 0 -row 1 -sticky we
grid [ttk::sizegrip .sz] -column 1 -row 1 -sticky se
grid columnconfigure . 0 -weight 1; grid rowconfigure . 0 -weight 1
for {set i 0} {$i<100} {incr i} {
   .l insert end "Line $i of 100"
   }
"""
import Tkinter
import ttk

root = Tkinter.Tk()

l = Tkinter.Listbox(height=5)
l.grid(column=0, row=0, sticky='nwes')

s = ttk.Scrollbar(command=l.yview, orient='vertical')
l['yscrollcommand'] = s.set
s.grid(column=1, row=0, sticky="ns")

stat = ttk.Label(text="Status message here", anchor='w')
stat.grid(column=0, row=1, sticky='we')

sz = ttk.Sizegrip()
sz.grid(column=1, row=1, sticky='se')

root.grid_columnconfigure(0, weight=1)
root.grid_rowconfigure(0, weight=1)

for i in range(100):
    l.insert('end', "Line %d of 100" % i)

root.mainloop()

Filemanager

Name Type Size Permission Actions
img Folder 0755
combo_themes.py File 1.58 KB 0644
combo_themes.pyc File 1.88 KB 0644
combo_themes.pyo File 1.88 KB 0644
dirbrowser.py File 2.65 KB 0644
dirbrowser.pyc File 3.88 KB 0644
dirbrowser.pyo File 3.88 KB 0644
listbox_scrollcmd.py File 1.13 KB 0644
listbox_scrollcmd.pyc File 1.56 KB 0644
listbox_scrollcmd.pyo File 1.56 KB 0644
mac_searchentry.py File 3.63 KB 0644
mac_searchentry.pyc File 3.88 KB 0644
mac_searchentry.pyo File 3.88 KB 0644
notebook_closebtn.py File 2.47 KB 0644
notebook_closebtn.pyc File 2.91 KB 0644
notebook_closebtn.pyo File 2.91 KB 0644
plastik_theme.py File 9.36 KB 0644
plastik_theme.pyc File 7.34 KB 0644
plastik_theme.pyo File 7.34 KB 0644
roundframe.py File 5.47 KB 0644
roundframe.pyc File 6.28 KB 0644
roundframe.pyo File 6.28 KB 0644
theme_selector.py File 1.92 KB 0644
theme_selector.pyc File 2.81 KB 0644
theme_selector.pyo File 2.81 KB 0644
treeview_multicolumn.py File 4.15 KB 0644
treeview_multicolumn.pyc File 5.35 KB 0644
treeview_multicolumn.pyo File 5.35 KB 0644
ttkcalendar.py File 8.12 KB 0644
ttkcalendar.pyc File 9.54 KB 0644
ttkcalendar.pyo File 9.54 KB 0644
widget_state.py File 2.66 KB 0644
widget_state.pyc File 3.33 KB 0644
widget_state.pyo File 3.33 KB 0644