Python: How to make Next button read diffrent files. -


i'am going make window next button, text widget , label widget. want when klick on next button read adiffrent files on text widget, mean first click on nexst read file_1 in text widget, , secound click read file_2, , on. can me, thanks

shelf might it. try opening file in shelf, reading it, printing it, closing it. when button hit variable incriminated. variable points index in array holds file names. pass file path function this:

import shelve = 0 paths = array containing file paths

function file (path): function opens reads prints , closes - file @ path

while true: loop calls function args paths[i] i++

btw eas not meant python code representation

p.s if have got wrong end of stick pls tell me , change awnser


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -