close
Python Forum
FileBrowser dialog
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileBrowser dialog
#1
Simple situation: Looking to do a file browser dialog in Python, that is text-based.
System: Ubuntu 17.01, Python 3.6
Simple question: Has anyone worked out a module to do this, yet? (be gentle, still new at Python)
Angel
Reply
#2
What does a text-based dialog look like?
Are you talking about re-implementing the ls command?
Reply
#3
It operates like a gui-based file browser dialog, but it's window is simulated in text.

Example: [Image: text-file-browser.jpg]
Reply
#4
Oh, ok. Probably starting with curses would be the way to go, then, right? https://docs.python.org/3/howto/curses.html

The Last File Manager is apparently written in python: https://inigo.katxi.org/devel/lfm/
Reply
#5
All GUI toolkit can bring up OS native file dialog.
You can look at with TKinter which come with Python.
import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename()
print(file_path)
Reply
#6
Ok, lets start over ... your responses are acknowledged, but if you will all notice, the original question has not how to do it... it was "Has anyone worked out a module to do this, yet?". I'm trying to avoid re-inventing the wheel, if someone's already figured it out. Angel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [WxPython] [SOLVED] Simple dialog without app? Winfried 5 1,411 Oct-07-2025, 02:30 PM
Last Post: Winfried
Smile [Tkinter] Trying to make Fond Dialog box TheTiger 11 4,146 Oct-16-2024, 01:56 AM
Last Post: menator01
  How a QMainWindow can open a dialog? panoss 4 6,893 Feb-03-2022, 04:33 PM
Last Post: panoss
  [Tkinter] question for a tkinter dialog box RobertAlvarez424 2 3,696 Aug-25-2021, 03:08 PM
Last Post: RobertAlvarez424
  [Tkinter] cancelling open dialog gives empty string rwahdan 2 6,053 Jul-17-2021, 09:17 PM
Last Post: steve_shambles
  [WxPython] Return code when closing the dialog ioprst 1 4,571 Aug-13-2019, 11:47 AM
Last Post: jefsummers
  PyQT5 : Unable to Create Another Dialog While One is Open iMuny 3 6,271 Jul-17-2019, 11:40 AM
Last Post: iMuny
  [WxPython] Any dialog that allow user to select file OR folder? buran 3 6,695 Apr-03-2019, 06:33 PM
Last Post: Yoriz
  [WxPython] how to run the dialog from another py file royer14 0 3,688 Jul-02-2018, 05:33 AM
Last Post: royer14
  I'm trying to create a simple yes/no dialog box RedSkeleton007 15 28,323 Apr-25-2018, 05:10 PM
Last Post: nilamo

Forum Jump:
Image

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020