This is prob’ly a more general Python question, but since I’m using wx.Python
My application is an implementation of a piece of test equipment (connected by a serial/Bluetooth port to a h/w subsystem). I have a frame which is the main “instrument” and then a 2nd frame which is basically a keypad (with arrows) and is needed only at certain times.
I’m curious about instantiating the keypad only when I need it vs. instantiating it at initialization and hiding it until I need to show it. I’m not worried about speed so taking a few mSecs, or even 1 or 2 secs., to show the keypad is not an issue.
I expect the question is relative to speed (instantiation as needed) vs. memory (hide/show), neither of which is a critical issue in this app. I’m also interested in the implications of moving the keypad essentially to a method/procedure and how that impacts the scope (since the keypad wold now be “moved up a level”)…tho, maybe I’m visualizing that wrong.
Thx in advance and cheers…