Displaying 1 result from an estimated 1 matches for "apbook".
Did you mean:
abook
2007 Jun 28
2
Keeping GUI responsive while processing data
...files.")
dialog2 = Wx::MessageDialog.new(self, info, "Missing File?")
dialog2.show_modal()
elsif dialog.show_modal() == Wx::ID_OK
save_path = dialog.get_path()
puts save_path
puts file1
puts file2
$t = Thread.new {
ap = APBook.new
ap.run(file1, file2, save_path) ### THIS IS THE PART THAT TAKES
} ### SOME TIME
end
end
And my on_init looks like this:
------------- on_init --------------------
class MyApp < Wx::App
def on_init
t = Wx::Timer.new(self, 55)
evt_timer(55) { $t.p...