Esempio n. 1
0
	def browse(self,ignore=None):
		temp=files()
		newLoc=temp.askfolder(self.entryLocation.get())
		if(len(newLoc)==0):return
		self.entryLocation.delete(0,END)
		self.entryLocation.insert(0,newLoc)
Esempio n. 2
0
#!/usr/bin/python
from Tkinter import *
import std_os
tool=std_os.files()
tool2=std_os.files()
tool3=std_os.files()
root=Tk()
directory=tool.askfolder("/media/RAID/Video")

#setup some stuff
tool.walk(top=directory,recursive=False)
tool.directoryTree.sort(key=lambda a: a[1])
tool.folders.sort(key=lambda a: a[1])
'''
print "**Shows in this Location**"
for dirs in tool.folders:
	print dirs[1]
'''

#boxes with the structures in them
temp_width=35 #common width for the stuffs
temp_height=25 #height for the listboxes
list_series=Listbox(root,width=35,height=temp_height)
list_series.grid(row=0,column=0,rowspan=3)
list_seasons=Listbox(root,width=20,height=temp_height)
list_seasons.grid(row=0,column=2,rowspan=3)
list_episodes=Listbox(root,width=temp_width,selectmode=EXTENDED,height=temp_height)
list_episodes.grid(row=0,column=4,rowspan=3)
del temp_height

#buttons to move selections of episodes up and down