Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python 2.7 I need to write a gui program that opens a image browser for my hard disk. the program needs to load a

in python 2.7 I need to write a gui program that opens a image browser for my hard disk. the program needs to load a scrolling list box with filenames of images in cwd, names of subdirectories in the cwd, and the string ".." denoting the parent directory.

the pathname of the cwd should also be displayed in an entry feild. when the user selects an item in the list boc and presses the go button if the item is an image filename the image should be displayed, if the item is a subdirectory the program attaches to that directory and refreshes the list box contents.

if the item is the string ".." the program attaches to the parent directory and refreshes the list box with its content.

Please do not respond with the attached coding as I do not understand it. I need the full code to enter into IDLE to get the program to run without issue. It should use Tkinter with list and scrolling boxes.

image text in transcribed
According to the given data the following data illustrates; Function Pushbutton 1-Call back (hOBJECT,EVENT DATA, HANDLES) % hobject handle to push button 1 % Event Data Reserved To Be Defined at a future version % handles structure with handles and use data (see the GUI DATA ) (file name, path name) uiget file ({ *:"jpg"* "*bmp"*}) (File Selection ) % Image - streat [pathname , file name] axes, [handles,axes 1]% imshow ( image ) set (handles,edit 1, 'string, filename) % set (handles,edit 2, ' string,image')%..... Thus, our required data is obtained

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions