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
  Is there is a printer dialog box in PySimpleGUI shaunfish 2 1,584 Aug-22-2022, 07:29 PM
Last Post: deanhystad
  How a QMainWindow can open a dialog? panoss 4 3,483 Feb-03-2022, 04:33 PM
Last Post: panoss
  [Tkinter] question for a tkinter dialog box RobertAlvarez424 2 2,208 Aug-25-2021, 03:08 PM
Last Post: RobertAlvarez424
  [Tkinter] cancelling open dialog gives empty string rwahdan 2 3,312 Jul-17-2021, 09:17 PM
Last Post: steve_shambles
  [WxPython] Return code when closing the dialog ioprst 1 3,157 Aug-13-2019, 11:47 AM
Last Post: jefsummers
  PyQT5 : Unable to Create Another Dialog While One is Open iMuny 3 3,817 Jul-17-2019, 11:40 AM
Last Post: iMuny
  [WxPython] Any dialog that allow user to select file OR folder? buran 3 4,182 Apr-03-2019, 06:33 PM
Last Post: Yoriz
  [WxPython] how to run the dialog from another py file royer14 0 2,676 Jul-02-2018, 05:33 AM
Last Post: royer14
  I'm trying to create a simple yes/no dialog box RedSkeleton007 15 18,414 Apr-25-2018, 05:10 PM
Last Post: nilamo
  About Dialog in PyQt5 on macOS cpuin 0 2,861 Jan-23-2018, 08:50 PM
Last Post: cpuin

Forum Jump:

User Panel Messages

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