Can you show me how to list files in a GUI window using python?
system
kya aap mujhe dikhaa sakate hai ki paythan kaa upyog karke GUI windo main filon ko kaise soochibaddh kiya jaae?
user
bilkul!ham paythan ke Tkinter modul ke saath -saath tkinter.ttk vijet set kaa upyog karenge:

aayaat oes
Tk ke rup main Tkinter aayaat karen
Tkinter aayaat ttk se

root = tk.tk ()

# ek trivyuu vijet banaaen
tree = ttk.TreeView (root)
tree.pack (fill = tk.both, vistaar = 1)

# trivyuu main kollam joden
tree ['kollam'] = ('aakaar', 'sanshodhit')
tree.column ('#0', chaudaai = 200, minwidth = 50, lungar = 'w')
Tree.Column ('aakaar', chaudaai = 100, minwidth = 50, lungar = 'centre')
Tree.column ('sanshodhit', chaudaai = 150, minwidth = 50, lungar = 'centre')

# kollam heading set karen
tree.heading ('#0', paath = 'naam', ankar = 'dablyoo')
tree.heading ('aakaar', paath = 'aakaar', ankar = 'centre')
tree.heading ('sanshodhit', paath = 'sanshodhit', ankar = 'centre')

# sabhi filon or nirdeshikaon kii suchi
filein = os.listdir ('./')

# trivyuu main filein joden
filon main fil ke liye:
    # path praapt karen
    path = os.path.join ('./', fil)
    # fil kaa aakaar praapt karen
    size = os.path.getSize (path)
    # antim modfied praapt karen
    sanshodhit = os.path.getMtime (path)
    # trivyuu main item joden
    tree.insert ('', 'ant', paath = fil, maan = (aakaar, sanshodhit))

# mukhya gheraa
root.mainloop ()
assistant
<|system|>
</s>
<|user|>
kya aap mujhe dikhaa sakate hai ki paythan kaa upyog karke GUI windo main filon ko kaise soochibaddh kiya jaae?</s>
<|assistant|>
bilkul!ham paythan ke Tkinter modul ke saath -saath tkinter.ttk vijet set kaa upyog karenge:

aayaat oes
Tk ke rup main Tkinter aayaat karen
Tkinter aayaat ttk se

root = tk.tk ()

# ek trivyuu vijet banaaen
tree = ttk.TreeView (root)
tree.pack (fill = tk.both, vistaar = 1)

# trivyuu main kollam joden
tree ['kollam'] = ('aakaar', 'sanshodhit')
tree.column ('#0', chaudaai = 200, minwidth = 50, lungar = 'w')
Tree.Column ('aakaar', chaudaai = 100, minwidth = 50, lungar = 'centre')
Tree.column ('sanshodhit', chaudaai = 150, minwidth = 50, lungar = 'centre')

# kollam heading set karen
tree.heading ('#0', paath = 'naam', ankar = 'dablyoo')
tree.heading ('aakaar', paath = 'aakaar', ankar = 'centre')
tree.heading ('sanshodhit', paath = 'sanshodhit', ankar = 'centre')

# sabhi filon or nirdeshikaon kii suchi
filein = os.listdir ('./')

# trivyuu main filein joden
filon main fil ke liye:
    # path praapt karen
    path = os.path.join ('./', fil)
    # fil kaa aakaar praapt karen
    size = os.path.getSize (path)
    # antim modfied praapt karen
    sanshodhit = os.path.getMtime (path)
    # trivyuu main item joden
    tree.insert ('', 'ant', paath = fil, maan = (aakaar, sanshodhit))

# mukhya gheraa
root.mainloop ()</s>
