Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

needs python language Part 2 (10 points) Write a GUI named FileCountExplorer that creates an interface that allows the user to pick a folder using

needs python language image text in transcribed
image text in transcribed
image text in transcribed
Part 2 (10 points) Write a GUI named FileCountExplorer that creates an interface that allows the user to pick a folder using the filedialog. It also contains a field to enter and enter a name of a file to search for. You will use the fileCount code from part I and show the count of how many files have that name in a popup. In this problem, you will use the filedialog widget to allow the user to pick a folder. Since the book doesn't cover this dialog, I have included an example named FileDialogExample which is found in the homework file to show you how to use the filedialog to pick a directory. The return value of the dialog is a string that represents the directory path you will be recursively searching. You can copy the code from Part 1 into the dirCount method. Calling a method recursively is the same as calling a regular function recursively but the method has to have a parameter representing self. You can use either grid or pack to align the GUI elements. She the following screenshots for an example usage: File Count Explore Enter a file name: Get Path Select path Get Count Click "Get Count" Error. 1 You must enter a filename. OK Enter "file.txt" in the first field: File Count xplorer Enter a file name f Get Path Select path: Get Count Click "Get Count: Error. You must select a folder path. OK Click "Get Path". You will see a system specific dialog box appear to select the folder Once you select the folder the UI looks like this (File.txt is being searched for): File Count Explorer Enter a file name Ale.bt Select path: C/Uses/azoko/Destop/Winter 2019/CSC 24i Get Path Get Count Now, click "Get Count

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Do you favor a civil service system? Why or why not?

Answered: 1 week ago