Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

in python \"Write a GUL-based program that implements an image browser for your

ID: 3918730 • Letter: I

Question

in python

"Write a GUL-based program that implements an image browser for your computer's hard disk. At start-up. the program should load a scrolling list box with three types of items: The filenames of the images in the current working directory The names of any suhdirectories within the current working directory . item in the list bong directory is also d item in the list box and presses the Go button, one of three things can happen: . The string". denoting the parent directory) The pathname of the current working directory is also displayed in an entry field. When the user selects an .If the item is an image filename, the image is loaded and 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 if there is one and refreshes the list . box with its contents. In the last rwo casves, the conents of the en field are abo updated"

Explanation / Answer

SOLUTION:

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 - strcat [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