Commit 0a36985
committed
Simplify wxframe deletion.
Instead of reimplementing Destroy and fiddling around with supercalls
and IsBeingDeleted, move the toolbar disconnection to the _on_close
handler (which anyways already unregisters the figure from Gcf, so it's
definitely going to destroy the figure) and inherit Destroy from the
base class.1 parent 67e69e9 commit 0a36985
1 file changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
940 | 944 | | |
941 | 945 | | |
942 | 946 | | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | 947 | | |
959 | 948 | | |
960 | 949 | | |
| |||
0 commit comments