wxFormBuilder Build a Python Gif Viewer Part 7

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I am now 1h 30min into the tutorials, I got a dir.open to work, and 3 scripts later 300 lines each, I can wait 5 sec per file open!

mateokladaric
Автор

I guess I got it. Using generated gui python classes as templates (generated comment "Virtual event handlers, ..." gave a clue). If you know what is virtual method, you know that it should be overloaded in C++ after you inherit a class. That means that all the classes generated are supposed to be inherited from but not used directly. Hence creating your own classes which will inherit from generated ones and overloading (implementing) empty (virtual or with dumb content) event handlers will free you from creating cumbersome cleaning scripts (that just does not look like elegant solution).

BakhmutMax
join shbcf.ru