def show_project # updates the status of the chosen project chosenList = $list.curselection() chosenItem = chosenList[0] $proj_name = $list.get(chosenItem) $status.value = "Project chosen: #{$proj_name}" end
$projects = Dir.entries("#{Dir.pwd}/projects")[2..-1] $projects.each {|f| $list.insert 'end', f}
Leave a comment: