wxPython-zombie 3.1.5.8__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1175) hide show
  1. wx/__init__.py +22 -0
  2. wx/__version__.py +9 -0
  3. wx/_adv.cp313-win_amd64.pyd +0 -0
  4. wx/_aui.cp313-win_amd64.pyd +0 -0
  5. wx/_core.cp313-win_amd64.pyd +0 -0
  6. wx/_dataview.cp313-win_amd64.pyd +0 -0
  7. wx/_glcanvas.cp313-win_amd64.pyd +0 -0
  8. wx/_grid.cp313-win_amd64.pyd +0 -0
  9. wx/_html.cp313-win_amd64.pyd +0 -0
  10. wx/_html2.cp313-win_amd64.pyd +0 -0
  11. wx/_media.cp313-win_amd64.pyd +0 -0
  12. wx/_msw.cp313-win_amd64.pyd +0 -0
  13. wx/_propgrid.cp313-win_amd64.pyd +0 -0
  14. wx/_ribbon.cp313-win_amd64.pyd +0 -0
  15. wx/_richtext.cp313-win_amd64.pyd +0 -0
  16. wx/_stc.cp313-win_amd64.pyd +0 -0
  17. wx/_xml.cp313-win_amd64.pyd +0 -0
  18. wx/_xrc.cp313-win_amd64.pyd +0 -0
  19. wx/adv.py +124 -0
  20. wx/adv.pyi +5182 -0
  21. wx/aui.py +77 -0
  22. wx/aui.pyi +3655 -0
  23. wx/core.py +3540 -0
  24. wx/core.pyi +50592 -0
  25. wx/dataview.py +173 -0
  26. wx/dataview.pyi +3491 -0
  27. wx/demo/AUI_DockingWindowMgr.py +1154 -0
  28. wx/demo/AUI_MDI.py +117 -0
  29. wx/demo/AUI_Notebook.py +58 -0
  30. wx/demo/About.py +75 -0
  31. wx/demo/AboutBox.py +75 -0
  32. wx/demo/ActiveXWrapper_Acrobat.py +132 -0
  33. wx/demo/ActiveXWrapper_IE.py +187 -0
  34. wx/demo/ActiveX_FlashWindow.py +107 -0
  35. wx/demo/ActiveX_IEHtmlWindow.py +242 -0
  36. wx/demo/ActiveX_PDFWindow.py +204 -0
  37. wx/demo/ActivityIndicator.py +80 -0
  38. wx/demo/AddPrivateFont.py +116 -0
  39. wx/demo/AdjustChannels.py +178 -0
  40. wx/demo/AlphaDrawing.py +77 -0
  41. wx/demo/AnalogClock.py +144 -0
  42. wx/demo/AnimationCtrl.py +104 -0
  43. wx/demo/ArtProvider.py +893 -0
  44. wx/demo/BannerWindow.py +1 -0
  45. wx/demo/BitmapButton.py +87 -0
  46. wx/demo/BitmapComboBox.py +63 -0
  47. wx/demo/BitmapFromBuffer.py +140 -0
  48. wx/demo/Button.py +77 -0
  49. wx/demo/Cairo.py +197 -0
  50. wx/demo/Cairo_Snippets.py +135 -0
  51. wx/demo/Calendar.py +660 -0
  52. wx/demo/CalendarCtrl.py +122 -0
  53. wx/demo/CheckBox.py +74 -0
  54. wx/demo/CheckListBox.py +79 -0
  55. wx/demo/CheckListCtrl.py +99 -0
  56. wx/demo/Choice.py +55 -0
  57. wx/demo/Choicebook.py +80 -0
  58. wx/demo/CollapsibleHeaderCtrl.py +85 -0
  59. wx/demo/CollapsiblePane.py +126 -0
  60. wx/demo/ColorPanel.py +19 -0
  61. wx/demo/ColourDB.py +203 -0
  62. wx/demo/ColourDialog.py +76 -0
  63. wx/demo/ColourSelect.py +119 -0
  64. wx/demo/ComboBox.py +111 -0
  65. wx/demo/ComboCtrl.py +153 -0
  66. wx/demo/ComboTreeBox.py +71 -0
  67. wx/demo/CommandLinkButton.py +50 -0
  68. wx/demo/ContextHelp.py +112 -0
  69. wx/demo/Cursor.py +336 -0
  70. wx/demo/CustomDragAndDrop.py +353 -0
  71. wx/demo/DVC_CustomRenderer.py +204 -0
  72. wx/demo/DVC_DataViewModel.py +365 -0
  73. wx/demo/DVC_IndexListModel.py +257 -0
  74. wx/demo/DVC_ListCtrl.py +69 -0
  75. wx/demo/DVC_TreeCtrl.py +76 -0
  76. wx/demo/DatePickerCtrl.py +68 -0
  77. wx/demo/DelayedResult.py +239 -0
  78. wx/demo/Dialog.py +169 -0
  79. wx/demo/DialogUnits.py +128 -0
  80. wx/demo/DirDialog.py +58 -0
  81. wx/demo/DragAndDrop.py +265 -0
  82. wx/demo/DragImage.py +316 -0
  83. wx/demo/DragScroller.py +59 -0
  84. wx/demo/DrawXXXList.py +436 -0
  85. wx/demo/DynamicSashWindow.py +177 -0
  86. wx/demo/EditableListBox.py +101 -0
  87. wx/demo/Editor.py +70 -0
  88. wx/demo/EventManager.py +291 -0
  89. wx/demo/ExpandoTextCtrl.py +164 -0
  90. wx/demo/FancyText.py +83 -0
  91. wx/demo/FileBrowseButton.py +100 -0
  92. wx/demo/FileCtrl.py +97 -0
  93. wx/demo/FileDialog.py +144 -0
  94. wx/demo/FileHistory.py +140 -0
  95. wx/demo/FindReplaceDialog.py +123 -0
  96. wx/demo/FloatCanvas.py +1959 -0
  97. wx/demo/FontDialog.py +142 -0
  98. wx/demo/FontEnumerator.py +82 -0
  99. wx/demo/Frame.py +85 -0
  100. wx/demo/GLCanvas.py +371 -0
  101. wx/demo/Gauge.py +66 -0
  102. wx/demo/GenericButtons.py +185 -0
  103. wx/demo/GenericCheckBox.py +65 -0
  104. wx/demo/GenericDirCtrl.py +74 -0
  105. wx/demo/GetMouseState.py +159 -0
  106. wx/demo/GraphicsContext.py +236 -0
  107. wx/demo/GraphicsGradient.py +281 -0
  108. wx/demo/Grid.py +95 -0
  109. wx/demo/GridBagSizer.py +170 -0
  110. wx/demo/GridCustEditor.py +247 -0
  111. wx/demo/GridCustTable.py +170 -0
  112. wx/demo/GridDragAndDrop.py +102 -0
  113. wx/demo/GridDragable.py +206 -0
  114. wx/demo/GridEnterHandler.py +66 -0
  115. wx/demo/GridHugeTable.py +89 -0
  116. wx/demo/GridLabelRenderer.py +114 -0
  117. wx/demo/GridSimple.py +270 -0
  118. wx/demo/GridStdEdRend.py +186 -0
  119. wx/demo/Grid_MegaExample.py +490 -0
  120. wx/demo/HTML2_WebView.py +183 -0
  121. wx/demo/HtmlWindow.py +232 -0
  122. wx/demo/I18N.py +237 -0
  123. wx/demo/Image.py +338 -0
  124. wx/demo/ImageAlpha.py +87 -0
  125. wx/demo/ImageBrowser.py +70 -0
  126. wx/demo/ImageFromStream.py +49 -0
  127. wx/demo/Img2PyArtProvider.py +99 -0
  128. wx/demo/InfoBar.py +127 -0
  129. wx/demo/IntCtrl.py +343 -0
  130. wx/demo/ItemsPicker.py +108 -0
  131. wx/demo/Joystick.py +1083 -0
  132. wx/demo/KeyEvents.py +428 -0
  133. wx/demo/LEDNumberCtrl.py +121 -0
  134. wx/demo/LayoutAnchors.py +258 -0
  135. wx/demo/LayoutConstraints.py +149 -0
  136. wx/demo/Layoutf.py +69 -0
  137. wx/demo/ListBox.py +164 -0
  138. wx/demo/ListCtrl.py +538 -0
  139. wx/demo/ListCtrl_edit.py +155 -0
  140. wx/demo/ListCtrl_virtual.py +145 -0
  141. wx/demo/Listbook.py +104 -0
  142. wx/demo/MDIDemo.py +86 -0
  143. wx/demo/MDISashDemo.py +152 -0
  144. wx/demo/MDIWindows.py +66 -0
  145. wx/demo/Main.py +2768 -0
  146. wx/demo/Mask.py +137 -0
  147. wx/demo/MaskedEditControls.py +648 -0
  148. wx/demo/MaskedNumCtrl.py +359 -0
  149. wx/demo/MediaCtrl.py +190 -0
  150. wx/demo/Menu.py +322 -0
  151. wx/demo/MessageDialog.py +54 -0
  152. wx/demo/MimeTypesManager.py +354 -0
  153. wx/demo/MiniFrame.py +67 -0
  154. wx/demo/MouseGestures.py +198 -0
  155. wx/demo/MultiChoiceDialog.py +59 -0
  156. wx/demo/MultiSash.py +95 -0
  157. wx/demo/MultiSplitterWindow.py +168 -0
  158. wx/demo/MultipleChoiceDialog.py +101 -0
  159. wx/demo/Notebook.py +134 -0
  160. wx/demo/NotificationMessage.py +61 -0
  161. wx/demo/OGL.py +433 -0
  162. wx/demo/Overlay.py +209 -0
  163. wx/demo/OwnerDrawnComboBox.py +152 -0
  164. wx/demo/PDFViewer.py +109 -0
  165. wx/demo/PageSetupDialog.py +70 -0
  166. wx/demo/PenAndBrushStyles.py +208 -0
  167. wx/demo/Pickers.py +120 -0
  168. wx/demo/PlateButton.py +430 -0
  169. wx/demo/PopupControl.py +99 -0
  170. wx/demo/PopupMenu.py +156 -0
  171. wx/demo/PopupWindow.py +227 -0
  172. wx/demo/PrintDialog.py +60 -0
  173. wx/demo/PrintFramework.py +227 -0
  174. wx/demo/Process.py +168 -0
  175. wx/demo/ProgressDialog.py +87 -0
  176. wx/demo/PropertyGrid.py +1045 -0
  177. wx/demo/PropertySheetDialog.py +231 -0
  178. wx/demo/PseudoDC.py +350 -0
  179. wx/demo/PyColourChooser.py +60 -0
  180. wx/demo/PyCrust.py +21 -0
  181. wx/demo/PyPlot.py +83 -0
  182. wx/demo/PyShell.py +22 -0
  183. wx/demo/PythonEvents.py +109 -0
  184. wx/demo/README.txt +7 -0
  185. wx/demo/RadioBox.py +67 -0
  186. wx/demo/RadioButton.py +127 -0
  187. wx/demo/RawBitmapAccess.py +208 -0
  188. wx/demo/RearrangeDialog.py +160 -0
  189. wx/demo/RendererNative.py +170 -0
  190. wx/demo/ResizeWidget.py +76 -0
  191. wx/demo/RichMessageDialog.py +85 -0
  192. wx/demo/RichTextCtrl.py +732 -0
  193. wx/demo/RichToolTip.py +145 -0
  194. wx/demo/SVGImage_Bitmap.py +130 -0
  195. wx/demo/SVGImage_Render.py +138 -0
  196. wx/demo/SashWindow.py +151 -0
  197. wx/demo/ScrolledMessageDialog.py +52 -0
  198. wx/demo/ScrolledPanel.py +124 -0
  199. wx/demo/ScrolledWindow.py +260 -0
  200. wx/demo/SearchCtrl.py +115 -0
  201. wx/demo/ShapedWindow.py +145 -0
  202. wx/demo/Simplebook.py +202 -0
  203. wx/demo/SingleChoiceDialog.py +56 -0
  204. wx/demo/SizedControls.py +433 -0
  205. wx/demo/Sizers.py +609 -0
  206. wx/demo/Slider.py +52 -0
  207. wx/demo/Sound.py +95 -0
  208. wx/demo/SpinButton.py +63 -0
  209. wx/demo/SpinCtrl.py +56 -0
  210. wx/demo/SpinCtrlDouble.py +42 -0
  211. wx/demo/SplitTree.py +146 -0
  212. wx/demo/SplitterWindow.py +62 -0
  213. wx/demo/StandardPaths.py +113 -0
  214. wx/demo/StaticBitmap.py +55 -0
  215. wx/demo/StaticBox.py +62 -0
  216. wx/demo/StaticText.py +69 -0
  217. wx/demo/StatusBar.py +144 -0
  218. wx/demo/StockButtons.py +113 -0
  219. wx/demo/StyledTextCtrl_1.py +303 -0
  220. wx/demo/StyledTextCtrl_2.py +410 -0
  221. wx/demo/SystemSettings.py +333 -0
  222. wx/demo/TablePrint.py +215 -0
  223. wx/demo/TestTable.txt +38 -0
  224. wx/demo/TextCtrl.py +187 -0
  225. wx/demo/TextEntryDialog.py +57 -0
  226. wx/demo/Threads.py +258 -0
  227. wx/demo/Throbber.py +250 -0
  228. wx/demo/Ticker.py +147 -0
  229. wx/demo/TimeCtrl.py +240 -0
  230. wx/demo/TimePickerCtrl.py +60 -0
  231. wx/demo/Timer.py +275 -0
  232. wx/demo/ToggleButton.py +54 -0
  233. wx/demo/ToolBar.py +249 -0
  234. wx/demo/ToolTip.py +71 -0
  235. wx/demo/Toolbook.py +111 -0
  236. wx/demo/TreeCtrl.py +199 -0
  237. wx/demo/TreeListCtrl.py +121 -0
  238. wx/demo/TreeMixin.py +269 -0
  239. wx/demo/Treebook.py +117 -0
  240. wx/demo/UIActionSimulator.py +151 -0
  241. wx/demo/URLDragAndDrop.py +130 -0
  242. wx/demo/Unicode.py +146 -0
  243. wx/demo/VListBox.py +176 -0
  244. wx/demo/Validator.py +237 -0
  245. wx/demo/Wizard.py +248 -0
  246. wx/demo/WrapSizer.py +115 -0
  247. wx/demo/XmlResource.py +80 -0
  248. wx/demo/XmlResourceHandler.py +199 -0
  249. wx/demo/XmlResourceSubclass.py +119 -0
  250. wx/demo/__init__.py +9 -0
  251. wx/demo/agw/AGWInfoBar.py +175 -0
  252. wx/demo/agw/AUI.py +3058 -0
  253. wx/demo/agw/AdvancedSplash.py +59 -0
  254. wx/demo/agw/AquaButton.py +146 -0
  255. wx/demo/agw/BalloonTip.py +378 -0
  256. wx/demo/agw/ButtonPanel.py +890 -0
  257. wx/demo/agw/CubeColourDialog.py +83 -0
  258. wx/demo/agw/CustomTreeCtrl.py +2167 -0
  259. wx/demo/agw/Example1 +67 -0
  260. wx/demo/agw/Example2 +49 -0
  261. wx/demo/agw/FlatMenu.py +876 -0
  262. wx/demo/agw/FlatNotebook.py +994 -0
  263. wx/demo/agw/FloatSpin.py +475 -0
  264. wx/demo/agw/FoldPanelBar.py +953 -0
  265. wx/demo/agw/FourWaySplitter.py +300 -0
  266. wx/demo/agw/GenericMessageDialog.py +207 -0
  267. wx/demo/agw/GradientButton.py +156 -0
  268. wx/demo/agw/HyperLinkCtrl.py +144 -0
  269. wx/demo/agw/HyperTreeList.py +2660 -0
  270. wx/demo/agw/KnobCtrl.py +186 -0
  271. wx/demo/agw/LabelBook.py +567 -0
  272. wx/demo/agw/MacLargeDemo.py +360 -0
  273. wx/demo/agw/MultiDirDialog.py +117 -0
  274. wx/demo/agw/PeakMeter.py +194 -0
  275. wx/demo/agw/PersistentControls.py +589 -0
  276. wx/demo/agw/PieCtrl.py +206 -0
  277. wx/demo/agw/PyBusyInfo.py +64 -0
  278. wx/demo/agw/PyCollapsiblePane.py +308 -0
  279. wx/demo/agw/PyGauge.py +162 -0
  280. wx/demo/agw/PyProgress.py +155 -0
  281. wx/demo/agw/RibbonBar.py +925 -0
  282. wx/demo/agw/RulerCtrl.py +454 -0
  283. wx/demo/agw/ScrolledThumbnail.py +128 -0
  284. wx/demo/agw/ShapedButton.py +603 -0
  285. wx/demo/agw/ShortcutEditor.py +397 -0
  286. wx/demo/agw/SpeedMeter.py +668 -0
  287. wx/demo/agw/SuperToolTip.py +396 -0
  288. wx/demo/agw/ThumbDemoConfig.py +603 -0
  289. wx/demo/agw/ThumbnailCtrl.py +149 -0
  290. wx/demo/agw/ToasterBox.py +410 -0
  291. wx/demo/agw/UltimateListCtrl.py +80 -0
  292. wx/demo/agw/UltimateListIconDemo.py +908 -0
  293. wx/demo/agw/UltimateListListDemo.py +124 -0
  294. wx/demo/agw/UltimateReportDemo.py +1146 -0
  295. wx/demo/agw/UltimateVirtualDemo.py +207 -0
  296. wx/demo/agw/Windows7Explorer_Contents.py +368 -0
  297. wx/demo/agw/XLSGrid.py +238 -0
  298. wx/demo/agw/ZoomBar.py +230 -0
  299. wx/demo/agw/__demo__.py +183 -0
  300. wx/demo/agw/bitmaps/Explorer96.png +0 -0
  301. wx/demo/agw/bitmaps/Explorer96Flip40.png +0 -0
  302. wx/demo/agw/bitmaps/Folder96.png +0 -0
  303. wx/demo/agw/bitmaps/Folder96Flip40.png +0 -0
  304. wx/demo/agw/bitmaps/Monitor96.png +0 -0
  305. wx/demo/agw/bitmaps/Monitor96Flip40.png +0 -0
  306. wx/demo/agw/bitmaps/Music96.png +0 -0
  307. wx/demo/agw/bitmaps/Music96Flip40.png +0 -0
  308. wx/demo/agw/bitmaps/Photo96.png +0 -0
  309. wx/demo/agw/bitmaps/Photo96Flip40.png +0 -0
  310. wx/demo/agw/bitmaps/Search96.png +0 -0
  311. wx/demo/agw/bitmaps/Search96Flip40.png +0 -0
  312. wx/demo/agw/bitmaps/Wizard96.png +0 -0
  313. wx/demo/agw/bitmaps/Wizard96Flip40.png +0 -0
  314. wx/demo/agw/bitmaps/advancedsplash.png +0 -0
  315. wx/demo/agw/bitmaps/aquabutton.png +0 -0
  316. wx/demo/agw/bitmaps/aquachecked.ico +0 -0
  317. wx/demo/agw/bitmaps/aquaflagged.ico +0 -0
  318. wx/demo/agw/bitmaps/aquanotchecked.ico +0 -0
  319. wx/demo/agw/bitmaps/aquanotflagged.ico +0 -0
  320. wx/demo/agw/bitmaps/canada.gif +0 -0
  321. wx/demo/agw/bitmaps/checked.ico +0 -0
  322. wx/demo/agw/bitmaps/columns.png +0 -0
  323. wx/demo/agw/bitmaps/contexthelp-16.png +0 -0
  324. wx/demo/agw/bitmaps/contexthelp.png +0 -0
  325. wx/demo/agw/bitmaps/copy.png +0 -0
  326. wx/demo/agw/bitmaps/cut.png +0 -0
  327. wx/demo/agw/bitmaps/editcopy.png +0 -0
  328. wx/demo/agw/bitmaps/editcut.png +0 -0
  329. wx/demo/agw/bitmaps/editpaste.png +0 -0
  330. wx/demo/agw/bitmaps/empty_icon.png +0 -0
  331. wx/demo/agw/bitmaps/exit-16.png +0 -0
  332. wx/demo/agw/bitmaps/exit.ico +0 -0
  333. wx/demo/agw/bitmaps/ffwd.png +0 -0
  334. wx/demo/agw/bitmaps/ffwddisabled.png +0 -0
  335. wx/demo/agw/bitmaps/field-16.png +0 -0
  336. wx/demo/agw/bitmaps/filenew.png +0 -0
  337. wx/demo/agw/bitmaps/fileopen.png +0 -0
  338. wx/demo/agw/bitmaps/filesave.png +0 -0
  339. wx/demo/agw/bitmaps/flagged.ico +0 -0
  340. wx/demo/agw/bitmaps/folder.png +0 -0
  341. wx/demo/agw/bitmaps/folder_new.png +0 -0
  342. wx/demo/agw/bitmaps/ghost.png +0 -0
  343. wx/demo/agw/bitmaps/gradientbutton.png +0 -0
  344. wx/demo/agw/bitmaps/help-16.png +0 -0
  345. wx/demo/agw/bitmaps/help.ico +0 -0
  346. wx/demo/agw/bitmaps/italy.gif +0 -0
  347. wx/demo/agw/bitmaps/lbadd.png +0 -0
  348. wx/demo/agw/bitmaps/lbcharge.png +0 -0
  349. wx/demo/agw/bitmaps/lbdecrypted.png +0 -0
  350. wx/demo/agw/bitmaps/lbnews.png +0 -0
  351. wx/demo/agw/bitmaps/lbroll.png +0 -0
  352. wx/demo/agw/bitmaps/minus1.ico +0 -0
  353. wx/demo/agw/bitmaps/minus2.ico +0 -0
  354. wx/demo/agw/bitmaps/minus3.ico +0 -0
  355. wx/demo/agw/bitmaps/minus4.ico +0 -0
  356. wx/demo/agw/bitmaps/minus5.ico +0 -0
  357. wx/demo/agw/bitmaps/month-16.png +0 -0
  358. wx/demo/agw/bitmaps/new_file.png +0 -0
  359. wx/demo/agw/bitmaps/new_folder.png +0 -0
  360. wx/demo/agw/bitmaps/notchecked.ico +0 -0
  361. wx/demo/agw/bitmaps/notflagged.ico +0 -0
  362. wx/demo/agw/bitmaps/ok-16.png +0 -0
  363. wx/demo/agw/bitmaps/open_folder.png +0 -0
  364. wx/demo/agw/bitmaps/paste.png +0 -0
  365. wx/demo/agw/bitmaps/pause.png +0 -0
  366. wx/demo/agw/bitmaps/pausedisabled.png +0 -0
  367. wx/demo/agw/bitmaps/play.png +0 -0
  368. wx/demo/agw/bitmaps/playdisabled.png +0 -0
  369. wx/demo/agw/bitmaps/plus1.ico +0 -0
  370. wx/demo/agw/bitmaps/plus2.ico +0 -0
  371. wx/demo/agw/bitmaps/plus3.ico +0 -0
  372. wx/demo/agw/bitmaps/plus4.ico +0 -0
  373. wx/demo/agw/bitmaps/plus5.ico +0 -0
  374. wx/demo/agw/bitmaps/record.png +0 -0
  375. wx/demo/agw/bitmaps/recorddisabled.png +0 -0
  376. wx/demo/agw/bitmaps/recording.gif +0 -0
  377. wx/demo/agw/bitmaps/rewind.png +0 -0
  378. wx/demo/agw/bitmaps/rewinddisabled.png +0 -0
  379. wx/demo/agw/bitmaps/round.png +0 -0
  380. wx/demo/agw/bitmaps/save.png +0 -0
  381. wx/demo/agw/bitmaps/separator.gif +0 -0
  382. wx/demo/agw/bitmaps/separatorflip.png +0 -0
  383. wx/demo/agw/bitmaps/smfuel.ico +0 -0
  384. wx/demo/agw/bitmaps/smpi.ico +0 -0
  385. wx/demo/agw/bitmaps/smtemp.ico +0 -0
  386. wx/demo/agw/bitmaps/stop.png +0 -0
  387. wx/demo/agw/bitmaps/stopdisabled.png +0 -0
  388. wx/demo/agw/bitmaps/sttbutton.png +0 -0
  389. wx/demo/agw/bitmaps/sttfont.png +0 -0
  390. wx/demo/agw/bitmaps/sttheader.png +0 -0
  391. wx/demo/agw/bitmaps/stthelp.png +0 -0
  392. wx/demo/agw/bitmaps/view1.png +0 -0
  393. wx/demo/agw/bitmaps/view2.png +0 -0
  394. wx/demo/agw/bitmaps/view_choose.png +0 -0
  395. wx/demo/agw/bitmaps/view_detailed.png +0 -0
  396. wx/demo/agw/bitmaps/view_icon.png +0 -0
  397. wx/demo/agw/bitmaps/view_multicolumn.png +0 -0
  398. wx/demo/agw/bitmaps/viewmag-16.png +0 -0
  399. wx/demo/agw/bitmaps/viewmag-m-16.png +0 -0
  400. wx/demo/agw/bitmaps/viewmag-p-16.png +0 -0
  401. wx/demo/agw/bitmaps/viewmagfit-16.png +0 -0
  402. wx/demo/agw/data/Example_1.xls +0 -0
  403. wx/demo/agw/images.py +6714 -0
  404. wx/demo/bitmaps/AG00028_.gif +0 -0
  405. wx/demo/bitmaps/AG00039_.gif +0 -0
  406. wx/demo/bitmaps/AG00178_.gif +0 -0
  407. wx/demo/bitmaps/AG00183_.gif +0 -0
  408. wx/demo/bitmaps/AG00185_.gif +0 -0
  409. wx/demo/bitmaps/BD13656_.gif +0 -0
  410. wx/demo/bitmaps/advancedsplash.png +0 -0
  411. wx/demo/bitmaps/aquabutton.png +0 -0
  412. wx/demo/bitmaps/aquachecked.ico +0 -0
  413. wx/demo/bitmaps/aquaflagged.ico +0 -0
  414. wx/demo/bitmaps/aquanotchecked.ico +0 -0
  415. wx/demo/bitmaps/aquanotflagged.ico +0 -0
  416. wx/demo/bitmaps/canada.gif +0 -0
  417. wx/demo/bitmaps/checked.ico +0 -0
  418. wx/demo/bitmaps/columns.png +0 -0
  419. wx/demo/bitmaps/contexthelp-16.png +0 -0
  420. wx/demo/bitmaps/contexthelp.png +0 -0
  421. wx/demo/bitmaps/copy.png +0 -0
  422. wx/demo/bitmaps/cropshot24x20.png +0 -0
  423. wx/demo/bitmaps/cut.png +0 -0
  424. wx/demo/bitmaps/editcopy.png +0 -0
  425. wx/demo/bitmaps/editcut.png +0 -0
  426. wx/demo/bitmaps/editpaste.png +0 -0
  427. wx/demo/bitmaps/exit-16.png +0 -0
  428. wx/demo/bitmaps/exit.ico +0 -0
  429. wx/demo/bitmaps/ffwd.png +0 -0
  430. wx/demo/bitmaps/ffwddisabled.png +0 -0
  431. wx/demo/bitmaps/field-16.png +0 -0
  432. wx/demo/bitmaps/filenew.png +0 -0
  433. wx/demo/bitmaps/fileopen.png +0 -0
  434. wx/demo/bitmaps/filesave.png +0 -0
  435. wx/demo/bitmaps/flagged.ico +0 -0
  436. wx/demo/bitmaps/folder_new.png +0 -0
  437. wx/demo/bitmaps/ghost.png +0 -0
  438. wx/demo/bitmaps/gradientbutton.png +0 -0
  439. wx/demo/bitmaps/help-16.png +0 -0
  440. wx/demo/bitmaps/help.ico +0 -0
  441. wx/demo/bitmaps/honeycomb300.png +0 -0
  442. wx/demo/bitmaps/image.bmp +0 -0
  443. wx/demo/bitmaps/image.gif +0 -0
  444. wx/demo/bitmaps/image.ico +0 -0
  445. wx/demo/bitmaps/image.jpg +0 -0
  446. wx/demo/bitmaps/image.png +0 -0
  447. wx/demo/bitmaps/image.tif +0 -0
  448. wx/demo/bitmaps/italy.gif +0 -0
  449. wx/demo/bitmaps/lbadd.png +0 -0
  450. wx/demo/bitmaps/lbcharge.png +0 -0
  451. wx/demo/bitmaps/lbdecrypted.png +0 -0
  452. wx/demo/bitmaps/lbnews.png +0 -0
  453. wx/demo/bitmaps/lbroll.png +0 -0
  454. wx/demo/bitmaps/minus1.ico +0 -0
  455. wx/demo/bitmaps/minus2.ico +0 -0
  456. wx/demo/bitmaps/minus3.ico +0 -0
  457. wx/demo/bitmaps/minus4.ico +0 -0
  458. wx/demo/bitmaps/minus5.ico +0 -0
  459. wx/demo/bitmaps/month-16.png +0 -0
  460. wx/demo/bitmaps/new_file.png +0 -0
  461. wx/demo/bitmaps/new_folder.png +0 -0
  462. wx/demo/bitmaps/notchecked.ico +0 -0
  463. wx/demo/bitmaps/notflagged.ico +0 -0
  464. wx/demo/bitmaps/ok-16.png +0 -0
  465. wx/demo/bitmaps/open_folder.png +0 -0
  466. wx/demo/bitmaps/paste.png +0 -0
  467. wx/demo/bitmaps/pause.png +0 -0
  468. wx/demo/bitmaps/pausedisabled.png +0 -0
  469. wx/demo/bitmaps/phoenix_title.png +0 -0
  470. wx/demo/bitmaps/phoenix_top.png +0 -0
  471. wx/demo/bitmaps/play.png +0 -0
  472. wx/demo/bitmaps/playdisabled.png +0 -0
  473. wx/demo/bitmaps/plus1.ico +0 -0
  474. wx/demo/bitmaps/plus2.ico +0 -0
  475. wx/demo/bitmaps/plus3.ico +0 -0
  476. wx/demo/bitmaps/plus4.ico +0 -0
  477. wx/demo/bitmaps/plus5.ico +0 -0
  478. wx/demo/bitmaps/record.png +0 -0
  479. wx/demo/bitmaps/recorddisabled.png +0 -0
  480. wx/demo/bitmaps/rewind.png +0 -0
  481. wx/demo/bitmaps/rewinddisabled.png +0 -0
  482. wx/demo/bitmaps/round.png +0 -0
  483. wx/demo/bitmaps/save.png +0 -0
  484. wx/demo/bitmaps/smfuel.ico +0 -0
  485. wx/demo/bitmaps/smpi.ico +0 -0
  486. wx/demo/bitmaps/smtemp.ico +0 -0
  487. wx/demo/bitmaps/snakey_render.png +0 -0
  488. wx/demo/bitmaps/splash.png +0 -0
  489. wx/demo/bitmaps/stop.png +0 -0
  490. wx/demo/bitmaps/stopdisabled.png +0 -0
  491. wx/demo/bitmaps/sttbutton.png +0 -0
  492. wx/demo/bitmaps/sttfont.png +0 -0
  493. wx/demo/bitmaps/sttheader.png +0 -0
  494. wx/demo/bitmaps/stthelp.png +0 -0
  495. wx/demo/bitmaps/toucan.png +0 -0
  496. wx/demo/bitmaps/view1.png +0 -0
  497. wx/demo/bitmaps/view2.png +0 -0
  498. wx/demo/bitmaps/view_choose.png +0 -0
  499. wx/demo/bitmaps/view_detailed.png +0 -0
  500. wx/demo/bitmaps/view_icon.png +0 -0
  501. wx/demo/bitmaps/view_multicolumn.png +0 -0
  502. wx/demo/bitmaps/viewmag-16.png +0 -0
  503. wx/demo/bitmaps/viewmag-m-16.png +0 -0
  504. wx/demo/bitmaps/viewmag-p-16.png +0 -0
  505. wx/demo/bitmaps/viewmagfit-16.png +0 -0
  506. wx/demo/bmp_source/001.png +0 -0
  507. wx/demo/bmp_source/002.png +0 -0
  508. wx/demo/bmp_source/003.png +0 -0
  509. wx/demo/bmp_source/004.png +0 -0
  510. wx/demo/bmp_source/005.png +0 -0
  511. wx/demo/bmp_source/006.png +0 -0
  512. wx/demo/bmp_source/007.png +0 -0
  513. wx/demo/bmp_source/008.png +0 -0
  514. wx/demo/bmp_source/009.png +0 -0
  515. wx/demo/bmp_source/010.png +0 -0
  516. wx/demo/bmp_source/011.png +0 -0
  517. wx/demo/bmp_source/012.png +0 -0
  518. wx/demo/bmp_source/013.png +0 -0
  519. wx/demo/bmp_source/014.png +0 -0
  520. wx/demo/bmp_source/015.png +0 -0
  521. wx/demo/bmp_source/016.png +0 -0
  522. wx/demo/bmp_source/017.png +0 -0
  523. wx/demo/bmp_source/018.png +0 -0
  524. wx/demo/bmp_source/019.png +0 -0
  525. wx/demo/bmp_source/020.png +0 -0
  526. wx/demo/bmp_source/021.png +0 -0
  527. wx/demo/bmp_source/022.png +0 -0
  528. wx/demo/bmp_source/023.png +0 -0
  529. wx/demo/bmp_source/024.png +0 -0
  530. wx/demo/bmp_source/025.png +0 -0
  531. wx/demo/bmp_source/026.png +0 -0
  532. wx/demo/bmp_source/027.png +0 -0
  533. wx/demo/bmp_source/028.png +0 -0
  534. wx/demo/bmp_source/029.png +0 -0
  535. wx/demo/bmp_source/030.png +0 -0
  536. wx/demo/bmp_source/DbDec.bmp +0 -0
  537. wx/demo/bmp_source/DbInc.bmp +0 -0
  538. wx/demo/bmp_source/Dec.bmp +0 -0
  539. wx/demo/bmp_source/FRM_0.png +0 -0
  540. wx/demo/bmp_source/FRM_1.png +0 -0
  541. wx/demo/bmp_source/FRM_2.png +0 -0
  542. wx/demo/bmp_source/FRM_3.png +0 -0
  543. wx/demo/bmp_source/FRM_4.png +0 -0
  544. wx/demo/bmp_source/FRM_5.png +0 -0
  545. wx/demo/bmp_source/FRM_6.png +0 -0
  546. wx/demo/bmp_source/FRM_7.png +0 -0
  547. wx/demo/bmp_source/FRM_8.png +0 -0
  548. wx/demo/bmp_source/GridBG.gif +0 -0
  549. wx/demo/bmp_source/Inc.bmp +0 -0
  550. wx/demo/bmp_source/LB01.png +0 -0
  551. wx/demo/bmp_source/LB02.png +0 -0
  552. wx/demo/bmp_source/LB03.png +0 -0
  553. wx/demo/bmp_source/LB04.png +0 -0
  554. wx/demo/bmp_source/LB05.png +0 -0
  555. wx/demo/bmp_source/LB06.png +0 -0
  556. wx/demo/bmp_source/LB07.png +0 -0
  557. wx/demo/bmp_source/LB08.png +0 -0
  558. wx/demo/bmp_source/LB09.png +0 -0
  559. wx/demo/bmp_source/LB10.png +0 -0
  560. wx/demo/bmp_source/LB11.png +0 -0
  561. wx/demo/bmp_source/LB12.png +0 -0
  562. wx/demo/bmp_source/Pt.bmp +0 -0
  563. wx/demo/bmp_source/Vippi.png +0 -0
  564. wx/demo/bmp_source/backgrnd.png +0 -0
  565. wx/demo/bmp_source/book.png +0 -0
  566. wx/demo/bmp_source/book_blue.png +0 -0
  567. wx/demo/bmp_source/book_green.png +0 -0
  568. wx/demo/bmp_source/book_red.png +0 -0
  569. wx/demo/bmp_source/bp_btn1.png +0 -0
  570. wx/demo/bmp_source/bp_btn2.png +0 -0
  571. wx/demo/bmp_source/bp_btn3.png +0 -0
  572. wx/demo/bmp_source/bp_btn4.png +0 -0
  573. wx/demo/bmp_source/bulb1.bmp +0 -0
  574. wx/demo/bmp_source/bulb2.bmp +0 -0
  575. wx/demo/bmp_source/carrot.png +0 -0
  576. wx/demo/bmp_source/clipboard.png +0 -0
  577. wx/demo/bmp_source/code.png +0 -0
  578. wx/demo/bmp_source/core.png +0 -0
  579. wx/demo/bmp_source/custom.png +0 -0
  580. wx/demo/bmp_source/customcontrol.png +0 -0
  581. wx/demo/bmp_source/deletedocs.png +0 -0
  582. wx/demo/bmp_source/deleteperspective.png +0 -0
  583. wx/demo/bmp_source/demo.png +0 -0
  584. wx/demo/bmp_source/dialog.png +0 -0
  585. wx/demo/bmp_source/exit.png +0 -0
  586. wx/demo/bmp_source/expansion.png +0 -0
  587. wx/demo/bmp_source/find.png +0 -0
  588. wx/demo/bmp_source/findnext.png +0 -0
  589. wx/demo/bmp_source/floatcanvas.png +0 -0
  590. wx/demo/bmp_source/frame.png +0 -0
  591. wx/demo/bmp_source/images.png +0 -0
  592. wx/demo/bmp_source/inspect.png +0 -0
  593. wx/demo/bmp_source/layout.png +0 -0
  594. wx/demo/bmp_source/logo.png +0 -0
  595. wx/demo/bmp_source/miscellaneous.png +0 -0
  596. wx/demo/bmp_source/modifiedexists.png +0 -0
  597. wx/demo/bmp_source/mondrian.ico +0 -0
  598. wx/demo/bmp_source/morecontrols.png +0 -0
  599. wx/demo/bmp_source/moredialog.png +0 -0
  600. wx/demo/bmp_source/noicon.png +0 -0
  601. wx/demo/bmp_source/overview.png +0 -0
  602. wx/demo/bmp_source/pencil.png +0 -0
  603. wx/demo/bmp_source/pointy.png +0 -0
  604. wx/demo/bmp_source/process.png +0 -0
  605. wx/demo/bmp_source/pyshell.png +0 -0
  606. wx/demo/bmp_source/recent.png +0 -0
  607. wx/demo/bmp_source/rest.png +0 -0
  608. wx/demo/bmp_source/robin.jpg +0 -0
  609. wx/demo/bmp_source/rt_alignleft.xpm +24 -0
  610. wx/demo/bmp_source/rt_alignright.xpm +24 -0
  611. wx/demo/bmp_source/rt_bold.xpm +24 -0
  612. wx/demo/bmp_source/rt_centre.xpm +24 -0
  613. wx/demo/bmp_source/rt_colour.xpm +59 -0
  614. wx/demo/bmp_source/rt_copy.xpm +44 -0
  615. wx/demo/bmp_source/rt_cut.xpm +46 -0
  616. wx/demo/bmp_source/rt_font.xpm +25 -0
  617. wx/demo/bmp_source/rt_idea.xpm +47 -0
  618. wx/demo/bmp_source/rt_indentless.xpm +25 -0
  619. wx/demo/bmp_source/rt_indentmore.xpm +25 -0
  620. wx/demo/bmp_source/rt_italic.xpm +25 -0
  621. wx/demo/bmp_source/rt_open.xpm +57 -0
  622. wx/demo/bmp_source/rt_paste.xpm +46 -0
  623. wx/demo/bmp_source/rt_redo.xpm +58 -0
  624. wx/demo/bmp_source/rt_sample.xpm +44 -0
  625. wx/demo/bmp_source/rt_save.xpm +42 -0
  626. wx/demo/bmp_source/rt_smiley.xpm +42 -0
  627. wx/demo/bmp_source/rt_underline.xpm +25 -0
  628. wx/demo/bmp_source/rt_undo.xpm +58 -0
  629. wx/demo/bmp_source/rt_zebra.xpm +409 -0
  630. wx/demo/bmp_source/saveperspective.png +0 -0
  631. wx/demo/bmp_source/sm_down.bmp +0 -0
  632. wx/demo/bmp_source/sm_up.bmp +0 -0
  633. wx/demo/bmp_source/smiles2.bmp +0 -0
  634. wx/demo/bmp_source/test2.bmp +0 -0
  635. wx/demo/bmp_source/testmask.bmp +0 -0
  636. wx/demo/bmp_source/teststar.png +0 -0
  637. wx/demo/bmp_source/thekid.png +0 -0
  638. wx/demo/bmp_source/tog1.bmp +0 -0
  639. wx/demo/bmp_source/tog2.bmp +0 -0
  640. wx/demo/bmp_source/wiztest1.bmp +0 -0
  641. wx/demo/bmp_source/wiztest2.bmp +0 -0
  642. wx/demo/bmp_source/wxpdemo.ico +0 -0
  643. wx/demo/cursors/paperairplane_arrow_blue.cur +0 -0
  644. wx/demo/cursors/paperairplane_arrow_blue_fadeout80.cur +0 -0
  645. wx/demo/cursors/paperairplane_arrow_colorshift.ani +0 -0
  646. wx/demo/cursors/paperairplane_arrow_dark.cur +0 -0
  647. wx/demo/cursors/paperairplane_arrow_grey.cur +0 -0
  648. wx/demo/cursors/paperairplane_arrow_red.cur +0 -0
  649. wx/demo/cursors/paperairplane_arrow_white.cur +0 -0
  650. wx/demo/cursors/paperairplane_arrow_white24.png +0 -0
  651. wx/demo/data/0-tiger.svg +725 -0
  652. wx/demo/data/Asteroid_blaster.swf +0 -0
  653. wx/demo/data/SIL_OPEN_FONT_LICENSE.txt +97 -0
  654. wx/demo/data/SourceCodePro-Regular.ttf +0 -0
  655. wx/demo/data/accessories-calculator.svg +636 -0
  656. wx/demo/data/accessories-text-editor.svg +554 -0
  657. wx/demo/data/anykey.wav +0 -0
  658. wx/demo/data/applications-internet.svg +623 -0
  659. wx/demo/data/desktop-accessibility.svg +245 -0
  660. wx/demo/data/desktop-keyboard-shortcuts.svg +839 -0
  661. wx/demo/data/desktop-locale.svg +878 -0
  662. wx/demo/data/desktop-remote-desktop.svg +1479 -0
  663. wx/demo/data/desktop-theme.svg +882 -0
  664. wx/demo/data/desktop-wallpaper.svg +747 -0
  665. wx/demo/data/echo.py +25 -0
  666. wx/demo/data/imagemap.htm +20 -0
  667. wx/demo/data/imagemap.png +0 -0
  668. wx/demo/data/internet-group-chat.svg +312 -0
  669. wx/demo/data/internet-mail.svg +440 -0
  670. wx/demo/data/locale/af/LC_MESSAGES/wxpydemo.mo +0 -0
  671. wx/demo/data/locale/de/LC_MESSAGES/wxpydemo.mo +0 -0
  672. wx/demo/data/locale/es/LC_MESSAGES/wxpydemo.mo +0 -0
  673. wx/demo/data/locale/fr/LC_MESSAGES/wxpydemo.mo +0 -0
  674. wx/demo/data/locale/it/LC_MESSAGES/wxpydemo.mo +0 -0
  675. wx/demo/data/locale-src/af.po +23 -0
  676. wx/demo/data/locale-src/de.po +23 -0
  677. wx/demo/data/locale-src/es.po +22 -0
  678. wx/demo/data/locale-src/fr.po +22 -0
  679. wx/demo/data/locale-src/install +15 -0
  680. wx/demo/data/locale-src/it.po +23 -0
  681. wx/demo/data/locale-src/wxpydemo.po +21 -0
  682. wx/demo/data/office-calendar.svg +316 -0
  683. wx/demo/data/pic.png +0 -0
  684. wx/demo/data/pic2.bmp +0 -0
  685. wx/demo/data/plan.wav +0 -0
  686. wx/demo/data/proclamation.txt +115 -0
  687. wx/demo/data/resource.wdr +0 -0
  688. wx/demo/data/resource_wdr.xrc +146 -0
  689. wx/demo/data/romedalen.png +0 -0
  690. wx/demo/data/stc.h.html +3544 -0
  691. wx/demo/data/system-session.svg +510 -0
  692. wx/demo/data/system-users.svg +539 -0
  693. wx/demo/data/tables.htm +116 -0
  694. wx/demo/data/test-gradient-pen.svg +14 -0
  695. wx/demo/data/test-opacity.svg +7 -0
  696. wx/demo/data/test.htm +253 -0
  697. wx/demo/data/testmovie.mpg +0 -0
  698. wx/demo/data/testtable.txt +38 -0
  699. wx/demo/data/tips.txt +73 -0
  700. wx/demo/data/utilities-system-monitor.svg +435 -0
  701. wx/demo/data/utilities-terminal.svg +500 -0
  702. wx/demo/data/widgetTest.htm +70 -0
  703. wx/demo/data/world.dat +24055 -0
  704. wx/demo/demo.py +4 -0
  705. wx/demo/demo.pyw +4 -0
  706. wx/demo/demodata.py +310 -0
  707. wx/demo/encode_bitmaps.py +181 -0
  708. wx/demo/images.py +6812 -0
  709. wx/demo/infoframe.py +149 -0
  710. wx/demo/run.py +171 -0
  711. wx/demo/snippets/__init__.py +13 -0
  712. wx/demo/snippets/arc.py +21 -0
  713. wx/demo/snippets/arc_negative.py +21 -0
  714. wx/demo/snippets/clip.py +13 -0
  715. wx/demo/snippets/clip_image.py +13 -0
  716. wx/demo/snippets/curve_rectangle.py +53 -0
  717. wx/demo/snippets/curve_to.py +17 -0
  718. wx/demo/snippets/dash.py +18 -0
  719. wx/demo/snippets/ellipse.py +33 -0
  720. wx/demo/snippets/fill_and_stroke.py +12 -0
  721. wx/demo/snippets/fill_and_stroke2.py +18 -0
  722. wx/demo/snippets/fill_style.py +31 -0
  723. wx/demo/snippets/glyph_path.py +21 -0
  724. wx/demo/snippets/gradient.py +16 -0
  725. wx/demo/snippets/gradient_mask.py +12 -0
  726. wx/demo/snippets/group.py +16 -0
  727. wx/demo/snippets/image.py +14 -0
  728. wx/demo/snippets/imagepattern.py +23 -0
  729. wx/demo/snippets/path.py +7 -0
  730. wx/demo/snippets/set_line_cap.py +19 -0
  731. wx/demo/snippets/set_line_join.py +21 -0
  732. wx/demo/snippets/show_glyphs.py +15 -0
  733. wx/demo/snippets/text.py +22 -0
  734. wx/demo/snippets/text_align_center.py +26 -0
  735. wx/demo/snippets/text_extents.py +27 -0
  736. wx/demo/template.py +36 -0
  737. wx/demo/throbImages.py +1277 -0
  738. wx/demo/version.py +3 -0
  739. wx/demo/widgetTest.py +72 -0
  740. wx/demo/wxpdemo.ico +0 -0
  741. wx/glcanvas.py +10 -0
  742. wx/glcanvas.pyi +458 -0
  743. wx/grid.py +229 -0
  744. wx/grid.pyi +4959 -0
  745. wx/html.py +35 -0
  746. wx/html.pyi +2965 -0
  747. wx/html2.py +40 -0
  748. wx/html2.pyi +772 -0
  749. wx/lib/CDate.py +202 -0
  750. wx/lib/ClickableHtmlWindow.py +57 -0
  751. wx/lib/__init__.py +0 -0
  752. wx/lib/activex.py +178 -0
  753. wx/lib/activexwrapper.py +153 -0
  754. wx/lib/agw/__init__.py +128 -0
  755. wx/lib/agw/advancedsplash.py +564 -0
  756. wx/lib/agw/aquabutton.py +1127 -0
  757. wx/lib/agw/artmanager.py +2110 -0
  758. wx/lib/agw/aui/__init__.py +295 -0
  759. wx/lib/agw/aui/aui_constants.py +2628 -0
  760. wx/lib/agw/aui/aui_switcherdialog.py +1227 -0
  761. wx/lib/agw/aui/aui_utilities.py +672 -0
  762. wx/lib/agw/aui/auibar.py +4031 -0
  763. wx/lib/agw/aui/auibook.py +6289 -0
  764. wx/lib/agw/aui/dockart.py +1198 -0
  765. wx/lib/agw/aui/framemanager.py +10409 -0
  766. wx/lib/agw/aui/tabart.py +2771 -0
  767. wx/lib/agw/aui/tabmdi.py +679 -0
  768. wx/lib/agw/balloontip.py +1158 -0
  769. wx/lib/agw/buttonpanel.py +2823 -0
  770. wx/lib/agw/cubecolourdialog.py +3529 -0
  771. wx/lib/agw/customtreectrl.py +8963 -0
  772. wx/lib/agw/data/ShortcutEditor_1.png +0 -0
  773. wx/lib/agw/data/ShortcutEditor_1_thumb.png +0 -0
  774. wx/lib/agw/data/ShortcutEditor_2.png +0 -0
  775. wx/lib/agw/data/ShortcutEditor_2_thumb.png +0 -0
  776. wx/lib/agw/data/ShortcutEditor_3.png +0 -0
  777. wx/lib/agw/data/ShortcutEditor_3_thumb.png +0 -0
  778. wx/lib/agw/data/ShortcutEditor_4.png +0 -0
  779. wx/lib/agw/data/ShortcutEditor_4_thumb.png +0 -0
  780. wx/lib/agw/data/default_help_text.html +105 -0
  781. wx/lib/agw/flatmenu.py +7333 -0
  782. wx/lib/agw/flatnotebook.py +6672 -0
  783. wx/lib/agw/floatspin.py +1823 -0
  784. wx/lib/agw/fmcustomizedlg.py +540 -0
  785. wx/lib/agw/fmresources.py +407 -0
  786. wx/lib/agw/foldpanelbar.py +2282 -0
  787. wx/lib/agw/fourwaysplitter.py +1130 -0
  788. wx/lib/agw/genericmessagedialog.py +1549 -0
  789. wx/lib/agw/gradientbutton.py +732 -0
  790. wx/lib/agw/hyperlink.py +664 -0
  791. wx/lib/agw/hypertreelist.py +5374 -0
  792. wx/lib/agw/infobar.py +885 -0
  793. wx/lib/agw/knobctrl.py +945 -0
  794. wx/lib/agw/labelbook.py +3029 -0
  795. wx/lib/agw/multidirdialog.py +615 -0
  796. wx/lib/agw/peakmeter.py +1029 -0
  797. wx/lib/agw/persist/__init__.py +188 -0
  798. wx/lib/agw/persist/persist_constants.py +284 -0
  799. wx/lib/agw/persist/persist_handlers.py +2614 -0
  800. wx/lib/agw/persist/persistencemanager.py +864 -0
  801. wx/lib/agw/piectrl.py +1082 -0
  802. wx/lib/agw/pybusyinfo.py +399 -0
  803. wx/lib/agw/pycollapsiblepane.py +940 -0
  804. wx/lib/agw/pygauge.py +570 -0
  805. wx/lib/agw/pyprogress.py +917 -0
  806. wx/lib/agw/ribbon/__init__.py +198 -0
  807. wx/lib/agw/ribbon/art.py +219 -0
  808. wx/lib/agw/ribbon/art_aui.py +1284 -0
  809. wx/lib/agw/ribbon/art_default.py +81 -0
  810. wx/lib/agw/ribbon/art_internal.py +244 -0
  811. wx/lib/agw/ribbon/art_msw.py +2736 -0
  812. wx/lib/agw/ribbon/art_osx.py +52 -0
  813. wx/lib/agw/ribbon/bar.py +1261 -0
  814. wx/lib/agw/ribbon/buttonbar.py +1320 -0
  815. wx/lib/agw/ribbon/control.py +205 -0
  816. wx/lib/agw/ribbon/gallery.py +974 -0
  817. wx/lib/agw/ribbon/page.py +946 -0
  818. wx/lib/agw/ribbon/panel.py +1170 -0
  819. wx/lib/agw/ribbon/toolbar.py +1442 -0
  820. wx/lib/agw/rulerctrl.py +1887 -0
  821. wx/lib/agw/scrolledthumbnail.py +2119 -0
  822. wx/lib/agw/shapedbutton.py +1809 -0
  823. wx/lib/agw/shortcuteditor.py +2634 -0
  824. wx/lib/agw/speedmeter.py +1801 -0
  825. wx/lib/agw/supertooltip.py +1444 -0
  826. wx/lib/agw/thumbnailctrl.py +529 -0
  827. wx/lib/agw/toasterbox.py +1327 -0
  828. wx/lib/agw/ultimatelistctrl.py +13666 -0
  829. wx/lib/agw/xlsgrid.py +2113 -0
  830. wx/lib/agw/zoombar.py +1339 -0
  831. wx/lib/analogclock/__init__.py +140 -0
  832. wx/lib/analogclock/analogclock.py +631 -0
  833. wx/lib/analogclock/helpers.py +991 -0
  834. wx/lib/analogclock/lib_setup/__init__.py +0 -0
  835. wx/lib/analogclock/lib_setup/buttontreectrlpanel.py +297 -0
  836. wx/lib/analogclock/lib_setup/fontselect.py +57 -0
  837. wx/lib/analogclock/setup.py +490 -0
  838. wx/lib/analogclock/styles.py +47 -0
  839. wx/lib/anchors.py +103 -0
  840. wx/lib/art/__init__.py +4 -0
  841. wx/lib/art/flagart.py +1583 -0
  842. wx/lib/art/img2pyartprov.py +56 -0
  843. wx/lib/busy.py +146 -0
  844. wx/lib/buttons.py +1141 -0
  845. wx/lib/calendar.py +1597 -0
  846. wx/lib/checkbox.py +837 -0
  847. wx/lib/colourchooser/__init__.py +38 -0
  848. wx/lib/colourchooser/canvas.py +145 -0
  849. wx/lib/colourchooser/intl.py +24 -0
  850. wx/lib/colourchooser/pycolourbox.py +89 -0
  851. wx/lib/colourchooser/pycolourchooser.py +629 -0
  852. wx/lib/colourchooser/pycolourslider.py +100 -0
  853. wx/lib/colourchooser/pypalette.py +211 -0
  854. wx/lib/colourdb.py +740 -0
  855. wx/lib/colourselect.py +385 -0
  856. wx/lib/colourutils.py +118 -0
  857. wx/lib/combotreebox.py +944 -0
  858. wx/lib/delayedresult.py +420 -0
  859. wx/lib/dialogs.py +510 -0
  860. wx/lib/docview.py +3210 -0
  861. wx/lib/dragscroller.py +79 -0
  862. wx/lib/editor/README.txt +77 -0
  863. wx/lib/editor/__init__.py +24 -0
  864. wx/lib/editor/editor.py +974 -0
  865. wx/lib/editor/images.py +15 -0
  866. wx/lib/editor/selection.py +44 -0
  867. wx/lib/embeddedimage.py +76 -0
  868. wx/lib/eventStack.py +136 -0
  869. wx/lib/eventwatcher.py +440 -0
  870. wx/lib/evtmgr.py +521 -0
  871. wx/lib/expando.py +393 -0
  872. wx/lib/fancytext.py +505 -0
  873. wx/lib/filebrowsebutton.py +459 -0
  874. wx/lib/flashwin.py +262 -0
  875. wx/lib/flashwin_old.py +651 -0
  876. wx/lib/floatcanvas/FCEvents.py +53 -0
  877. wx/lib/floatcanvas/FCObjects.py +2923 -0
  878. wx/lib/floatcanvas/FloatCanvas.py +1027 -0
  879. wx/lib/floatcanvas/GUIMode.py +396 -0
  880. wx/lib/floatcanvas/NavCanvas.py +161 -0
  881. wx/lib/floatcanvas/Resources.py +319 -0
  882. wx/lib/floatcanvas/ScreenShot.py +1788 -0
  883. wx/lib/floatcanvas/Utilities/BBox.py +314 -0
  884. wx/lib/floatcanvas/Utilities/Colors.py +137 -0
  885. wx/lib/floatcanvas/Utilities/GUI.py +91 -0
  886. wx/lib/floatcanvas/Utilities/__init__.py +7 -0
  887. wx/lib/floatcanvas/__init__.py +124 -0
  888. wx/lib/foldmenu.py +89 -0
  889. wx/lib/gestures.py +310 -0
  890. wx/lib/gizmos/__init__.py +18 -0
  891. wx/lib/gizmos/dynamicsash.py +1202 -0
  892. wx/lib/gizmos/ledctrl.py +300 -0
  893. wx/lib/gizmos/treelistctrl.py +87 -0
  894. wx/lib/graphics.py +1939 -0
  895. wx/lib/gridmovers.py +511 -0
  896. wx/lib/iewin.py +249 -0
  897. wx/lib/iewin_old.py +894 -0
  898. wx/lib/imagebrowser.py +856 -0
  899. wx/lib/imageutils.py +163 -0
  900. wx/lib/infoframe.py +490 -0
  901. wx/lib/inspection.py +1255 -0
  902. wx/lib/intctrl.py +1001 -0
  903. wx/lib/itemspicker.py +256 -0
  904. wx/lib/langlistctrl.py +480 -0
  905. wx/lib/layoutf.py +271 -0
  906. wx/lib/masked/__init__.py +27 -0
  907. wx/lib/masked/combobox.py +839 -0
  908. wx/lib/masked/ctrl.py +108 -0
  909. wx/lib/masked/ipaddrctrl.py +242 -0
  910. wx/lib/masked/maskededit.py +7279 -0
  911. wx/lib/masked/numctrl.py +2001 -0
  912. wx/lib/masked/textctrl.py +465 -0
  913. wx/lib/masked/timectrl.py +1466 -0
  914. wx/lib/mixins/__init__.py +17 -0
  915. wx/lib/mixins/grid.py +47 -0
  916. wx/lib/mixins/gridlabelrenderer.py +251 -0
  917. wx/lib/mixins/imagelist.py +77 -0
  918. wx/lib/mixins/inspection.py +184 -0
  919. wx/lib/mixins/listctrl.py +894 -0
  920. wx/lib/mixins/rubberband.py +404 -0
  921. wx/lib/mixins/treemixin.py +678 -0
  922. wx/lib/msgpanel.py +95 -0
  923. wx/lib/multisash.py +747 -0
  924. wx/lib/myole4ax.idl +178 -0
  925. wx/lib/myole4ax.tlb +0 -0
  926. wx/lib/newevent.py +229 -0
  927. wx/lib/nvdlg.py +156 -0
  928. wx/lib/ogl/__init__.py +13 -0
  929. wx/lib/ogl/basic.py +3991 -0
  930. wx/lib/ogl/bmpshape.py +87 -0
  931. wx/lib/ogl/canvas.py +467 -0
  932. wx/lib/ogl/composit.py +1577 -0
  933. wx/lib/ogl/diagram.py +230 -0
  934. wx/lib/ogl/divided.py +483 -0
  935. wx/lib/ogl/drawn.py +900 -0
  936. wx/lib/ogl/lines.py +1811 -0
  937. wx/lib/ogl/oglmisc.py +608 -0
  938. wx/lib/pdfviewer/__init__.py +113 -0
  939. wx/lib/pdfviewer/bitmaps/ArrowLeft.png +0 -0
  940. wx/lib/pdfviewer/bitmaps/ArrowRight.png +0 -0
  941. wx/lib/pdfviewer/bitmaps/DirectionH.png +0 -0
  942. wx/lib/pdfviewer/bitmaps/DirectionV.png +0 -0
  943. wx/lib/pdfviewer/bitmaps/PlayerFirst.png +0 -0
  944. wx/lib/pdfviewer/bitmaps/PlayerLast.png +0 -0
  945. wx/lib/pdfviewer/bitmaps/PlayerNext.png +0 -0
  946. wx/lib/pdfviewer/bitmaps/PlayerPrev.png +0 -0
  947. wx/lib/pdfviewer/bitmaps/Printer.png +0 -0
  948. wx/lib/pdfviewer/bitmaps/ReadMe.txt +28 -0
  949. wx/lib/pdfviewer/bitmaps/Save.png +0 -0
  950. wx/lib/pdfviewer/bitmaps/ZoomIn.png +0 -0
  951. wx/lib/pdfviewer/bitmaps/ZoomOut.png +0 -0
  952. wx/lib/pdfviewer/bitmaps/encode_bitmaps.py +37 -0
  953. wx/lib/pdfviewer/buttonpanel.py +279 -0
  954. wx/lib/pdfviewer/images.py +240 -0
  955. wx/lib/pdfviewer/viewer.py +1077 -0
  956. wx/lib/pdfwin.py +295 -0
  957. wx/lib/pdfwin_old.py +789 -0
  958. wx/lib/platebtn.py +789 -0
  959. wx/lib/plot/CHANGELOG.md +150 -0
  960. wx/lib/plot/README.md +16 -0
  961. wx/lib/plot/__init__.py +46 -0
  962. wx/lib/plot/__main__.py +5 -0
  963. wx/lib/plot/examples/__init__.py +0 -0
  964. wx/lib/plot/examples/demo.py +1009 -0
  965. wx/lib/plot/examples/simple_example.py +54 -0
  966. wx/lib/plot/plotcanvas.py +2981 -0
  967. wx/lib/plot/polyobjects.py +1525 -0
  968. wx/lib/plot/utils.py +327 -0
  969. wx/lib/popupctl.py +250 -0
  970. wx/lib/printout.py +1157 -0
  971. wx/lib/progressindicator.py +151 -0
  972. wx/lib/pubsub/LICENSE_BSD_Simple.txt +23 -0
  973. wx/lib/pubsub/README_WxPython.txt +22 -0
  974. wx/lib/pubsub/RELEASE_NOTES.txt +71 -0
  975. wx/lib/pubsub/__init__.py +25 -0
  976. wx/lib/pubsub/core/__init__.py +92 -0
  977. wx/lib/pubsub/core/arg1/__init__.py +16 -0
  978. wx/lib/pubsub/core/arg1/listenerimpl.py +97 -0
  979. wx/lib/pubsub/core/arg1/publisher.py +40 -0
  980. wx/lib/pubsub/core/arg1/publishermixin.py +34 -0
  981. wx/lib/pubsub/core/arg1/topicargspecimpl.py +66 -0
  982. wx/lib/pubsub/core/arg1/topicmgrimpl.py +19 -0
  983. wx/lib/pubsub/core/callables.py +191 -0
  984. wx/lib/pubsub/core/imp2.py +63 -0
  985. wx/lib/pubsub/core/itopicdefnprovider.py +0 -0
  986. wx/lib/pubsub/core/kwargs/__init__.py +16 -0
  987. wx/lib/pubsub/core/kwargs/datamsg.py +27 -0
  988. wx/lib/pubsub/core/kwargs/listenerimpl.py +93 -0
  989. wx/lib/pubsub/core/kwargs/publisher.py +77 -0
  990. wx/lib/pubsub/core/kwargs/publishermixin.py +65 -0
  991. wx/lib/pubsub/core/kwargs/topicargspecimpl.py +217 -0
  992. wx/lib/pubsub/core/kwargs/topicmgrimpl.py +13 -0
  993. wx/lib/pubsub/core/listener.py +40 -0
  994. wx/lib/pubsub/core/listenerbase.py +185 -0
  995. wx/lib/pubsub/core/notificationmgr.py +185 -0
  996. wx/lib/pubsub/core/publisherbase.py +191 -0
  997. wx/lib/pubsub/core/topicargspec.py +77 -0
  998. wx/lib/pubsub/core/topicdefnprovider.py +632 -0
  999. wx/lib/pubsub/core/topicexc.py +72 -0
  1000. wx/lib/pubsub/core/topicmgr.py +456 -0
  1001. wx/lib/pubsub/core/topicobj.py +472 -0
  1002. wx/lib/pubsub/core/topictreetraverser.py +143 -0
  1003. wx/lib/pubsub/core/topicutils.py +118 -0
  1004. wx/lib/pubsub/core/treeconfig.py +21 -0
  1005. wx/lib/pubsub/core/validatedefnargs.py +29 -0
  1006. wx/lib/pubsub/core/weakmethod.py +102 -0
  1007. wx/lib/pubsub/policies.py +24 -0
  1008. wx/lib/pubsub/pub.py +199 -0
  1009. wx/lib/pubsub/py2and3.py +608 -0
  1010. wx/lib/pubsub/setuparg1.py +47 -0
  1011. wx/lib/pubsub/setupkwargs.py +29 -0
  1012. wx/lib/pubsub/utils/__init__.py +27 -0
  1013. wx/lib/pubsub/utils/exchandling.py +100 -0
  1014. wx/lib/pubsub/utils/misc.py +100 -0
  1015. wx/lib/pubsub/utils/notification.py +331 -0
  1016. wx/lib/pubsub/utils/topictreeprinter.py +195 -0
  1017. wx/lib/pubsub/utils/xmltopicdefnprovider.py +287 -0
  1018. wx/lib/pydocview.py +3300 -0
  1019. wx/lib/rcsizer.py +229 -0
  1020. wx/lib/resizewidget.py +357 -0
  1021. wx/lib/scrolledpanel.py +225 -0
  1022. wx/lib/sheet.py +350 -0
  1023. wx/lib/sized_controls.py +691 -0
  1024. wx/lib/softwareupdate.py +361 -0
  1025. wx/lib/splitter.py +925 -0
  1026. wx/lib/statbmp.py +199 -0
  1027. wx/lib/stattext.py +322 -0
  1028. wx/lib/throbber.py +425 -0
  1029. wx/lib/ticker.py +295 -0
  1030. wx/lib/ticker_xrc.py +48 -0
  1031. wx/lib/utils.py +89 -0
  1032. wx/lib/wordwrap.py +97 -0
  1033. wx/lib/wxcairo/__init__.py +124 -0
  1034. wx/lib/wxcairo/wx_cairocffi.py +200 -0
  1035. wx/lib/wxcairo/wx_pycairo.py +463 -0
  1036. wx/lib/wxpTag.py +274 -0
  1037. wx/locale/af/LC_MESSAGES/wxstd.mo +0 -0
  1038. wx/locale/an/LC_MESSAGES/wxstd.mo +0 -0
  1039. wx/locale/ar/LC_MESSAGES/wxstd.mo +0 -0
  1040. wx/locale/ca/LC_MESSAGES/wxstd.mo +0 -0
  1041. wx/locale/ca@valencia/LC_MESSAGES/wxstd.mo +0 -0
  1042. wx/locale/cs/LC_MESSAGES/wxstd.mo +0 -0
  1043. wx/locale/da/LC_MESSAGES/wxstd.mo +0 -0
  1044. wx/locale/de/LC_MESSAGES/wxstd.mo +0 -0
  1045. wx/locale/el/LC_MESSAGES/wxstd.mo +0 -0
  1046. wx/locale/es/LC_MESSAGES/wxstd.mo +0 -0
  1047. wx/locale/eu/LC_MESSAGES/wxstd.mo +0 -0
  1048. wx/locale/fa_IR/LC_MESSAGES/wxstd.mo +0 -0
  1049. wx/locale/fi/LC_MESSAGES/wxstd.mo +0 -0
  1050. wx/locale/fr/LC_MESSAGES/wxstd.mo +0 -0
  1051. wx/locale/gl_ES/LC_MESSAGES/wxstd.mo +0 -0
  1052. wx/locale/hi/LC_MESSAGES/wxstd.mo +0 -0
  1053. wx/locale/hr/LC_MESSAGES/wxstd.mo +0 -0
  1054. wx/locale/hu/LC_MESSAGES/wxstd.mo +0 -0
  1055. wx/locale/id/LC_MESSAGES/wxstd.mo +0 -0
  1056. wx/locale/it/LC_MESSAGES/wxstd.mo +0 -0
  1057. wx/locale/ja/LC_MESSAGES/wxstd.mo +0 -0
  1058. wx/locale/ka/LC_MESSAGES/wxstd.mo +0 -0
  1059. wx/locale/ko_KR/LC_MESSAGES/wxstd.mo +0 -0
  1060. wx/locale/lt/LC_MESSAGES/wxstd.mo +0 -0
  1061. wx/locale/lv/LC_MESSAGES/wxstd.mo +0 -0
  1062. wx/locale/ms/LC_MESSAGES/wxstd.mo +0 -0
  1063. wx/locale/nb/LC_MESSAGES/wxstd.mo +0 -0
  1064. wx/locale/ne/LC_MESSAGES/wxstd.mo +0 -0
  1065. wx/locale/nl/LC_MESSAGES/wxstd.mo +0 -0
  1066. wx/locale/pl/LC_MESSAGES/wxstd.mo +0 -0
  1067. wx/locale/pt/LC_MESSAGES/wxstd.mo +0 -0
  1068. wx/locale/pt_BR/LC_MESSAGES/wxstd.mo +0 -0
  1069. wx/locale/ro/LC_MESSAGES/wxstd.mo +0 -0
  1070. wx/locale/ru/LC_MESSAGES/wxstd.mo +0 -0
  1071. wx/locale/sk/LC_MESSAGES/wxstd.mo +0 -0
  1072. wx/locale/sl/LC_MESSAGES/wxstd.mo +0 -0
  1073. wx/locale/sq/LC_MESSAGES/wxstd.mo +0 -0
  1074. wx/locale/sv/LC_MESSAGES/wxstd.mo +0 -0
  1075. wx/locale/ta/LC_MESSAGES/wxstd.mo +0 -0
  1076. wx/locale/tr/LC_MESSAGES/wxstd.mo +0 -0
  1077. wx/locale/uk/LC_MESSAGES/wxstd.mo +0 -0
  1078. wx/locale/vi/LC_MESSAGES/wxstd.mo +0 -0
  1079. wx/locale/zh_CN/LC_MESSAGES/wxstd.mo +0 -0
  1080. wx/locale/zh_TW/LC_MESSAGES/wxstd.mo +0 -0
  1081. wx/media.py +27 -0
  1082. wx/media.pyi +223 -0
  1083. wx/msw.py +13 -0
  1084. wx/msw.pyi +65 -0
  1085. wx/propgrid.py +1451 -0
  1086. wx/propgrid.pyi +7914 -0
  1087. wx/py/CHANGES.txt +796 -0
  1088. wx/py/Py.ico +0 -0
  1089. wx/py/PyAlaCarte.py +34 -0
  1090. wx/py/PyAlaMode.py +34 -0
  1091. wx/py/PyAlaModeTest.py +33 -0
  1092. wx/py/PyCrust.ico +0 -0
  1093. wx/py/PyCrust.py +78 -0
  1094. wx/py/PyCrust_16.png +0 -0
  1095. wx/py/PyCrust_32.png +0 -0
  1096. wx/py/PyFilling.py +35 -0
  1097. wx/py/PyShell.py +78 -0
  1098. wx/py/PySlices.ico +0 -0
  1099. wx/py/PySlices.py +98 -0
  1100. wx/py/PySlicesShell.py +94 -0
  1101. wx/py/PySlices_16.png +0 -0
  1102. wx/py/PySlices_32.png +0 -0
  1103. wx/py/PyWrap.py +52 -0
  1104. wx/py/README.txt +77 -0
  1105. wx/py/__init__.py +20 -0
  1106. wx/py/buffer.py +136 -0
  1107. wx/py/crust.py +403 -0
  1108. wx/py/crustslices.py +403 -0
  1109. wx/py/dispatcher.py +259 -0
  1110. wx/py/document.py +37 -0
  1111. wx/py/editor.py +844 -0
  1112. wx/py/editwindow.py +299 -0
  1113. wx/py/filling.py +357 -0
  1114. wx/py/frame.py +978 -0
  1115. wx/py/images.py +212 -0
  1116. wx/py/interpreter.py +170 -0
  1117. wx/py/introspect.py +393 -0
  1118. wx/py/magic.py +98 -0
  1119. wx/py/parse.py +134 -0
  1120. wx/py/path.py +36 -0
  1121. wx/py/pseudo.py +99 -0
  1122. wx/py/shell.py +1588 -0
  1123. wx/py/sliceshell.py +3814 -0
  1124. wx/py/tests/test_interpreter.py +71 -0
  1125. wx/py/tests/test_introspect.py +862 -0
  1126. wx/py/tests/test_pseudo.py +70 -0
  1127. wx/py/tests/test_version.py +36 -0
  1128. wx/py/tests/testall.py +22 -0
  1129. wx/py/version.py +7 -0
  1130. wx/ribbon.py +45 -0
  1131. wx/ribbon.pyi +2494 -0
  1132. wx/richtext.py +142 -0
  1133. wx/richtext.pyi +12113 -0
  1134. wx/siplib.cp313-win_amd64.pyd +0 -0
  1135. wx/stc.py +58 -0
  1136. wx/stc.pyi +8463 -0
  1137. wx/svg/__init__.py +364 -0
  1138. wx/svg/_nanosvg.cp313-win_amd64.pyd +0 -0
  1139. wx/tools/__init__.py +18 -0
  1140. wx/tools/dbg.py +268 -0
  1141. wx/tools/genaxmodule.py +50 -0
  1142. wx/tools/helpviewer.py +92 -0
  1143. wx/tools/img2img.py +85 -0
  1144. wx/tools/img2png.py +54 -0
  1145. wx/tools/img2py.py +309 -0
  1146. wx/tools/img2xpm.py +54 -0
  1147. wx/tools/pywxrc.py +949 -0
  1148. wx/tools/wxget.py +254 -0
  1149. wx/tools/wxget_docs_demo.py +186 -0
  1150. wx/wxbase315u_net_vc140_x64.dll +0 -0
  1151. wx/wxbase315u_vc140_x64.dll +0 -0
  1152. wx/wxbase315u_xml_vc140_x64.dll +0 -0
  1153. wx/wxmsw315u_adv_vc140_x64.dll +0 -0
  1154. wx/wxmsw315u_aui_vc140_x64.dll +0 -0
  1155. wx/wxmsw315u_core_vc140_x64.dll +0 -0
  1156. wx/wxmsw315u_gl_vc140_x64.dll +0 -0
  1157. wx/wxmsw315u_html_vc140_x64.dll +0 -0
  1158. wx/wxmsw315u_media_vc140_x64.dll +0 -0
  1159. wx/wxmsw315u_propgrid_vc140_x64.dll +0 -0
  1160. wx/wxmsw315u_qa_vc140_x64.dll +0 -0
  1161. wx/wxmsw315u_ribbon_vc140_x64.dll +0 -0
  1162. wx/wxmsw315u_richtext_vc140_x64.dll +0 -0
  1163. wx/wxmsw315u_stc_vc140_x64.dll +0 -0
  1164. wx/wxmsw315u_webview_vc140_x64.dll +0 -0
  1165. wx/wxmsw315u_xrc_vc140_x64.dll +0 -0
  1166. wx/xml.py +15 -0
  1167. wx/xml.pyi +575 -0
  1168. wx/xrc.py +65 -0
  1169. wx/xrc.pyi +742 -0
  1170. wxPython_zombie-3.1.5.8.dist-info/LICENSE.txt +950 -0
  1171. wxPython_zombie-3.1.5.8.dist-info/METADATA +107 -0
  1172. wxPython_zombie-3.1.5.8.dist-info/RECORD +1175 -0
  1173. wxPython_zombie-3.1.5.8.dist-info/WHEEL +5 -0
  1174. wxPython_zombie-3.1.5.8.dist-info/entry_points.txt +2 -0
  1175. wxPython_zombie-3.1.5.8.dist-info/top_level.txt +1 -0
@@ -0,0 +1,2634 @@
1
+ # --------------------------------------------------------------------------------- #
2
+ # SHORTCUTEDITOR wxPython IMPLEMENTATION
3
+ # Inspired By the GIMP Shortcut Editor.
4
+ #
5
+ # Andrea Gavana, @ 05 March 2012
6
+ # Latest Revision: 27 Dec 2012, 21.00 GMT
7
+ #
8
+ #
9
+ # TODO List
10
+ #
11
+ # 1. Check the various IDs in the KEYMAP dictionary to try and understand if all
12
+ # the possible shortcut combinations can be handled.
13
+ #
14
+ # 2. Verify that the current shortcut handling is working as advertised.
15
+ #
16
+ #
17
+ # For All Kind Of Problems, Requests Of Enhancements And Bug Reports, Please
18
+ # Write To Me At:
19
+ #
20
+ # andrea.gavana@maerskoil.com
21
+ # andrea.gavana@gmail.com
22
+ #
23
+ # Or, Obviously, To The wxPython Mailing List!!!
24
+ #
25
+ # Tags: phoenix-port, unittest, documented, py3-port
26
+ #
27
+ # End Of Comments
28
+ # --------------------------------------------------------------------------------- #
29
+
30
+
31
+ """
32
+ :class:`~wx.lib.agw.shortcuteditor.ShortcutEditor` is a widget that allows the user to customize and change keyboard
33
+ shortcuts via a dialog. It can be used to edit :class:`wx.MenuItem` shortcuts or accelerators
34
+ defined in a :class:`AcceleratorTable`.
35
+
36
+ .. note::
37
+
38
+ :class:`ShortcutEditor` **requires** the minimum AGW version 0.9.3 or the current
39
+ SVN, for the various enhancements made to the :class:`~wx.lib.agw.hypertreelist.HyperTreeList`
40
+ and :class:`~wx.lib.agw.genericmessagedialog.GenericMessageDialog`
41
+ widgets.
42
+
43
+
44
+ Description
45
+ ===========
46
+
47
+ :class:`ShortcutEditor` is a widget that allows the user to customize and change keyboard
48
+ shortcuts via a dialog. It can be used to edit :class:`wx.MenuItem` shortcuts or accelerators
49
+ defined in a :class:`AcceleratorTable`.
50
+
51
+ The interface itself is very much inpired by the GIMP shortcut editor:
52
+
53
+ http://graphicssoft.about.com/od/gimptutorials/tp/keyboard-shortcut-editor.htm
54
+
55
+ There are very few minor UI differences between :class:`ShortcutEditor` and the GIMP one,
56
+ although the behaviour should be pretty much equivalent.
57
+
58
+ Various features:
59
+
60
+ * Shortcuts are listed in a tree-like structure, pretty much reflecting a menu
61
+ hierarchy (as most of the time :class:`ShortcutEditor` is used to edit :class:`wx.MenuItem`
62
+ shortcuts);
63
+ * Accelerators defined via :class:`AcceleratorTable` are handled in a similar way;
64
+ * Support for I18N;
65
+ * Ability to restore default shortcuts/accelerators via a UI button;
66
+ * Possibility to send back the new/updated shortcuts to the original :class:`wx.MenuBar` or
67
+ the original :class:`AcceleratorTable`;
68
+ * Filters on the shortcuts label (case-insensitive);
69
+ * Basic help window with instructions (customizable via :meth:`~ShortcutEditor.SetHTMLHelpFile`), via
70
+ the ``Help`` button.
71
+
72
+ And a lot more. Check the demo for an almost complete review of the functionalities.
73
+
74
+
75
+ UI Interactions
76
+ ===============
77
+
78
+ 1. In the :class:`ShortcutEditor` dialog you can open sub-sections by clicking the small box
79
+ with a + sign in it next to each section name. In the screen grab, you can see I've
80
+ opened the *Options* sub-section as I'm going to add a keyboard shortcut to the
81
+ *OptionsItem 1* item.
82
+
83
+ .. figure:: _static/images/sphinxdocs/ShortcutEditor_1_thumb.png
84
+ :alt: Open Subsections
85
+ :figclass: floatcenter
86
+ :target: _static/images/sphinxdocs/ShortcutEditor_1.png
87
+
88
+ **Figure 1**
89
+
90
+
91
+ 2. Now you need to scroll to the tool or command that you want to edit and click on it
92
+ to select it. When selected, the text for that tool in the *Shortcut* column changes
93
+ to read 'New accelerator...' and you can press the key or combination of keys you
94
+ want to assign as a shortcut.
95
+
96
+ .. figure:: _static/images/sphinxdocs/ShortcutEditor_2_thumb.png
97
+ :alt: Assign Shortcut
98
+ :figclass: floatcenter
99
+ :target: _static/images/sphinxdocs/ShortcutEditor_2.png
100
+
101
+ **Figure 2**
102
+
103
+
104
+ 3. I've changed the *OptionsItem 1*'s keyboard shortcut to ``Shift+Ctrl+F`` by pressing
105
+ the ``Shift``, ``Ctrl`` and ``F`` keys simultaneously. If you want to remove a keyboard
106
+ shortcut from any tool or command, just click on it to select it and then when the
107
+ 'New accelerator...' text displays, press the backspace key and the text will change
108
+ to 'Disabled'.
109
+
110
+ Once you're happy that your keyboard shortcuts are set up as you wish, simply click
111
+ the ``OK`` button.
112
+
113
+ .. figure:: _static/images/sphinxdocs/ShortcutEditor_3_thumb.png
114
+ :alt: Remove/Save Shortcuts
115
+ :figclass: floatcenter
116
+ :target: _static/images/sphinxdocs/ShortcutEditor_3.png
117
+
118
+ **Figure 3**
119
+
120
+
121
+ 4. If you thought my choice of ``Shift+Ctrl+F`` was an odd selection, I chose it because
122
+ it was a keyboard combination that hadn't already been assigned to any tool or command.
123
+ If you try to assign a keyboard shortcut that is already in use, an alert will open
124
+ telling you what the shortcut is currently being used for. If you want to keep the
125
+ original shortcut, just click the ``Cancel`` button, otherwise click ``Reassign shortcut``
126
+ to make the shortcut apply to your new selection.
127
+
128
+ .. figure:: _static/images/sphinxdocs/ShortcutEditor_4_thumb.png
129
+ :alt: Reassigning Shortcuts
130
+ :figclass: floatcenter
131
+ :target: _static/images/sphinxdocs/ShortcutEditor_4.png
132
+
133
+ **Figure 4**
134
+
135
+
136
+
137
+ Base Functionalities
138
+ ====================
139
+
140
+ There are basically three ways to populate the :class:`ShortcutEditor` dialog, depending on
141
+ your needs. These approaches can be combined if needed.
142
+
143
+ 1) Use the :meth:`~ShortcutEditor.FromMenuBar` method: if you need to give your user the ability to edit
144
+ the various :class:`wx.MenuItem` shortcuts in your application, you can create :class:`ShortcutEditor`
145
+ in this way::
146
+
147
+ # Build your wx.MenuBar first!!!
148
+ # "self" is an instance of wx.TopLevelWindow
149
+
150
+ dlg = ShortcutEditor(self)
151
+ dlg.FromMenuBar(self)
152
+
153
+ # Here the user will make all the various modifications
154
+ # to the shortcuts
155
+
156
+ if dlg.ShowModal() == wx.ID_OK:
157
+ # Changes accepted, send back the new shortcuts to
158
+ # the TLW wx.MenuBar
159
+ dlg.ToMenuBar(self)
160
+
161
+ dlg.Destroy()
162
+
163
+
164
+ 2) Use the :meth:`~ShortcutEditor.FromAcceleratorTable` method: if you need to give your user the ability to edit
165
+ the various accelerators you set via :class:`AcceleratorTable` in your application, you can
166
+ create :class:`ShortcutEditor` in this way::
167
+
168
+ # Build your wx.AcceleratorTable first!!!
169
+ # "accelTable" is a list of tuples (4 elements per tuple)
170
+
171
+ accelTable = []
172
+
173
+ # Every tuple is defined in this way:
174
+
175
+ for label, flags, keyCode, cmdID in my_accelerators:
176
+ # label: the string used to show the accelerator into the ShortcutEditor dialog
177
+ # flags: a bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL, wx.ACCEL_CMD,
178
+ # or wx.ACCEL_NORMAL used to specify which modifier keys are held down
179
+ # keyCode: the keycode to be detected (i.e., ord('b'), wx.WXK_F10, etc...)
180
+ # cmdID: the menu or control command ID to use for the accelerator event.
181
+
182
+ accel_tuple = (label, flags, keyCode, cmdID)
183
+ accelTable.append(accel_tuple)
184
+
185
+ dlg = ShortcutEditor(self)
186
+ dlg.FromAcceleratorTable(accelTable)
187
+
188
+ # Here the user will make all the various modifications
189
+ # to the shortcuts
190
+
191
+ if dlg.ShowModal() == wx.ID_OK:
192
+ # Changes accepted, send back the new shortcuts to
193
+ # the window with the wx.AcceleratorTable:
194
+ dlg.ToAcceleratorTable(self)
195
+
196
+ dlg.Destroy()
197
+
198
+
199
+ 3) Build your own hierarchy of shortcuts using :meth:`~ShortcutEditor.GetShortcutManager`::
200
+
201
+ dlg = ShortcutEditor(self)
202
+ manager = dlg.GetShortcutManager()
203
+
204
+ for label, accelerator, bitmap, help, cmdID in my_list:
205
+ shortcut = Shortcut(label, accelerator, bitmap, help, accelId=cmdID)
206
+ manager.AppendItem(shortcut)
207
+
208
+ dlg.ShowModal()
209
+ dlg.Destroy()
210
+
211
+
212
+ Usage
213
+ =====
214
+
215
+ Usage example::
216
+
217
+ import wx
218
+ import wx.lib.agw.shortcuteditor as SE
219
+
220
+ class MyFrame(wx.Frame):
221
+
222
+ def __init__(self, parent):
223
+
224
+ wx.Frame.__init__(self, parent, -1, "ShortcutEditor Demo")
225
+
226
+ bar = wx.MenuBar()
227
+ menu = wx.Menu()
228
+
229
+ menu.Append(101, "&Mercury", "This the text in the Statusbar")
230
+ menu.Append(102, "&Venus", "")
231
+ menu.Append(103, "&Earth", "You may select Earth too")
232
+ menu.AppendSeparator()
233
+ menu.Append(104, "&Close", "Close this frame")
234
+
235
+ bar.Append(menu, 'File')
236
+ self.SetMenuBar(bar)
237
+
238
+ dlg = SE.ShortcutEditor(self)
239
+ dlg.FromMenuBar(self)
240
+
241
+ if dlg.ShowModal() == wx.ID_OK:
242
+ # Changes accepted, send back the new shortcuts to the TLW wx.MenuBar
243
+ dlg.ToMenuBar(self)
244
+
245
+ dlg.Destroy()
246
+
247
+
248
+ # our normal wxApp-derived class, as usual
249
+
250
+ app = wx.App(0)
251
+
252
+ frame = MyFrame(None)
253
+ app.SetTopWindow(frame)
254
+ frame.Show()
255
+
256
+ app.MainLoop()
257
+
258
+
259
+
260
+ Window Styles
261
+ =============
262
+
263
+ `No particular window styles are available for this class.`
264
+
265
+
266
+ Events Processing
267
+ =================
268
+
269
+ This class processes the following events:
270
+
271
+ ========================= ==================================================
272
+ Event Name Description
273
+ ========================= ==================================================
274
+ ``EVT_SHORTCUT_CHANGING`` Event emitted when the user is about to change a shortcut.
275
+ ``EVT_SHORTCUT_CHANGED`` Event emitted when the user has changed a shortcut.
276
+ ========================= ==================================================
277
+
278
+
279
+ Supported Platforms
280
+ ===================
281
+
282
+ :class:`ShortcutEditor` has been tested on the following platforms:
283
+ * Windows (Windows Vista/7);
284
+
285
+
286
+ License And Version
287
+ ===================
288
+
289
+ :class:`ShortcutEditor` is distributed under the wxPython license.
290
+
291
+ Latest Revision: Andrea Gavana @ 27 Dec 2012, 21.00 GMT
292
+
293
+ Version 0.1
294
+
295
+ .. versionadded:: 0.9.3
296
+
297
+ """
298
+
299
+ # Version Info
300
+ __version__ = "0.1"
301
+
302
+ import wx
303
+ import os
304
+ import sys
305
+
306
+ import wx.html
307
+
308
+ import wx.lib.buttons as buttons
309
+ from wx.lib.embeddedimage import PyEmbeddedImage
310
+ from wx.lib.mixins import treemixin
311
+
312
+ # AGW stuff
313
+ from . import hypertreelist as HTL
314
+ from . import genericmessagedialog as GMD
315
+
316
+ # add support for I18N
317
+ _ = wx.GetTranslation
318
+
319
+ try:
320
+ dirName = os.path.dirname(os.path.abspath(__file__))
321
+ except:
322
+ dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
323
+
324
+
325
+ # ----------------------------------------------------------------------------
326
+ # Constants
327
+ # ----------------------------------------------------------------------------
328
+
329
+ DATA_DIR = os.path.join(dirName, 'data')
330
+ """ The folder where the default HTML help for :class:`ShortcutEditor` lives. """
331
+
332
+ # These commented out things need to be taken into account somehow, but I
333
+ # have no idea how to treat them and even if they could be valid accelerators
334
+
335
+ KEYMAP = {
336
+ wx.WXK_BACK : 'Back',
337
+ wx.WXK_TAB : 'Tab',
338
+ wx.WXK_RETURN : 'Enter',
339
+ wx.WXK_ESCAPE : 'Esc',
340
+ wx.WXK_SPACE : 'Space',
341
+ wx.WXK_DELETE : 'Delete',
342
+ wx.WXK_START : 'Start',
343
+ wx.WXK_CANCEL : 'Cancel',
344
+ wx.WXK_CLEAR : 'Clear',
345
+ wx.WXK_MENU : 'Menu',
346
+ wx.WXK_PAUSE : 'Pause',
347
+ wx.WXK_CAPITAL : 'Capital',
348
+
349
+ wx.WXK_END : 'End',
350
+ wx.WXK_HOME : 'Home',
351
+ wx.WXK_LEFT : 'Left',
352
+ wx.WXK_UP : 'Up',
353
+ wx.WXK_RIGHT : 'Right',
354
+ wx.WXK_DOWN : 'Down',
355
+ wx.WXK_SELECT : 'Select',
356
+ wx.WXK_PRINT : 'Print',
357
+ wx.WXK_EXECUTE : 'Execute',
358
+ wx.WXK_SNAPSHOT : 'Snapshot',
359
+ wx.WXK_INSERT : 'Insert',
360
+ wx.WXK_HELP : 'Help',
361
+ # wx.WXK_NUMPAD0 : 'WXK_NUMPAD0',
362
+ # wx.WXK_NUMPAD1 : 'WXK_NUMPAD1',
363
+ # wx.WXK_NUMPAD2 : 'WXK_NUMPAD2',
364
+ # wx.WXK_NUMPAD3 : 'WXK_NUMPAD3',
365
+ # wx.WXK_NUMPAD4 : 'WXK_NUMPAD4',
366
+ # wx.WXK_NUMPAD5 : 'WXK_NUMPAD5',
367
+ # wx.WXK_NUMPAD6 : 'WXK_NUMPAD6',
368
+ # wx.WXK_NUMPAD7 : 'WXK_NUMPAD7',
369
+ # wx.WXK_NUMPAD8 : 'WXK_NUMPAD8',
370
+ # wx.WXK_NUMPAD9 : 'WXK_NUMPAD9',
371
+ wx.WXK_MULTIPLY : '*',
372
+ wx.WXK_ADD : '+',
373
+ # wx.WXK_SEPARATOR : 'WXK_SEPARATOR',
374
+ wx.WXK_SUBTRACT : '-',
375
+ wx.WXK_DECIMAL : '.',
376
+ wx.WXK_DIVIDE : '/',
377
+ wx.WXK_F1 : 'F1',
378
+ wx.WXK_F2 : 'F2',
379
+ wx.WXK_F3 : 'F3',
380
+ wx.WXK_F4 : 'F4',
381
+ wx.WXK_F5 : 'F5',
382
+ wx.WXK_F6 : 'F6',
383
+ wx.WXK_F7 : 'F7',
384
+ wx.WXK_F8 : 'F8',
385
+ wx.WXK_F9 : 'F9',
386
+ wx.WXK_F10 : 'F10',
387
+ wx.WXK_F11 : 'F11',
388
+ wx.WXK_F12 : 'F12',
389
+ wx.WXK_F13 : 'F13',
390
+ wx.WXK_F14 : 'F14',
391
+ wx.WXK_F15 : 'F15',
392
+ wx.WXK_F16 : 'F16',
393
+ wx.WXK_F17 : 'F17',
394
+ wx.WXK_F18 : 'F18',
395
+ wx.WXK_F19 : 'F19',
396
+ wx.WXK_F20 : 'F20',
397
+ wx.WXK_F21 : 'F21',
398
+ wx.WXK_F22 : 'F22',
399
+ wx.WXK_F23 : 'F23',
400
+ wx.WXK_F24 : 'F24',
401
+ wx.WXK_NUMLOCK : 'NumLock',
402
+ wx.WXK_SCROLL : 'Scroll',
403
+ wx.WXK_PAGEUP : 'PgUp',
404
+ wx.WXK_PAGEDOWN : 'PgDn',
405
+ # wx.WXK_NUMPAD_SPACE : 'WXK_NUMPAD_SPACE',
406
+ # wx.WXK_NUMPAD_TAB : 'WXK_NUMPAD_TAB',
407
+ # wx.WXK_NUMPAD_ENTER : 'WXK_NUMPAD_ENTER',
408
+ # wx.WXK_NUMPAD_F1 : 'WXK_NUMPAD_F1',
409
+ # wx.WXK_NUMPAD_F2 : 'WXK_NUMPAD_F2',
410
+ # wx.WXK_NUMPAD_F3 : 'WXK_NUMPAD_F3',
411
+ # wx.WXK_NUMPAD_F4 : 'WXK_NUMPAD_F4',
412
+ # wx.WXK_NUMPAD_HOME : 'WXK_NUMPAD_HOME',
413
+ # wx.WXK_NUMPAD_LEFT : 'WXK_NUMPAD_LEFT',
414
+ # wx.WXK_NUMPAD_UP : 'WXK_NUMPAD_UP',
415
+ # wx.WXK_NUMPAD_RIGHT : 'WXK_NUMPAD_RIGHT',
416
+ # wx.WXK_NUMPAD_DOWN : 'WXK_NUMPAD_DOWN',
417
+ # wx.WXK_NUMPAD_PAGEUP : 'WXK_NUMPAD_PAGEUP',
418
+ # wx.WXK_NUMPAD_PAGEUP : 'WXK_NUMPAD_PAGEUP',
419
+ # wx.WXK_NUMPAD_PAGEDOWN : 'WXK_NUMPAD_PAGEDOWN',
420
+ # wx.WXK_NUMPAD_PAGEDOWN : 'WXK_NUMPAD_PAGEDOWN',
421
+ # wx.WXK_NUMPAD_END : 'WXK_NUMPAD_END',
422
+ # wx.WXK_NUMPAD_BEGIN : 'WXK_NUMPAD_BEGIN',
423
+ # wx.WXK_NUMPAD_INSERT : 'WXK_NUMPAD_INSERT',
424
+ # wx.WXK_NUMPAD_DELETE : 'WXK_NUMPAD_DELETE',
425
+ # wx.WXK_NUMPAD_EQUAL : 'WXK_NUMPAD_EQUAL',
426
+ # wx.WXK_NUMPAD_MULTIPLY : 'WXK_NUMPAD_MULTIPLY',
427
+ # wx.WXK_NUMPAD_ADD : 'WXK_NUMPAD_ADD',
428
+ # wx.WXK_NUMPAD_SEPARATOR : 'WXK_NUMPAD_SEPARATOR',
429
+ # wx.WXK_NUMPAD_SUBTRACT : 'WXK_NUMPAD_SUBTRACT',
430
+ # wx.WXK_NUMPAD_DECIMAL : 'WXK_NUMPAD_DECIMAL',
431
+ # wx.WXK_NUMPAD_DIVIDE : 'WXK_NUMPAD_DIVIDE',
432
+ #
433
+ # wx.WXK_WINDOWS_LEFT : 'WXK_WINDOWS_LEFT',
434
+ # wx.WXK_WINDOWS_RIGHT : 'WXK_WINDOWS_RIGHT',
435
+ # wx.WXK_WINDOWS_MENU : 'WXK_WINDOWS_MENU',
436
+
437
+ # wx.WXK_SPECIAL1 : 'WXK_SPECIAL1',
438
+ # wx.WXK_SPECIAL2 : 'WXK_SPECIAL2',
439
+ # wx.WXK_SPECIAL3 : 'WXK_SPECIAL3',
440
+ # wx.WXK_SPECIAL4 : 'WXK_SPECIAL4',
441
+ # wx.WXK_SPECIAL5 : 'WXK_SPECIAL5',
442
+ # wx.WXK_SPECIAL6 : 'WXK_SPECIAL6',
443
+ # wx.WXK_SPECIAL7 : 'WXK_SPECIAL7',
444
+ # wx.WXK_SPECIAL8 : 'WXK_SPECIAL8',
445
+ # wx.WXK_SPECIAL9 : 'WXK_SPECIAL9',
446
+ # wx.WXK_SPECIAL10 : 'WXK_SPECIAL10',
447
+ # wx.WXK_SPECIAL11 : 'WXK_SPECIAL11',
448
+ # wx.WXK_SPECIAL12 : 'WXK_SPECIAL12',
449
+ # wx.WXK_SPECIAL13 : 'WXK_SPECIAL13',
450
+ # wx.WXK_SPECIAL14 : 'WXK_SPECIAL14',
451
+ # wx.WXK_SPECIAL15 : 'WXK_SPECIAL15',
452
+ # wx.WXK_SPECIAL16 : 'WXK_SPECIAL16',
453
+ # wx.WXK_SPECIAL17 : 'WXK_SPECIAL17',
454
+ # wx.WXK_SPECIAL18 : 'WXK_SPECIAL18',
455
+ # wx.WXK_SPECIAL19 : 'WXK_SPECIAL19',
456
+ # wx.WXK_SPECIAL2 : 'WXK_SPECIAL2',
457
+ }
458
+
459
+ # Define a dictionary to hold the correspondence between wx.ACCEL_* and
460
+ # human-readable names
461
+ ACCELERATORS = {wx.ACCEL_ALT : 'Alt',
462
+ wx.ACCEL_CTRL : 'Ctrl',
463
+ wx.ACCEL_NORMAL: '',
464
+ wx.ACCEL_SHIFT : 'Shift'}
465
+
466
+ # Define a dictionary to hold the correspondence between wx.MOD_* and
467
+ # human-readable names (platform dependent)
468
+ if wx.Platform == '__WXMAC__':
469
+ MODIFIERS = [(wx.MOD_CONTROL, 'Cmd'), (wx.MOD_ALT, 'Alt'), (wx.MOD_SHIFT, 'Shift'), (wx.MOD_META, 'Meta')]
470
+ else:
471
+ MODIFIERS = [(wx.MOD_CONTROL, 'Ctrl'), (wx.MOD_ALT, 'Alt'), (wx.MOD_SHIFT, 'Shift'), (wx.MOD_WIN, 'Win')]
472
+
473
+ # Define a couple of standard, default accelerators
474
+ NEW_ACCEL_STRING = _('New accelerator...')
475
+ """ The string to display when the user wants to enter a new accelerator (by default is `New accelerator...`). """
476
+ DISABLED_STRING = _('Disabled')
477
+ """ The string to display when an accelerator is disabled (by default is `Disabled`). """
478
+
479
+ # Events handled by ShortcutEditor
480
+ wxEVT_SHORTCUT_CHANGING = wx.NewEventType()
481
+ wxEVT_SHORTCUT_CHANGED = wx.NewEventType()
482
+
483
+ EVT_SHORTCUT_CHANGING = wx.PyEventBinder(wxEVT_SHORTCUT_CHANGING, 1)
484
+ """ Event emitted when the user is about to change a shortcut. """
485
+ EVT_SHORTCUT_CHANGED = wx.PyEventBinder(wxEVT_SHORTCUT_CHANGED, 1)
486
+ """ Event emitted when the user has changed a shortcut. """
487
+
488
+
489
+ # Standard images for all the buttons we use in the dialog
490
+ #----------------------------------------------------------------------
491
+ _cancel = PyEmbeddedImage(
492
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0"
493
+ "RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQQSURBVHjaAEEAvv8BXTIyAAL9"
494
+ "/UEy6Oip+fn5BqAAAHX1/f2bBP7+ACMDAwA4BQUAB/z8AAH6+hQhCQm7FAsLKpPm5qfh/f1g"
495
+ "4QAAAAIAQQC+/wMtGBhBLufnr1w5ORI1JycI+traR9QBAev4/v7NFQICABsDAwAB/PwUFwAA"
496
+ "vDdJSTA0X18DIujoL9Lm5iLZAACyAgBBAL7/A2ADA8xhKSkREoaGAAQ9PQAm398DAeDgRtP/"
497
+ "/+gKAgLOHQEBDBr//782NDQwIGpqA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wc6xBnkbw6gjWpAF6kDaUNGxoxFSko/7lpY/E/n5//ByMBQAlID"
512
+ "EEAMqmJiDNJAWxX4+dsluLh2A8XcGKAAZoA+MEdqAvn6jIwx+iwse5kZGAphagACDAAeLHBa"
513
+ "S9SUbwAAAABJRU5ErkJggg==")
514
+
515
+ #----------------------------------------------------------------------
516
+ _clear = PyEmbeddedImage(
517
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA"
518
+ "B3RJTUUH1wYeFCULmGdR+AAAAnpJREFUOI2V0ktIVFEcBvDv3jveufO4jk46ZVlGNUGRLTIp"
519
+ "K8OCoAdBIM2ioo2LCKFsI7QJCQoiiJ60nCDBTbUpsJSh0cxw42DImA2j1vhImXFmvPM493VO"
520
+ "izDS6WFn/X0/+H8cDv/xHpyzXuYs/FVdVT2iVbre/CTXxq+0fP+M9ZLNId/YVd+4+tTZFo5o"
521
+ "rBUAVgQ8PI9VsOBmTf1JR3+wE18igyCcHAUAy0oAysSLFeuqBJFMoW7nerwZ+JzLGFLLP4FP"
522
+ "70r7KOOeBzqMZpeYl+KxEPqiYlbVhHt3XnwN/PUEf5tfMg3Lfrmk+tYhn3VNWXUeUYXXFogQ"
523
+ "GhNi1xZzwp+AxiN7H01EjtaoxCt4KmvhLMvA6priqzaTjrxFDQSDYADALS+Ov4WkWzxPDWY7"
524
+ "np4/IY0Ob+RHQgrc5QnsafgIQx+CrqH1WJNyuwCI9DrLqeAI2GXvlrVVp22MmdDyMYyPJvDM"
525
+ "TxEJ21HXMNBeXjvU5PNBWwJEu0tdpk18L5ft9pa4a0ShSIapzUGZHwEvZKCTafR2ZzXOmfP4"
526
+ "LiTTiz0eAGL9lTbDLnY53dWbZNd2MZuegKnHoeYnkVuIQVdnoKszcDhTBVvxAJCj2iuH7N3h"
527
+ "kLfapsdewlFcAY1MITU7AmokoaSmAVDoKoDkbwBK1cOi6LZPjLbD6fJCV2cQDfeAZGdBzSSS"
528
+ "CQrGAMPgeJBkvgAAuIZvk0HoGiBKEsKhTj0VT4IaC+AFA/E5DprKATzSvrYf4y0Bth1M9RDT"
529
+ "soHSosfhwdcsq5AiajBqmgbyhEdGARJxRnmOdS/foOAfAECXv9hrmuwuIeyApqL4Z5jn9vmu"
530
+ "KB9+zX4H1k8cy/juDWsAAAAASUVORK5CYII=")
531
+
532
+ #----------------------------------------------------------------------
533
+ _default = PyEmbeddedImage(
534
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlw"
535
+ "SFlzAAAK8AAACvABQqw0mAAAACV0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3Mg"
536
+ "TVggMjAwNId2rM8AAAAWdEVYdENyZWF0aW9uIFRpbWUAMDIvMTEvMDeS+i0/AAACvklEQVR4"
537
+ "nKWSXUjVdxjHP7/f/+W8qdPqj5rRPAsryDM2FIRBjEQotjuHsV2NCIPqoqju6iqnuYu9ZKtw"
538
+ "N7mKujGqDXQ3o9UQEsl8mYl1OGp5lDRt5+h5+Z/j///rIgVfops98MDDw/N8+D4vQinF/zG5"
539
+ "NtHU2LDn8qWL1StS1q329khj43dPZ1/P578X8Mfvdw/W1Oy9Mzo21l5bW1vjy/XKCy0tZ4LB"
540
+ "YHBudq6s/uC3x9YCdADchIUMzHR13du/9cOyvEgkAspp7uvpMzs7/wz9dP5nno2GldBFIWAA"
541
+ "2dUKhMoODju1wZ11u65fu0o0GnW2lIbse38/CMXiMR739rF722fcbrr5iZ1JhFYqEG+XOCR+"
542
+ "aStr/W/erNfFDAG/oYpzXtrXrh7x9j4b52T5VxyvPMHAZA+bzlZt3Fxgza0egV0qmcy+TsRB"
543
+ "ahYTzxFf11327jtXxmSsku0l20hfuE9qmnSgwFp1tqUl9oFAahKkAE1X2Il5csxpthdPwNg/"
544
+ "QAqh68IF8Q5AaY6hu7arKaQXhAZCGiB1cAS4BkJqCEN6AmQ3rb8CnhJpZ/qHHjrkF9r4/Dmg"
545
+ "ZcFYAkhBMp3GNfMepTHC5nqAb2TqZWJrMu4wM5lkYTHKSO4gRVUpKC1CMwMMd00ytUNMV4H7"
546
+ "DgWQXURJAZqhkcnAq5EIsdlpjKJxuiMbyA7v58nGoY/vHD5QveWDwti55ubHgLv8SNLjdV3d"
547
+ "cFhcANcRxFIJpN+DtpDgxWiaT/MsOu9fKentCv+lS42Ojo6m/oGB08uv/NGhA/qjyqr5b8pD"
548
+ "dnd+QZxcv4lKJzGERkxPcjLRwr/OKHbaxvR4lGVZDwFQSi15dDk2w2MTX6Qe/Ppj+PsvpzIN"
549
+ "5W5zdZ5Cw/X5fcmKiorrbW2/7VjuWwFY73GlyrP9N9pbT9WNf16z94emxoaja2veALFzTWMO"
550
+ "z/GRAAAAAElFTkSuQmCC")
551
+
552
+ #----------------------------------------------------------------------
553
+ _help = PyEmbeddedImage(
554
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC+ElEQVR4nGWTP2xbVRjFf9+9"
555
+ "9/01TgwJCQkMbkMKqCkEKGoXBpiQEqkpZUL8y8BeRqYwMMBQRMWMGtQgJCSKYWCohARIVCCo"
556
+ "MJUgLbSipVERTuzYcexn+713L4OlirafdLZzznC+c4TbbnZxrSTIEkoeQ9S8iICob0WkevHM"
557
+ "C5Xb+XKLeOH08WIxXnloZqoUhSFRFDHIcmr1XerNDts7navWuTfWPz1SucNgduH0qfm58mt7"
558
+ "y/ezfq1LrZmR2SHFaAg9QTtLo1WnnybLv3+yuHrTYHZh7a1DT8ysFEfH+eVyh73TEa8vTvL0"
559
+ "o0WsdXzz6w6nzm5x5cYALdDtNMgG3aO/ffxcRWYX18pTE6W/Dj7+CN9daDM17lN5+2GsteS5"
560
+ "w1qLc44b9ZSXTlxHRHDOkrRqTWvzPXp837GVw0/OHl7fyOiljt2eJQ4U9VbGiTM1HLBn0iP2"
561
+ "hR8v92n1QGmNaB3m6eCS8QNvSZmI7XYXRECED76skTshs6C18OyBGOccm7uOTjrMLNQRottH"
562
+ "zOhIoVxrpsM0BPqpo9vJEa15YMLnzWNjWGs590efRg/8yABQUJB0dclYB71BjnWwvZORI3i+"
563
+ "RnuKd16ZIA6EK/9mnPy6QxB7KDV8XDFw1BsGM0hzBMfmdooTwfgKZRQLB+9iZtJgrePD7xNS"
564
+ "ZQgChdIKgJGCRZRGdZJBpd1OsM4hSlB6iKl7DM45nHNc2nQEoSGIPMLYY2TEIwxAtKkaRH3R"
565
+ "au8uFcNRulZQaojKzwn7pn22EjC+xgs0fuhhfE15DP5cbyFKf6Qufvb8atJPqpHOMQKIIEo4"
566
+ "+lTMoRmfhTmfuWmD9jReqJm+10ORs/FPv3L+/QNVBeBwy4O01QzE3uz2hesp3QFs7MDfTYdR"
567
+ "cN+oUPIyzv3QqIrSy7dsYf+LX82jzOe5GS3rsEgcGeKCR6FouLvkMVYybDV6XNtIqoNMnvnp"
568
+ "3Qebd6xx7uWzJZQ6Ltp71XhBOS7EhJEhzS27SV4VbU6ef2//6v81/wH6bjI8fK9HXAAAAABJ"
569
+ "RU5ErkJggg==")
570
+
571
+ #----------------------------------------------------------------------
572
+ _info = PyEmbeddedImage(
573
+ "iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFz"
574
+ "UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAA"
575
+ "AAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1gAADdYBkG95nAAAEURJREFUeNrtmmlsXNd1"
576
+ "x//n3Hvfm53kcEiKpERSmy3LdmwlSrwVcZM4qdE6CVB0M4p8CBL0S9ECTb61/dD0cxq3KPKp"
577
+ "SIK2aZAWbeo2cd0kcJp4ixfZlmxHu0RJXGaG23D2mffevacf3oxEs/JObWgecPguhrPc87tn"
578
+ "uefcB/zy+uX1//qiq/2DrDT56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Z"
647
+ "Y0prECnArQDdQxC9C9J95h3FgPhQIX7AymiME5AEEAJw6Hdb4/E1rwap9326J8Y5MAHujt3t"
648
+ "BxTZpPEUEL4K6T4F2LlLz8dsMnmIwFmLsNtBbWUZ86eOYqW8Xvn2Y/jq8XM42/v+/m9xT+i9"
649
+ "TnqrFOcN94tjz8B89mP4zYcfxJcmtvkzyZSvtfGgjA9WCswKrFTcLLUW1kZwNkIUdBF0u9Jo"
650
+ "dLqLZTf7zz/E3z7+NB7rhuhuWHXbu28cb3xNrjSAvqJqE4Q3AGGGntqGmdv34OB9B/CrU+P6"
651
+ "rnSKRn0DKJberjd+4CFyhFaHUKnaC8fPhj958XW8fOoCji2tYdEJQgBRT+wGcW8ytm8HgbZI"
652
+ "+c0gNooB4PVdw9NIj20b+NiuPdN/OjmWTQ1mfRARBIB1jEotwGK5Fpw6ee6vlsuVnzhB0FMk"
653
+ "7EmwQTaDeNcQ1Ps0fX4b6QPoQ0hYB11vhKuBTQw2w/SeastTzSCJasPD4nKIxaW2XVhYe6Jc"
654
+ "XHrCidhNmUouE/zkLQSbxlsO4L2JSNRs1H8RheGqE8k3Wx1Vqze61Wp1YalU/Nfl0uKjztn1"
655
+ "3gqHmyTaIO4tRDaMr0oMuKz/b84MG+4KgNLG5I3xCgAoDINKFIbVDWZrNykcbri/le+7qxED"
656
+ "NrvCm2aCy7jFxjtdxqJk02raNxm/VQa4Klngci6xWXG6zHizW2yey2b/lU1mLW9j/ld1H/BO"
657
+ "4sObKY93AUDeJPi9o5W+2gDe6rc2mzzeBgAuE9W37PpfnmQMHSrQKjcAAAAASUVORK5CYII=")
658
+
659
+ #----------------------------------------------------------------------
660
+ _ok = PyEmbeddedImage(
661
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANkE3LLaAgAAAjpJ"
662
+ "REFUeJy90k1IkwEcx/Hvs2evMt1KJ741Wy0zexMy0US6WHSKgii8pAUZKUEFubSgkjKRQgT1"
663
+ "kL0hZNChMpJCi/RQGQll0sBE09wWw5c2c5rbs+fptIgutQ59758//8MP/nNCcsWSm5ajS+8C"
664
+ "6qh1con5So+3W3ni6lTiS81XAe1f45QDsXV3JloVT2BC8c57lGZng6LZJVz8+Ub8fpVD0Mri"
665
+ "1DVqf8dpZYYLZ6pOOjJi1jDqHyIoS7xwdyMbla1qANNO7fHDx0rrZPV3WufbpOl26iM4/Yju"
666
+ "XEXlwdNWvZ3xuY9IssKDT23c6+0l3McjUVfEoe2Vm5vyEwuJ1yVgyRO3jflHfIFBXtvK1dUl"
667
+ "jt016ZpM/MFJZiUfTyfbed7/Ct9t6hmiRkzeR2Moddo6G5xBJYZJjEkiMUcoIvtrzo7iLeUp"
668
+ "Ohu+oJcpycPA3DPefXiP6zoN0gAOQBYRyLRslAqmtS7coSF8iguNQVFZs0yrtYIGb2iE0eBb"
669
+ "3OFBvMMzOBuk2oV+qgAZQFz8zMvwPGkrc3XZQlyIb4KfsNqPUYhFL6pRqWQMOjULEwJ9l3yX"
670
+ "Z/uojmAAEQgFhukKLsq2rLyE9XqTiiTtMuwxWaQb7Cw3ZjDjCtBx1tk41SNX/oojBwBCfidd"
671
+ "QUlalVtgX5tqsmHVrWCdKZfxL2M0nXrY4nksnQDCf9pL3IZy/f1m917ljXxD6fCeV+zF2ugW"
672
+ "B5gLHcbOFtceZVOZ4RagjwZHSrLkUwHE/guOqh90ld9+870vDgAAAABJRU5ErkJggg==")
673
+
674
+ #----------------------------------------------------------------------
675
+ _reassign = PyEmbeddedImage(
676
+ "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9i"
677
+ "ZSBJbWFnZVJlYWR5ccllPAAAAsZJREFUeNqck1lIVGEUx393thaXCm0qtdJrm4FlONGkWESb"
678
+ "tthDUA9F9dDyFhTRghI9WJpgPgSBD/UWQRvZrg6CSFk5FuJDD+nYTFCmmaDV2Cz3dr7LBEIv"
679
+ "0oE/937nfP/DOed/Pm1XPZMyU2AYNBom5TYNzWYDTXw2KyhRCVjff4iJWDwOv2OU1+5tYDyK"
680
+ "qc7qui1u8EACpnJGYtyVsxVQUP8Zs3QzHMH8JfDq0Nl3jIrycyqZKRWhldZiXt1XQSQeo6PP"
681
+ "j/9jP6HhgKbKm5+mmx5dx5tbKFVoAged/VXYpe7Zyfu45ruJQ93sDF4kHAXvovOkp6zmec9t"
682
+ "q5kdBfvJmeugI3AeK6Mq2SGQBCPhkHW2L97IoXchZqYmwc9oG0vmFZAydSHBbwE2r9LpDF0i"
683
+ "OAhdfeAUonuWkH/o3HvVTdNpPPZeH74+Hzdc+ZTNSGbGOG/IdS9jqtPNrVfXZdzwoptg40k2"
684
+ "TVnF0bSZTlreDtN8Bk95PV12kXFo6Va+PDtDiy2fw0nTscftPeS4c0hx5fL4dW+ktZL1O+vo"
685
+ "joYpDQ4ZWU2KfIUu1ZZNNdt4wmRzNfcPbNzuGh7RCQxA/+gTFmT8ZE9JkUtidx6elJtOvHUH"
686
+ "G9hUjf+vWjYjTuuWGs3cXVK8OCtzjOKiAP2SIPgVPofbUb7t3uV5G6o0c+1KGfiQyLhHZIwm"
687
+ "ZCy7jHn8QB7x2DSGwm8JfYIvId2a8NzMANlZkOpaRMwYs6Qc+z2AbCJuh8j4SGRU+zhivCcm"
688
+ "9QQ/w8sOBpsrA9tUgi0XeSJDnKNn92IkFktLyPg9IaNWWoVfc1GoVjYe5nXLBY7IYHuwZkN+"
689
+ "WQ2twktX5OI1IHvFyIDO07YAzWfxqPVYIkhJrP6okD9MfAuSZAVqfGLSrn9diYu29gjPEzJq"
690
+ "k32NysZHaXUmseHxKTzC6+I/LFdQONHxR4ABANuzKntCBWfVAAAAAElFTkSuQmCC")
691
+
692
+ #----------------------------------------------------------------------
693
+
694
+ _html_back = PyEmbeddedImage(
695
+ "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0"
696
+ "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+ "VGV5GBoCGRhuPPvO8Os3JIVzcQNTHzfragYulk3gWgvdAUzYGwYAAcREVBuQhXE/Aw+H45YN"
724
+ "d7a4eW1k2HHoJYOkFB+DvgI3uCL69/8fxKz/QKt+487z2ABAADGR0Bx7xMDPHnrvzoe6oPAt"
725
+ "Xxs6zzL8+s/MICTICY4GFAf//E9UawgEAAKIeAdAatofwDhu/vmPwaO16eQF/+gdDFdufWYQ"
726
+ "F+EG1xVwK0EO+v4PVI8RbB0BBBB5HRMWpiMM/GxO58687PMK2/qjqPkkMK8D62VmRhZIxcEA"
727
+ "KX6//SMYEgABxIjeNySqYwJjgzob//87M/z+V8PIw8L0n4kxGSh6B6NjAmohs0D0oXdMAAKI"
728
+ "caA7pwABNOB9Q4AAGnAHAAQYABaU9vBbRzekAAAAAElFTkSuQmCC")
729
+
730
+ #----------------------------------------------------------------------
731
+ _html_forward = PyEmbeddedImage(
732
+ "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0"
733
+ "RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAbWSURBVHjaYvz//z/DQAKAAGJi"
734
+ "GGAAEEAD7gCAAGJBF2A0mQVlAPGPfwwMv/9D2HAFDHwMf/9PZfjyR5CBnaWZ4f//kwx/geL/"
735
+ "gOqAyoFyDHD+XySxfxCx/78KUewDCCDcIQBKGqxAm9FV/P6nK8zHHuPqrODN/PvvHobvf6qB"
736
+ "ouzkhgBAAOGPAmagAziYUcX+/mfiYGJkmNHuyLB6jjePoix/C8P7H7uAIaFLjgMAAgi/A/5D"
737
+ "VXCgKvsDDNI/v/8xBLorMezbEMwQm6hnx/jlz25gaBQApdlIcQBAABGXCBmBIcHKhOY2cKQy"
738
+ "KEjzMCyY6Mowa5qbuIggRz/D518LgelElFgHAAQQcQ74D02ULODU+B2SFoEJCpjYnn8EEkBG"
739
+ "SrQ2w54tIQzG5pIRDG+/bwcmOG1ijA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AAAElFTkSuQmCC")
767
+
768
+ #----------------------------------------------------------------------
769
+ _html_home = PyEmbeddedImage(
770
+ "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0"
771
+ "RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAmrSURBVHjaYvz//z/DQAKAAGJi"
772
+ "GGAAEECMDH5SqCL/oe76ywiWZvjHiJD7xwzEULnf/w0Yfv3tY/jPyMPAzFLOwMq2n+EfNDRB"
773
+ "NCMjBP9HNhjqX1CogzAjEwNAAJEXAj+++7Ax/N/QlV/pOLu205Sfk2sVw5fP8eQYBRBALGh8"
774
+ "biD2hdL/gBjoZYYrQHwCEmFAH335ksnLJ9QztbCFK9Y9ECwsJSImktZWNf/p40fyDDz8bUDv"
775
+ "/SHWAQABxMygzovMlwSG0lZg8IQBg8cfSPsBw+kPMCa2AuXYGT5+7FFX1Gxe2TyT1dfKieHb"
776
+ "vy8MP/5+Y9CRV2dws7RjPHP7uuOze3dUGNjYDwCD/zs4CtBiHJXLyAAQQMwMmkDPMv6HYT6g"
777
+ "cAKQwQtTAMS7GP79ucjw6eMCD1uvxGV10xn0lTUY3v15xTD9eQPDng8bGFTZ9BhUxVQYAh3d"
778
+ "GJ69f6N7+fI5awYW1pMMzMyvGf7jdwBAAAEdwAMRh2B+IE4Fsnjh6v/8+cDw80dMgl+C19yy"
779
+ "CQwSgiIMj3/dZZj2vJ7h0pczDK9/vmA4//k4gzSzIoOygAqDn70rw49//+ROXTjt8u/vvwsM"
780
+ "LCyP8DkAIICYGbS5kEOAHxh/qUB1vKAUCrQYyPyn3pRcq9ib2sDAwcrGcOHrMYYpz2sZHv+4"
781
+ "x8DByMXA9J+N4c2vVwyHP+wGahJg0ODRYXA1t2YQExUTOXDqeMDv71+fAUPjEi4HAAQQM4MW"
782
+ "F7IQMAQYgQ5g4mX49plBkE+QYV7xdIZs7wRwbOz+uJph7ssOhs+/Pz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YZAcOD3/B5cNnCycDFwsXAxvPr1l"
810
+ "eP/t00dgSv6GEtpADBBALOCGJioAppD/H958fQvmgNLA59+fGUAJC6wD3EyDWo7cxoCkH0hK"
811
+ "ATrg29/vDHzAKAQ54vWndwyfv3/+AHTAT0hbFwEAAoiFAaNhDqyvGf+/fvvlNZinAixK3/x4"
812
+ "DbQHVN//gzSWURzwH5GLGEGpBFQ0/2Ew4DVgEAXlAKDI2y9Az/z79ZGBhf03epsEIIBYwEGH"
813
+ "CkC2vPz84zOYEyuXxBAjlwhMDyzACuoPsOBkhFjGBPUJPASB2RQozgEs5FjYWRgmW0wChwQT"
814
+ "BxPD5x9fQOkLGAIMv+AOhgKAAGJhwNZyZmJ4dPnZZQYQBid4IASW9sAC4h3Dz3/A4pAJqb0N"
815
+ "YzGB1PxnuvniDlDNTwYmYO8JlG4ef3vJcP7+JZCZTxmYGX+j+xYggBgZMhmxlehqLAwss0RY"
816
+ "hbWAZvyG5D5GUDXM8u7np/dA2gPo3QeQsp8dFgKijIxMm4RYuFSBJeDPf/8h3Tqg41nf//jx"
817
+ "6Off/7lAU46jWwQQQIwD3TsGCKAB7x0DBBgAIYJYB6/AsBcAAAAASUVORK5CYII=")
818
+
819
+ #----------------------------------------------------------------------
820
+ _html_print = PyEmbeddedImage(
821
+ "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9i"
822
+ "ZSBJbWFnZVJlYWR5ccllPAAABwhJREFUeJytl99vVMcVxz9n7tx7d732esHYxmBTfgVRQmg3"
823
+ "OBH9IRGgjUBqoBKoapDIQ9NW4qH0oVL/hPahfegD6kvCcyM1b6nUNhJS0kpNSgW0VUQsEpvy"
824
+ "yxCDbdZe7957585MH3bXNhRcQBzp7OydOXe+59ecc0eOHfsRK5FzbtOOHdt+v3nzhl7nnHuU"
825
+ "3OnTv9oGcPHiRQCq1SqP8yyvvfbGigrkuR09deoHfz94cL9aSa5arS5u/rhUrV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Mw8GzYMSRh2f3779s3f9vevIQzDxS9t3Ro91sbcuZOTplHXyy8/"
854
+ "f2rjxmENUCoVHpnprXizeESXj8vXCgXNvn17fnzmzJUzN24sjMexJo5b3USnadi2KgAsWsvq"
855
+ "ZrNefu+9969Za91K98aV77VLiyLI9euTYaEQfslaN57nIZ129l9hzBKSSHX0vAAAAABJRU5E"
856
+ "rkJggg==")
857
+
858
+ #----------------------------------------------------------------------
859
+ _html_reload = PyEmbeddedImage(
860
+ "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0"
861
+ "RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAlZSURBVHjabIvBCYBAEAOT027t"
862
+ "xI/VWJA/i9DkonsfwYEhw8LSNh64EP/kroxbZKnRXzaIJ+62QpMj0qVm4BqN+vN+vNsFEBMD"
863
+ "JeAfIxJm0mf486+D4fvXtUDjlYg1AiCAKHMAAzRkQCH048evONtYhjiHpECGL5+PMPz9E0uM"
864
+ "doAAotwBoCD9Dwzi3//+KosoMizMmsswMXWWJAcjywKGH1/7GRgZ2fDpBgggFiJtEWH4/0+T"
865
+ "4c9/VYa/DNxAH/9j+A+NAnAIMP5m+MGg+PP7b4ZPjI8YorztGcyV9zPFTUwquPXgqjYDpzAo"
866
+ "NF5iMxgggPA74B+DIsOv//lA2pWHm19dVliWmZuVFxLksDTwH5IGfnz7yaAkpMrwluE5w+rf"
867
+ "3Qx+GvkMB1t3MoS2x7oeuXhoIwOnYABQxwt0KwACiBFrLmBkYGP4zVAG9G2lm7YHV5ZtNoOJ"
868
+ "ihEDOycjw1+gZ7EmBSBkYmRiuPLnGMPen4vBhrjxRTDof/dlCG6KZ9h3Zu8JBk4hL4b//98j"
869
+ "5wKAAMLmAE5gcM6SEZKNmRE1g8FOz4rh1I+dDBe+H2X48Oc1w+//v8HW4UoPf///Abr7L1jN"
870
+ "9/9fGOx4fBkcGWIYvCtjGM7dv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wBE6P3nr58Yvn76ziDAIAoMjO/AopwdmBmAQQxMSH+BDVBGfI1MYOLkZeZlMBI0ZYiWTmb4"
898
+ "85yXwb02leH4aaCNvPwRQPd9RlYPEECYaYCZo/v6g8v2CdMz7JZlzGNg+cfJMPfRVHC7IEIs"
899
+ "nsFbJJDhN7BZxoie8oEiIEeyMbIz8PzjY/j0+hfD9BnbGZZuW8vw/hMwwfIKFADVYbQJAQII"
900
+ "Mw38//+ZgZM/fO+5HVsDeiKMFqbPYhCWF2WoulHKIMEqxfD25k+GCVumMrCxciP1lBghDgDm"
901
+ "hu8/fzM8ev2S4f7zp+//fft6Bljq9TNwcG7H1ZQCCCBEGojlQ3gG3K1ilWP4/HmBhqyu4+zE"
902
+ "KQyP+W4Cs/9vhoenPjPUzqp4zMDOuwiRDZlhPSQmIPsHAxPbQ2A5cRqY2K6gFdcIf56ApAGA"
903
+ "AMLdLP///xEwJLxuPL7V59YWlNkUWs2Q7h7JMIV1CbDu573LwMFdA7EYuRxgRLDBFv/Hk2Ah"
904
+ "ACCACHRMgOUnO0/W91//LpTOr2k9//CKiCCPENBMViZwwxdc7v9Hy46ELUUGAAFERM8IaCAz"
905
+ "yywGDpbDy3avncjIyuXKwMrFimEvmQAggIjsmoFsYrrOwMHl/f8vcyWwWaUI9SbFTgAIMAAF"
906
+ "XnDxjsZXyQAAAABJRU5ErkJggg==")
907
+
908
+ #----------------------------------------------------------------------
909
+
910
+ def FontFromFont(font):
911
+ """
912
+ Creates a copy of the input `font`.
913
+
914
+ :param `font`: an instance of :class:`wx.Font`.
915
+ """
916
+
917
+ new_font = wx.Font(font.GetPointSize(), font.GetFamily(), font.GetStyle(),
918
+ font.GetWeight(), font.GetUnderlined(),
919
+ font.GetFaceName(), font.GetEncoding())
920
+
921
+ return new_font
922
+
923
+
924
+ # ----------------------------------------------------------------------------
925
+ # HTMLHelpWindow is a frame containing the HTML help page for ShortcutEditor
926
+ # ----------------------------------------------------------------------------
927
+
928
+ class HTMLHelpWindow(wx.Frame):
929
+ """
930
+ A simple :class:`wx.Frame` container for the basic help provided to :class:`ShortcutEditor`.
931
+ The help page is actually straightly derived from:
932
+
933
+ http://graphicssoft.about.com/od/gimptutorials/tp/keyboard-shortcut-editor.htm
934
+ """
935
+
936
+ def __init__(self, parent, htmlFile):
937
+ """
938
+ Default class constructor.
939
+
940
+ :param `parent`: an instance of :class:`ShortcutEditor`;
941
+ :param string `htmlFile`: a valid HTML file containing either the default help
942
+ or your particular definition of help.
943
+ """
944
+
945
+ wx.Frame.__init__(self, parent, title=_('Configure Keyboard Shortcuts Help'))
946
+
947
+ self.htmlFile = htmlFile
948
+
949
+ toolbar = self.CreateToolBar(wx.TB_HORIZONTAL|wx.TB_FLAT|wx.TB_TEXT)
950
+ self.BuildToolBar(toolbar)
951
+
952
+ self.html = wx.html.HtmlWindow(self, style=wx.SUNKEN_BORDER)
953
+ self.printer = wx.html.HtmlEasyPrinting()
954
+
955
+ box = wx.BoxSizer(wx.VERTICAL)
956
+ box.Add(self.html, 1, wx.EXPAND)
957
+
958
+ self.SetSizer(box)
959
+ self.SetAutoLayout(True)
960
+
961
+ self.SetIcon(parent.GetIcon())
962
+ self.CreateStatusBar()
963
+
964
+ xvideo = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_X)
965
+ yvideo = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y)
966
+
967
+ self.SetSize((xvideo/2, yvideo/2))
968
+
969
+ self.html.LoadFile(self.htmlFile)
970
+ self.Show()
971
+
972
+
973
+ def BuildToolBar(self, toolbar):
974
+ """
975
+ Creates a toolbar for :class:`HTMLHelpWindow` containing the standard browsing
976
+ buttons like `Back`, `Forward`, `Home`, `Refresh` and `Print`.
977
+
978
+ :param `toolbar`: an instance of :class:`ToolBar`.
979
+ """
980
+
981
+ w, h = _html_reload.GetBitmap().GetWidth(), _html_reload.GetBitmap().GetHeight()
982
+ toolbar.SetToolBitmapSize((w, h))
983
+
984
+ toolbar.AddTool(wx.ID_BACKWARD, _('Back'), _html_back.GetBitmap(), wx.NullBitmap, shortHelpString=_('Back'),
985
+ longHelpString=_('Go to the previous page'))
986
+
987
+ toolbar.AddTool(wx.ID_FORWARD, _('Forward'), _html_forward.GetBitmap(), wx.NullBitmap, shortHelpString=_('Forward'),
988
+ longHelpString=_('Go to the next page'))
989
+
990
+ toolbar.AddSeparator()
991
+
992
+ toolbar.AddTool(wx.ID_HOME, _('Home'), _html_home.GetBitmap(), wx.NullBitmap, shortHelpString=_('Home Page'),
993
+ longHelpString=_('Go to the home page'))
994
+
995
+ toolbar.AddTool(wx.ID_REFRESH, _('Refresh'), _html_reload.GetBitmap(), wx.NullBitmap, shortHelpString=_('Refresh'),
996
+ longHelpString=_('Refresh the current page'))
997
+
998
+ toolbar.AddSeparator()
999
+ toolbar.AddStretchableSpace()
1000
+
1001
+ toolbar.AddTool(wx.ID_PRINT, _('Print'), _html_print.GetBitmap(), wx.NullBitmap, shortHelpString=_('Print'),
1002
+ longHelpString=_('Print the current page'))
1003
+
1004
+ toolbar.Realize()
1005
+
1006
+ self.Bind(wx.EVT_TOOL, self.OnHTMLToolbar)
1007
+ self.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI)
1008
+ self.Bind(wx.EVT_CLOSE, self.OnClose)
1009
+
1010
+
1011
+ def OnHTMLToolbar(self, event):
1012
+ """
1013
+ Handles all the ``wx.EVT_TOOL`` events for :class:`HTMLHelpWindow`.
1014
+
1015
+ :param `event`: an instance of :class:`CommandEvent`.
1016
+ """
1017
+
1018
+ evId = event.GetId()
1019
+
1020
+ if evId == wx.ID_BACKWARD:
1021
+ self.html.HistoryBack()
1022
+ elif evId == wx.ID_FORWARD:
1023
+ self.html.HistoryForward()
1024
+ elif evId == wx.ID_HOME:
1025
+ self.html.LoadFile(self.htmlFile)
1026
+ elif evId == wx.ID_REFRESH:
1027
+ self.html.LoadPage(self.html.GetOpenedPage())
1028
+ elif evId == wx.ID_PRINT:
1029
+ self.printer.GetPrintData().SetPaperId(wx.PAPER_LETTER)
1030
+ self.printer.PrintFile(self.html.GetOpenedPage())
1031
+ else:
1032
+ raise Exception('Invalid toolbar item in HTMLHelpWindow')
1033
+
1034
+
1035
+ def OnUpdateUI(self, event):
1036
+ """
1037
+ Handles all the ``wx.EVT_UPDATE_UI`` events for :class:`HTMLHelpWindow`.
1038
+
1039
+ :param `event`: an instance of :class:`UpdateUIEvent`.
1040
+ """
1041
+
1042
+ evId = event.GetId()
1043
+
1044
+ if evId == wx.ID_BACKWARD:
1045
+ event.Enable(self.html.HistoryCanBack())
1046
+ elif evId == wx.ID_FORWARD:
1047
+ event.Enable(self.html.HistoryCanForward())
1048
+ else:
1049
+ event.Skip()
1050
+
1051
+
1052
+ def OnClose(self, event):
1053
+ """
1054
+ Handles the ``wx.EVT_CLOSE`` event for :class:`HTMLHelpWindow`.
1055
+
1056
+ :param `event`: an instance of :class:`CloseEvent`.
1057
+ """
1058
+
1059
+ parent = self.GetParent()
1060
+ self.Destroy()
1061
+
1062
+ parent.htmlWindow = None
1063
+ event.Skip()
1064
+
1065
+
1066
+ # ----------------------------------------------------------------------------
1067
+ # ShortcutEvent is a special subclassing of wx.PyCommandEvent
1068
+ # ----------------------------------------------------------------------------
1069
+
1070
+ class ShortcutEvent(wx.PyCommandEvent):
1071
+ """
1072
+ :class:`ShortcutEvent` is a special subclassing of :class:`PyCommandEvent`.
1073
+
1074
+ This event gets emitted when the user is about to change a shortcut (via ``EVT_SHORTCUT_CHANGING``)
1075
+ and when the user has changed a shortcut (via ``EVT_SHORTCUT_CHANGED``).
1076
+ """
1077
+
1078
+ def __init__(self, evtType, evtId, **kwargs):
1079
+ """
1080
+ Default class constructor.
1081
+ For internal use: do not call it in your code!
1082
+
1083
+ :param integer `evtType`: the event type;
1084
+ :param integer `evtId`: the event identifier.
1085
+ """
1086
+
1087
+ wx.PyCommandEvent.__init__(self, evtType, evtId, **kwargs)
1088
+
1089
+
1090
+ def GetAccelerator(self):
1091
+ """
1092
+ Gets the shortcut string for which the operation was performed for ``EVT_SHORTCUT_CHANGED``
1093
+ and ``EVT_SHORTCUT_CHANGING`` events.
1094
+
1095
+ :return: A string representing the new shortcut string (accelerator).
1096
+ """
1097
+
1098
+ return self.accelerator
1099
+
1100
+
1101
+ def SetAccelerator(self, accelerator):
1102
+ """
1103
+ Sets the shortcut string for which the operation was performed for ``EVT_SHORTCUT_CHANGED``
1104
+ and ``EVT_SHORTCUT_CHANGING`` events.
1105
+
1106
+ :param string `accelerator`: a string representing the new shortcut string (accelerator).
1107
+ """
1108
+
1109
+ self.accelerator = accelerator
1110
+
1111
+
1112
+ def GetOldAccelerator(self):
1113
+ """
1114
+ Returns the previous shortcut string for ``EVT_SHORTCUT_CHANGED`` and
1115
+ ``EVT_SHORTCUT_CHANGING`` events.
1116
+
1117
+ :return: A string representing the old shortcut string (accelerator).
1118
+ """
1119
+
1120
+ return self.oldAccelerator
1121
+
1122
+
1123
+ def SetOldAccelerator(self, accelerator):
1124
+ """
1125
+ Sets the previous shortcut string for ``EVT_SHORTCUT_CHANGED`` and
1126
+ ``EVT_SHORTCUT_CHANGING`` events.
1127
+
1128
+ :param string `accelerator`: a string representing the old shortcut string (accelerator).
1129
+ """
1130
+
1131
+ self.oldAccelerator = accelerator
1132
+
1133
+
1134
+ def SetShortcut(self, shortcut):
1135
+ """
1136
+ Sets the shortcut class used for ``EVT_SHORTCUT_CHANGED`` and
1137
+ ``EVT_SHORTCUT_CHANGING`` events.
1138
+
1139
+ :param `shortcut`: an instance of :class:`Shortcut`.
1140
+ """
1141
+
1142
+ self.shortcut = shortcut
1143
+ self.accelerator = shortcut.accelerator
1144
+
1145
+
1146
+ def GetShortcut(self):
1147
+ """
1148
+ Returns the shortcut class used for ``EVT_SHORTCUT_CHANGED`` and
1149
+ ``EVT_SHORTCUT_CHANGING`` events.
1150
+
1151
+ :return: An instance of :class:`Shortcut`.
1152
+ """
1153
+
1154
+ return self.shortcut
1155
+
1156
+
1157
+ # ----------------------------------------------------------------------------
1158
+ # Shortcut is a class containing the details for a shortcut, whether from
1159
+ # a menu item, an accelerator or a user-defined shortcut. It behaves like
1160
+ # a tree, with children and parents.
1161
+ # ----------------------------------------------------------------------------
1162
+
1163
+ class Shortcut(object):
1164
+ """
1165
+ :class:`Shortcut` is a class containing the details for a shortcut, whether from
1166
+ a menu item, an accelerator or a user-defined shortcut. It behaves like
1167
+ a tree, with children and parents.
1168
+ """
1169
+
1170
+ def __init__(self, label='', accelerator='', bitmap=wx.NullBitmap, help='',
1171
+ menuItem=None, accelId=None):
1172
+ """
1173
+ Default class constructor.
1174
+
1175
+ :param string `label`: the shortcut label string;
1176
+ :param string `accelerator`: the shortcut accelerator string;
1177
+ :param `bitmap`: an instance of :class:`wx.Bitmap`, to display along the shortcut `label`
1178
+ in the interface tree;
1179
+ :param string `help`: the help string for this shortcut, to display in the interface tree;
1180
+ :param `menuItem`: if this :class:`Shortcut` is derived from a :class:`wx.MenuItem`, the :class:`wx.MenuItem`
1181
+ to which it should be associated;
1182
+ :param integer `accelId`: if this :class:`Shortcut` is derived from an accelerator in a :class:`AcceleratorTable`
1183
+ or from a custom, developer-defined shortcut, it represents the ID it is associated with.
1184
+ """
1185
+
1186
+ self.label = label
1187
+ self.accelerator = accelerator
1188
+ self.bitmap = bitmap
1189
+ self.help = help
1190
+ self.menuItem = menuItem
1191
+ self.accelId = accelId
1192
+
1193
+ self.parent = None
1194
+ self.topMenu = False
1195
+ self.imageIndex = -1
1196
+ self.changed = False
1197
+ self.shown = True
1198
+ self.position = None
1199
+
1200
+ self.originalAccelerator = accelerator
1201
+ self.children = []
1202
+
1203
+
1204
+ def AppendItem(self, item):
1205
+ """
1206
+ Appends a :class:`Shortcut` item as a last child of its parent.
1207
+
1208
+ :param `item`: an instance of :class:`Shortcut`.
1209
+ """
1210
+
1211
+ item.parent = self
1212
+ self.children.append(item)
1213
+
1214
+
1215
+ def GetAccelerator(self):
1216
+ """ Returns the string accelerator associated with this shortcut. """
1217
+
1218
+ return self.accelerator
1219
+
1220
+
1221
+ def SetAccelerator(self, accelerator):
1222
+ """
1223
+ Sets the string accelerator associated with this shortcut.
1224
+
1225
+ :param string `accelerator`: a string representing the shortcut string (accelerator).
1226
+ """
1227
+
1228
+ self.accelerator = accelerator
1229
+ self.changed = False
1230
+
1231
+ if self.originalAccelerator != accelerator:
1232
+ self.changed = True
1233
+
1234
+
1235
+ def HasChanged(self):
1236
+ """
1237
+ Returns ``True`` if the current accelerator associated with this :class:`Shortcut` is
1238
+ different from the original one, ``False`` otherwise.
1239
+ """
1240
+
1241
+ return self.changed
1242
+
1243
+
1244
+ def GetBitmap(self):
1245
+ """
1246
+ Returns the bitmap associated with this :class:`Shortcut`.
1247
+
1248
+ :note: You should always check if the returned bitmap is a valid one or not::
1249
+
1250
+ bitmap = shortcut.GetBitmap()
1251
+ if bitmap.IsOk():
1252
+ DoSomething()
1253
+
1254
+
1255
+ as the default bitmap associated with a :class:`Shortcut` is :class:`NullBitmap`.
1256
+ """
1257
+
1258
+ return self.bitmap
1259
+
1260
+
1261
+ def SetBitmap(self, bitmap):
1262
+ """
1263
+ Sets the bitmap associated with this :class:`Shortcut`.
1264
+
1265
+ :param `bitmap`: an instance of :class:`wx.Bitmap` (can be invalid, i.e., :class:`NullBitmap`).
1266
+ """
1267
+
1268
+ self.bitmap = bitmap
1269
+
1270
+
1271
+ def GetLabel(self):
1272
+ """ Returns the string label associated with this shortcut. """
1273
+
1274
+ return self.label
1275
+
1276
+
1277
+ def IsTop(self):
1278
+ """
1279
+ Returns ``True`` if this :class:`Shortcut` is associated with a top-level :class:`wx.Menu`,
1280
+ (i.e., in the top :class:`wx.MenuBar` level), ``False`` otherwise.
1281
+ """
1282
+
1283
+ return self.topMenu
1284
+
1285
+
1286
+ def GetFirstChild(self, item):
1287
+ """
1288
+ Returns this :class:`Shortcut`'s first child and an integer value 'cookie'.
1289
+ Call :meth:`~Shortcut.GetNextChild` for the next child using this very 'cookie' return
1290
+ value as an input.
1291
+
1292
+ :param `item`: an instance of :class:`Shortcut`.
1293
+
1294
+ :return: A tuple with the first value being an instance of :class:`Shortcut` or ``None`` if there are no
1295
+ further children, and as second value an integer parameter 'cookie'.
1296
+
1297
+ :note: This method returns ``None`` if there are no further children.
1298
+ """
1299
+
1300
+ cookie = 0
1301
+ return self.GetNextChild(item, cookie)
1302
+
1303
+
1304
+ def GetNextChild(self, item, cookie):
1305
+ """
1306
+ Returns this :class:`Shortcut`'s next child.
1307
+
1308
+ :param `item`: an instance of :class:`Shortcut`;
1309
+ :param integer `cookie`: a parameter which is opaque for the application but is necessary
1310
+ for the library to make this function reentrant (i.e. allow more than one
1311
+ enumeration on one and the same object simultaneously).
1312
+
1313
+ :return: A tuple with the first value being an instance of :class:`Shortcut` or ``None`` if there are no
1314
+ further children, and as second value an integer parameter 'cookie'.
1315
+
1316
+ :note: This method returns ``None`` if there are no further children.
1317
+ """
1318
+
1319
+ children = item.children
1320
+ if cookie < len(children):
1321
+ return children[cookie], cookie + 1
1322
+
1323
+ return None, cookie
1324
+
1325
+
1326
+ def GetImageIndex(self):
1327
+ """ Returns an integer index to be used in the :class:`ListShortcut` own :class:`wx.ImageList`. """
1328
+
1329
+ return self.imageIndex
1330
+
1331
+
1332
+ def CheckAccelerator(self, item, shortcut, accelerator):
1333
+ """
1334
+ Checks if a shortcut string entered by the user has already been taken by another entry
1335
+ in the :class:`Shortcut` hierarchy.
1336
+
1337
+ :param `item`: an instance of :class:`Shortcut`;
1338
+ :param `shortcut`: another instance of :class:`Shortcut`, to compare with the previous `item`;
1339
+ :param string `accelerator`: the user-edited accelerator string to check.
1340
+
1341
+ :return: An instance of :class:`Shortcut` if the shortcut string entered by the user conflicts
1342
+ with an existing one, ``None`` otherwise.
1343
+ """
1344
+
1345
+ child, cookie = self.GetFirstChild(item)
1346
+
1347
+ while child:
1348
+ existingAccel = child.accelerator.lower().split('+')
1349
+ existingAccel.sort()
1350
+
1351
+ if existingAccel == accelerator and shortcut != child:
1352
+ return child
1353
+
1354
+ conflict = self.CheckAccelerator(child, shortcut, accelerator)
1355
+
1356
+ if conflict:
1357
+ return conflict
1358
+
1359
+ child, cookie = self.GetNextChild(item, cookie)
1360
+
1361
+ return None
1362
+
1363
+
1364
+ def Match(self, filter='', item=None):
1365
+ """
1366
+ Matches this :class:`Shortcut` label string against the `filter` input variable.
1367
+
1368
+ :param string `filter`: a string to match;
1369
+ :param `item`: an instance of :class:`Shortcut`: its label string is compared with
1370
+ the `filter` string to look for a match.
1371
+
1372
+ :return: An instance of :class:`Shortcut` if the `filter` string is contained in
1373
+ the `item` lable, ``None`` otherwise.
1374
+
1375
+ :note: The string-matching is case-insensitive.
1376
+ """
1377
+
1378
+ if item is None:
1379
+ item = self
1380
+
1381
+ child, cookie = self.GetFirstChild(item)
1382
+
1383
+ while child:
1384
+
1385
+ if filter in child.label.lower():
1386
+ self.ShowHierarchy(child)
1387
+
1388
+ self.Match(filter, child)
1389
+ child, cookie = self.GetNextChild(item, cookie)
1390
+
1391
+
1392
+ def ShowHierarchy(self, item):
1393
+ """
1394
+ Set the status of this :class:`Shortcut` ans its parent as `shown` in the
1395
+ :class:`ListShortcut` tree hierarchy.
1396
+
1397
+ :param `item`: an instance of :class:`Shortcut`.
1398
+ """
1399
+
1400
+ item.shown = True
1401
+ parent = item.parent
1402
+
1403
+ while parent:
1404
+ parent.shown = True
1405
+ parent = parent.parent
1406
+
1407
+
1408
+ def ResetVisibility(self, item=None):
1409
+ """
1410
+ Set the status of this :class:`Shortcut` and its parent as `hidden` in the
1411
+ :class:`ListShortcut` tree hierarchy.
1412
+
1413
+ :param `item`: an instance of :class:`Shortcut`, used only to make this function reentrant
1414
+ (i.e. allow more than one enumeration on one and the same object simultaneously).
1415
+ """
1416
+
1417
+ if item is None:
1418
+ item = self
1419
+
1420
+ child, cookie = self.GetFirstChild(item)
1421
+
1422
+ while child:
1423
+ child.shown = False
1424
+ item.shown = False
1425
+ self.ResetVisibility(child)
1426
+ child, cookie = self.GetNextChild(item, cookie)
1427
+
1428
+
1429
+ def Get(self, label, item=None):
1430
+ """
1431
+ Returns an instance of :class:`Shortcut` whose label matches the input `label` string.
1432
+
1433
+ :param string `label`: the string label to compare against this :class:`Shortcut` label;
1434
+ :param `item`: an instance of :class:`Shortcut`, used only to make this function reentrant
1435
+ (i.e. allow more than one enumeration on one and the same object simultaneously).
1436
+
1437
+ :return: An instance of :class:`Shortcut` or ``None`` if no match was found.
1438
+ """
1439
+
1440
+ if item is None:
1441
+ item = self
1442
+
1443
+ child, cookie = self.GetFirstChild(item)
1444
+ retChild = None
1445
+
1446
+ while child:
1447
+ if child.label.lower() == label.lower():
1448
+ return child
1449
+
1450
+ retChild = self.Get(label, child)
1451
+ child, cookie = self.GetNextChild(item, cookie)
1452
+
1453
+ return retChild
1454
+
1455
+
1456
+ def GetById(self, id, item=None):
1457
+ """
1458
+ Returns an instance of :class:`Shortcut` whose ID matches the input `id`.
1459
+
1460
+ :param integer `id`: an integer ID to compare against this :class:`Shortcut` id;
1461
+ :param `item`: an instance of :class:`Shortcut`, used only to make this function reentrant
1462
+ (i.e. allow more than one enumeration on one and the same object simultaneously).
1463
+
1464
+ :return: An instance of :class:`Shortcut` or ``None`` if no match was found.
1465
+ """
1466
+
1467
+ if item is None:
1468
+ item = self
1469
+
1470
+ child, cookie = self.GetFirstChild(item)
1471
+ retChild = None
1472
+
1473
+ while child:
1474
+ if child.menuItem and child.menuItem.GetId() == id:
1475
+ return child
1476
+ elif child.accelId == id:
1477
+ return child
1478
+
1479
+ retChild = self.GetById(id, child)
1480
+ child, cookie = self.GetNextChild(item, cookie)
1481
+
1482
+ return retChild
1483
+
1484
+
1485
+ def GetId(self):
1486
+ """ Returns this :class:`Shortcut` ID. """
1487
+
1488
+ if self.menuItem is not None:
1489
+ if isinstance(self.menuItem, wx.Menu):
1490
+ return 1
1491
+ return self.menuItem.GetId()
1492
+
1493
+ return self.accelId
1494
+
1495
+
1496
+ def RestoreDefaults(self, item=None):
1497
+ """
1498
+ Restore the original shortcut string for this :class:`Shortcut`.
1499
+
1500
+ :param `item`: an instance of :class:`Shortcut`, used only to make this function reentrant
1501
+ (i.e. allow more than one enumeration on one and the same object simultaneously).
1502
+ """
1503
+
1504
+ if item is None:
1505
+ item = self
1506
+
1507
+ child, cookie = self.GetFirstChild(item)
1508
+
1509
+ while child:
1510
+ child.accelerator = child.originalAccelerator
1511
+ child.changed = False
1512
+ self.RestoreDefaults(child)
1513
+ child, cookie = self.GetNextChild(item, cookie)
1514
+
1515
+
1516
+ def FromMenuItem(self):
1517
+ """
1518
+ Constructs this :class:`Shortcut` starting from a :class:`wx.Menu` or :class:`wx.MenuItem`.
1519
+
1520
+ The attributes needed to properly construct a :class:`Shortcut` are the label,
1521
+ the accelerator string, the help string (optional) and the bitmap associated
1522
+ with it (optional).
1523
+ """
1524
+
1525
+ if self.menuItem is None:
1526
+ return
1527
+
1528
+ menuItem = self.menuItem
1529
+
1530
+ if isinstance(menuItem, wx.Menu):
1531
+ label = menuItem.GetTitle()
1532
+ accelerator = DISABLED_STRING
1533
+ help = ''
1534
+ bitmap = wx.NullBitmap
1535
+ else:
1536
+ label = menuItem.GetItemLabelText()
1537
+ accelerator = menuItem.GetItemLabel()
1538
+
1539
+ if '\t' in accelerator:
1540
+ accelerator = accelerator[accelerator.index('\t')+1:]
1541
+ else:
1542
+ accelerator = DISABLED_STRING
1543
+
1544
+ help = menuItem.GetHelp()
1545
+ bitmap = menuItem.GetBitmap()
1546
+
1547
+ self.label = label
1548
+ self.accelerator = accelerator
1549
+ self.help = help
1550
+ self.bitmap = bitmap
1551
+
1552
+ self.originalAccelerator = accelerator
1553
+
1554
+
1555
+ def ToMenuItem(self, menuBar):
1556
+ """
1557
+ Dumps this :class:`Shortcut` into a :class:`wx.Menu` or :class:`wx.MenuItem`.
1558
+
1559
+ The attributes needed to properly dump a :class:`Shortcut` into a :class:`wx.Menu` or :class:`wx.MenuBar`
1560
+ are the label and the accelerator string.
1561
+
1562
+ :param `menuBar`: an instance of :class:`wx.MenuBar`.
1563
+ """
1564
+
1565
+ if self.menuItem is None or not self.changed:
1566
+ return
1567
+
1568
+ menuItem = self.menuItem
1569
+
1570
+ if isinstance(menuItem, wx.Menu):
1571
+
1572
+ if self.accelerator == DISABLED_STRING:
1573
+ label = self.label
1574
+ else:
1575
+ label = '%s\t%s'%(self.label, self.accelerator)
1576
+
1577
+ menuBar.SetMenuLabel(menuItem.position, label)
1578
+
1579
+ else:
1580
+
1581
+ label = menuItem.GetItemLabel()
1582
+ if '\t' in label:
1583
+ label = label[0:label.index('\t')]
1584
+
1585
+ if self.accelerator != DISABLED_STRING:
1586
+ label = '%s\t%s'%(label, self.accelerator)
1587
+
1588
+ menuBar.SetLabel(menuItem.GetId(), label)
1589
+
1590
+
1591
+ def ToAcceleratorItem(self, table):
1592
+ """
1593
+ Dumps this :class:`Shortcut` into a tuple of 3 elements:
1594
+
1595
+ * **flags**: a bitmask of ``wx.ACCEL_ALT``, ``wx.ACCEL_SHIFT``, ``wx.ACCEL_CTRL``, ``wx.ACCEL_CMD``
1596
+ or ``wx.ACCEL_NORMAL`` used to specify which modifier keys are held down;
1597
+ * **keyCode**: the keycode to be detected (i.e., ord('b'), wx.WXK_F10, etc...);
1598
+ * **cmdID**: the menu or control command ID to use for the accelerator event.
1599
+
1600
+ :param `table`: a list of tuples, with the above specifications.
1601
+ """
1602
+
1603
+ if self.menuItem is not None or not self.changed:
1604
+ return
1605
+
1606
+ if self.GetId() is None:
1607
+ return
1608
+
1609
+ accelerator = self.accelerator
1610
+ accelId = self.accelId
1611
+
1612
+ split = accelerator.split('+')
1613
+ modifiers, keyCode = split[0:-1], split[-1]
1614
+
1615
+ inv_Accel = dict(zip(ACCELERATORS.values(), ACCELERATORS.keys()))
1616
+ inv_KeyMap = dict(zip(KEYMAP.values(), KEYMAP.keys()))
1617
+
1618
+ base = wx.ACCEL_NORMAL
1619
+
1620
+ for mod in modifiers:
1621
+ base |= inv_Accel[mod]
1622
+
1623
+ if keyCode in inv_KeyMap:
1624
+ keyCode = inv_KeyMap[keyCode]
1625
+ else:
1626
+ keyCode = ord(keyCode)
1627
+
1628
+ accelItem = (base, keyCode, accelId)
1629
+ table.append(accelItem)
1630
+
1631
+
1632
+ # ----------------------------------------------------------------------------
1633
+ # ConflictDialog is a subclass of GenericMessageDialog, customized to look
1634
+ # like the GIMP conflict dialog.
1635
+ # ----------------------------------------------------------------------------
1636
+
1637
+ class ConflictDialog(GMD.GenericMessageDialog):
1638
+ """
1639
+ :class:`ConflictDialog` is a subclass of :class:`GenericMessageDialog`, customized to look
1640
+ like the GIMP conflict dialog. This class is used to resolve shortcut
1641
+ conflicts when the user assigns a shortcut that is already taken by another
1642
+ entry in the shortcut list.
1643
+ """
1644
+
1645
+ def __init__(self, parent, conflict):
1646
+ """
1647
+ Default class constructor.
1648
+
1649
+ :param `parent`: an instance of :class:`ShortcutEditor`;
1650
+ :param `conflict`: an instance of :class:`Shortcut`, representing the conflicting
1651
+ shortcut.
1652
+ """
1653
+
1654
+ transDict = dict(shortcut=conflict.accelerator, item=conflict.label, group=conflict.parent.label)
1655
+ message = _('Shortcut "%(shortcut)s" is already taken by\n"%(item)s" from the "%(group)s" group. ')%transDict
1656
+
1657
+ transDict = dict(item=conflict.label)
1658
+ extendedMessage = _('Reassigning the shortcut will cause it to be removed from \n"%(item)s". ')%transDict
1659
+
1660
+ GMD.GenericMessageDialog.__init__(self, parent, message, _('Conflicting Shortcuts'),
1661
+ wx.OK|wx.CANCEL|wx.ICON_EXCLAMATION)
1662
+
1663
+ self.SetOKLabel(_('Reassing shortcut '))
1664
+ self.SetOKBitmap(_reassign.GetBitmap())
1665
+
1666
+ self.SetExtendedMessage(extendedMessage + '\n')
1667
+ self.SetIcon(parent.GetParent().GetIcon())
1668
+
1669
+
1670
+ # ----------------------------------------------------------------------------
1671
+ # ListShortcut is a subclass of HyperTreeList, customized to look
1672
+ # like the GIMP main shortcut list.
1673
+ # ----------------------------------------------------------------------------
1674
+
1675
+ class ListShortcut(HTL.HyperTreeList, treemixin.ExpansionState):
1676
+ """
1677
+ :class:`ListShortcut` is a subclass of :class:`~wx.lib.agw.hypertreelist.HyperTreeList`,
1678
+ customized to look like the GIMP main shortcut list. This class is used to display the
1679
+ shortcut label (with an optional bitmap next to it), its accelerator and
1680
+ the help string associated with it (if present).
1681
+
1682
+ This information is displayed in 3 columns inside :class:`ListShortcut`.
1683
+ """
1684
+
1685
+ def __init__(self, parent):
1686
+ """
1687
+ Default class constructor.
1688
+
1689
+ :param `parent`: an instance of :class:`ShortcutEditor`.
1690
+ """
1691
+
1692
+ HTL.HyperTreeList.__init__(self, parent, style=wx.BORDER_THEME,
1693
+ agwStyle=wx.TR_DEFAULT_STYLE|wx.TR_HIDE_ROOT|
1694
+ wx.TR_FULL_ROW_HIGHLIGHT|HTL.TR_ELLIPSIZE_LONG_ITEMS)
1695
+
1696
+ self.SetBackgroundColour(wx.WHITE)
1697
+
1698
+ self.AddColumn(_('Action'))
1699
+ self.AddColumn(_('Shortcut'))
1700
+ self.AddColumn(_('Help Label'))
1701
+ self.SetMainColumn(0) # the one with the tree in it...
1702
+
1703
+ self.AddRoot('')
1704
+ self.CalculateOffset()
1705
+
1706
+ self.selectedItem = None
1707
+ self.hookBound = False
1708
+ self.filter = ''
1709
+ self.expansionState = []
1710
+
1711
+ self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged)
1712
+ self.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.OnExpandCollapse)
1713
+ self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnExpandCollapse)
1714
+
1715
+ mainWindow = self.GetMainWindow()
1716
+ mainWindow.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
1717
+ mainWindow.Bind(wx.EVT_KILL_FOCUS, self.OnKillFocus)
1718
+
1719
+
1720
+ def CalculateOffset(self):
1721
+ """
1722
+ Calculates an offset (in pixels) so that the :class:`Shortcut` items without
1723
+ a bitmap look parallel to the ones with a bitmap.
1724
+ """
1725
+
1726
+ dc = wx.MemoryDC()
1727
+ dc.SelectObject(wx.Bitmap(20, 20))
1728
+ dc.SetFont(self.GetFont())
1729
+
1730
+ space = 0
1731
+ text = ''
1732
+
1733
+ while space < 15:
1734
+ space, dummy = dc.GetTextExtent(text)
1735
+ text += ' '
1736
+
1737
+ dc.SelectObject(wx.NullBitmap)
1738
+ self.offset = text
1739
+
1740
+ boldFont = FontFromFont(self.GetFont())
1741
+ boldFont.SetWeight(wx.FONTWEIGHT_BOLD)
1742
+
1743
+ self.boldFont = boldFont
1744
+
1745
+
1746
+ def Populate(self, item=None, shortcut=None):
1747
+ """
1748
+ Recursively populates the :class:`ListShortcut` with information from the :class:`Shortcut` tree.
1749
+
1750
+ :param `item`: an instance of :class:`~wx.lib.agw.customtreectrl.GenericTreeItem`. If ``None``, it is defaulted to
1751
+ the :class:`ListShortcut` root item to make this function reentrant (i.e. allow more than one
1752
+ enumeration on one and the same object simultaneously);
1753
+ :param `shortcut`: an instance of :class:`Shortcut`. If ``None``, it is defaulted to
1754
+ `self.manager` to make this function reentrant (i.e. allow more than one
1755
+ enumeration on one and the same object simultaneously).
1756
+ """
1757
+
1758
+ if shortcut is None:
1759
+ shortcut = self.manager
1760
+ item = self.GetRootItem()
1761
+
1762
+ for child in shortcut.children:
1763
+
1764
+ if not child.shown:
1765
+ continue
1766
+
1767
+ image = child.GetImageIndex()
1768
+ label = child.label
1769
+
1770
+ if image < 0:
1771
+ if not child.IsTop():
1772
+ label = self.offset + label
1773
+
1774
+ newItem = self.AppendItem(item, label, data=child)
1775
+ else:
1776
+ newItem = self.AppendItem(item, label, image=image, data=child)
1777
+
1778
+ if child.IsTop():
1779
+ self.SetItemFont(newItem, self.boldFont)
1780
+
1781
+ self.SetItemText(newItem, child.accelerator, 1)
1782
+ self.SetItemText(newItem, child.help, 2)
1783
+
1784
+ colour = (child.HasChanged() and [wx.RED] or [wx.BLACK])[0]
1785
+ self.SetItemTextColour(newItem, colour)
1786
+
1787
+ self.Populate(newItem, child)
1788
+
1789
+
1790
+ def MakeImageList(self):
1791
+ """ Builds the :class:`ListShortcut` image list based on the bitmaps in the :class:`Shortcut` hierarchy. """
1792
+
1793
+ self.imageList = wx.ImageList(16, 16)
1794
+ self.BuildImageList()
1795
+ self.AssignImageList(self.imageList)
1796
+
1797
+
1798
+ def BuildImageList(self, shortcut=None, index=None):
1799
+ """
1800
+ Recursively builds the :class:`ListShortcut` image list based on the bitmaps in the
1801
+ :class:`Shortcut` hierarchy.
1802
+
1803
+ :param `shortcut`: an instance of :class:`Shortcut`. If ``None``, it is defaulted to
1804
+ `self.manager` to make this function reentrant (i.e. allow more than one
1805
+ enumeration on one and the same object simultaneously);
1806
+ :param integer `index`: the current image index inside the :class:`ListShortcut` own :class:`wx.ImageList`.
1807
+ """
1808
+
1809
+ if shortcut is None:
1810
+ shortcut = self.manager
1811
+ index = 0
1812
+
1813
+ for child in shortcut.children:
1814
+ bitmap = child.GetBitmap()
1815
+
1816
+ if bitmap.IsOk():
1817
+ if bitmap.GetSize() != (16, 16):
1818
+ bitmap = bitmap.ConvertToImage().Scale(16, 16, wx.IMAGE_QUALITY_HIGH).ConvertToBitmap()
1819
+ self.imageList.Add(bitmap)
1820
+ child.imageIndex = index
1821
+ index += 1
1822
+
1823
+ index = self.BuildImageList(child, index)
1824
+
1825
+ return index
1826
+
1827
+
1828
+ def GetItemIdentity(self, item):
1829
+ """
1830
+ Return a hashable object that represents the identity of a :class:`ListShortcut` item.
1831
+
1832
+ In this implementation this returns the item label.
1833
+
1834
+ :param `item`: an instance of :class:`~wx.lib.agw.customtreectrl.GenericTreeItem`.
1835
+ """
1836
+
1837
+ return self.GetItemText(item)
1838
+
1839
+
1840
+ def OnSelChanged(self, event):
1841
+ """
1842
+ Handles the ``wx.EVT_TREE_SEL_CHANGED`` event for :class:`ListShortcut`.
1843
+
1844
+ :param `event`: an instance of :class:`TreeEvent`.
1845
+ """
1846
+
1847
+ selectedItem = event.GetItem()
1848
+
1849
+ if selectedItem != self.selectedItem:
1850
+ if self.selectedItem is not None:
1851
+ pydata = self.GetPyData(self.selectedItem)
1852
+ self.SetItemText(self.selectedItem, pydata.accelerator, 1)
1853
+ else:
1854
+ pydata = self.GetPyData(selectedItem)
1855
+ if pydata.GetId() is not None:
1856
+ self.SetItemText(selectedItem, NEW_ACCEL_STRING, 1)
1857
+ else:
1858
+
1859
+ pydata = self.GetPyData(selectedItem)
1860
+ self.SetItemText(selectedItem, pydata.accelerator, 1)
1861
+
1862
+ self.selectedItem = selectedItem
1863
+ self.ShowShortcutText(False)
1864
+
1865
+
1866
+ def OnExpandCollapse(self, event):
1867
+ """
1868
+ Handles the ``wx.EVT_TREE_ITEM_COLLAPSED`` / ``wx.EVT_TREE_ITEM_EXPANDED`` events for :class:`ListShortcut`.
1869
+
1870
+ :param `event`: an instance of :class:`TreeEvent`.
1871
+ """
1872
+
1873
+ event.Skip()
1874
+ self.expansionState = self.GetExpansionState()
1875
+
1876
+
1877
+ def OnLeftDown(self, event):
1878
+ """
1879
+ Handles the ``wx.EVT_LEFT_DOWN`` event for :class:`ListShortcut`.
1880
+
1881
+ :param `event`: an instance of :class:`MouseEvent`.
1882
+ """
1883
+
1884
+ if not self.hookBound:
1885
+ self.GetParent().Bind(wx.EVT_CHAR_HOOK, self.OnShortcut)
1886
+ self.hookBound = True
1887
+
1888
+ currentItem, flags, column = self.HitTest(event.GetPosition())
1889
+
1890
+ if self.selectedItem is None or not currentItem:
1891
+ event.Skip()
1892
+ return
1893
+
1894
+ pydata = self.GetPyData(currentItem)
1895
+
1896
+ if pydata.GetId() is None:
1897
+ event.Skip()
1898
+ return
1899
+
1900
+ if self.GetItemText(currentItem, 1) != NEW_ACCEL_STRING:
1901
+ self.SetItemText(currentItem, NEW_ACCEL_STRING, 1)
1902
+ else:
1903
+ self.SetItemText(currentItem, pydata.accelerator, 1)
1904
+
1905
+ event.Skip()
1906
+
1907
+
1908
+ def OnKillFocus(self, event):
1909
+ """
1910
+ Handles the ``wx.EVT_KILL_FOCUS`` event for :class:`ListShortcut`.
1911
+
1912
+ :param `event`: an instance of :class:`FocusEvent`.
1913
+ """
1914
+
1915
+ self.GetParent().Unbind(wx.EVT_CHAR_HOOK)
1916
+ self.hookBound = False
1917
+
1918
+ self.ShowShortcutText(False)
1919
+
1920
+ if self.selectedItem:
1921
+ pydata = self.GetPyData(self.selectedItem)
1922
+ self.SetItemText(self.selectedItem, pydata.accelerator, 1)
1923
+
1924
+ event.Skip()
1925
+
1926
+
1927
+ def OnShortcut(self, event):
1928
+ """
1929
+ Handles the ``wx.EVT_CHAR_HOOK`` event for :class:`ShortcutEditor`, implemented in :class:`ListShortcut`
1930
+ as it is easier to deal with in this class.
1931
+
1932
+ :param `event`: an instance of :class:`KeyEvent`.
1933
+ """
1934
+
1935
+ if self.selectedItem is None:
1936
+ # How did we get here???
1937
+ event.Skip()
1938
+ return
1939
+
1940
+ pydata = self.GetPyData(self.selectedItem)
1941
+ currentText = self.GetItemText(self.selectedItem, 1)
1942
+
1943
+ if pydata.GetId() is None:
1944
+ # Don't allow to change labels for shortcuts without an ID
1945
+ event.Skip()
1946
+ return
1947
+
1948
+ self.ShowShortcutText(True)
1949
+ textCtrl = self.GetParent().hiddenText
1950
+
1951
+ keyCode = event.GetKeyCode()
1952
+ modifiers = event.GetModifiers()
1953
+
1954
+ # If we press backspace with no modifers down, *and* the current text is
1955
+ # "New accelerator..." then we reset the accelerator to "Disabled"
1956
+ if keyCode == wx.WXK_BACK and modifiers == 0 and currentText in [NEW_ACCEL_STRING, DISABLED_STRING]:
1957
+
1958
+ accelerator = DISABLED_STRING
1959
+
1960
+ if not self.FireShortcutChanging(pydata, accelerator):
1961
+ return
1962
+
1963
+ pydata.SetAccelerator(accelerator)
1964
+ self.SetItemText(self.selectedItem, pydata.accelerator, 1)
1965
+
1966
+ colour = (pydata.HasChanged() and [wx.RED] or [wx.BLACK])[0]
1967
+ self.SetItemTextColour(self.selectedItem, colour)
1968
+
1969
+ self.ShowShortcutText(False)
1970
+ self.FireShortcutChanged(pydata, accelerator)
1971
+
1972
+ return
1973
+
1974
+ newContent = ''
1975
+
1976
+ for mod_int, mod_name in MODIFIERS:
1977
+
1978
+ if modifiers & mod_int == 0:
1979
+ continue
1980
+
1981
+ newContent += mod_name + '+'
1982
+
1983
+ if newContent.strip():
1984
+ textCtrl.ChangeValue(newContent)
1985
+
1986
+ accelerator = ''
1987
+
1988
+ if keyCode in KEYMAP:
1989
+ accelerator = newContent + KEYMAP[keyCode]
1990
+ else:
1991
+ try:
1992
+ toChar = chr(keyCode)
1993
+ accelerator = newContent + toChar
1994
+ except ValueError:
1995
+ pass
1996
+
1997
+ if accelerator:
1998
+
1999
+ if not self.FireShortcutChanging(pydata, accelerator):
2000
+ return
2001
+
2002
+ if self.AcceptShortcut(pydata, accelerator):
2003
+
2004
+ pydata.SetAccelerator(accelerator)
2005
+ self.SetItemText(self.selectedItem, pydata.accelerator, 1)
2006
+
2007
+ colour = (pydata.HasChanged() and [wx.RED] or [wx.BLACK])[0]
2008
+ self.SetItemTextColour(self.selectedItem, colour)
2009
+
2010
+ self.ShowShortcutText(False)
2011
+ self.FireShortcutChanged(pydata, accelerator)
2012
+
2013
+
2014
+ def AcceptShortcut(self, shortcut, accelerator):
2015
+ """
2016
+ Returns ``True`` if the input `accelerator` is a valid shortcut, ``False`` otherwise.
2017
+
2018
+ :param `shortcut`: an instance of :class:`Shortcut`;
2019
+ :param string `accelerator`: the new accelerator to check.
2020
+
2021
+ :note: Conflicting shortcuts are handled inside this method by presenting the user with
2022
+ a conflict dialog. At this point the user can decide to reassign an existing shortcut
2023
+ or to back away, in which case this method will return ``False``.
2024
+ """
2025
+
2026
+ sortedAccel = accelerator.lower().split('+')
2027
+ sortedAccel.sort()
2028
+
2029
+ conflict = self.manager.CheckAccelerator(self.manager, shortcut, sortedAccel)
2030
+
2031
+ if conflict is None:
2032
+ return True
2033
+
2034
+ dlg = ConflictDialog(self.GetParent(), conflict)
2035
+
2036
+ if dlg.ShowModal() == wx.ID_OK:
2037
+ self.DisableShortcut(conflict)
2038
+ dlg.Destroy()
2039
+ return True
2040
+
2041
+ dlg.Destroy()
2042
+ return False
2043
+
2044
+
2045
+ def DisableShortcut(self, conflict, item=None):
2046
+ """
2047
+ If the user decides to reassign a shortcut to another item, this method will disable
2048
+ the conflicting shortcut (by putting a "Disabled" string as its accelerator).
2049
+
2050
+ :param `conflict`: an instance of :class:`Shortcut` to reset;
2051
+ :param `item`: an instance of :class:`~wx.lib.agw.customtreectrl.GenericTreeItem`. If defaulted to ``None``, it is set
2052
+ to the :class:`ListShortcut` root item and used only to make this function reentrant
2053
+ (i.e. allow more than one enumeration on one and the same object simultaneously).
2054
+ """
2055
+
2056
+ if item is None:
2057
+ item = self.GetRootItem()
2058
+
2059
+ child, cookie = self.GetFirstChild(item)
2060
+
2061
+ while child:
2062
+ if child.GetData() == conflict:
2063
+ conflict.SetAccelerator(DISABLED_STRING)
2064
+ self.SetItemText(child, conflict.accelerator, 1)
2065
+
2066
+ colour = (conflict.HasChanged() and [wx.RED] or [wx.BLACK])[0]
2067
+ self.SetItemTextColour(child, colour)
2068
+ return
2069
+
2070
+ self.DisableShortcut(conflict, child)
2071
+ child, cookie = self.GetNextChild(item, cookie)
2072
+
2073
+
2074
+ def FireShortcutChanging(self, shortcut, newAccel):
2075
+ """
2076
+ Fires the ``EVT_SHORTCUT_CHANGING`` event for :class:`ListShortcut`.
2077
+
2078
+ The event propagation (and thus the shortcut renaming by the user) can be
2079
+ interrupted by *not* calling `event.Skip()` in your handler for this event.
2080
+
2081
+ :param `shortcut`: an instance of :class:`Shortcut` that is about to be renamed;
2082
+ :param string `newAccel`: the new accelerator just entered by the user.
2083
+ """
2084
+
2085
+ event = ShortcutEvent(wxEVT_SHORTCUT_CHANGING, self.GetId())
2086
+ event.SetShortcut(shortcut)
2087
+ event.oldAccelerator = shortcut.accelerator
2088
+ event.accelerator = newAccel
2089
+ event.SetEventObject(self)
2090
+
2091
+ if self.GetEventHandler().ProcessEvent(event):
2092
+ # the caller didn't use event.Skip()
2093
+ return False
2094
+
2095
+ return True
2096
+
2097
+
2098
+ def FireShortcutChanged(self, shortcut, newAccel):
2099
+ """
2100
+ Fires the ``EVT_SHORTCUT_CHANGED`` event for :class:`ListShortcut`.
2101
+
2102
+ :param `shortcut`: an instance of :class:`Shortcut` that has been renamed;
2103
+ :param string `newAccel`: the new accelerator just entered by the user.
2104
+ """
2105
+
2106
+ event = ShortcutEvent(wxEVT_SHORTCUT_CHANGED, self.GetId())
2107
+ event.SetShortcut(shortcut)
2108
+ event.oldAccelerator = shortcut.accelerator
2109
+ event.accelerator = newAccel
2110
+ event.SetEventObject(self)
2111
+
2112
+ self.GetEventHandler().ProcessEvent(event)
2113
+
2114
+ return True
2115
+
2116
+
2117
+ def ShowShortcutText(self, show):
2118
+ """
2119
+ Shows/Hides a :class:`TextCtrl` used to display the combination of keystrokes the user
2120
+ has entered. This :class:`TextCtrl` remains visible only for a short amount of time
2121
+ and only when some keys are down.
2122
+
2123
+ :param bool `show`: ``True`` to show the :class:`TextCtrl`, ``False`` to hide it.
2124
+ """
2125
+
2126
+ textCtrl = self.GetParent().hiddenText
2127
+
2128
+ if show and not textCtrl.IsShown():
2129
+ textCtrl.Show()
2130
+
2131
+ elif not show and textCtrl.IsShown():
2132
+ textCtrl.Hide()
2133
+
2134
+
2135
+ def SetFilter(self, filter=''):
2136
+ """
2137
+ Sets the `filter` string against all the shortcuts in the :class:`ListShortcut` are matched.
2138
+
2139
+ :param string `filter`: a string to match.
2140
+ """
2141
+
2142
+ self.filter = filter
2143
+
2144
+ self.manager.ResetVisibility()
2145
+ self.manager.Match(filter)
2146
+ self.RecreateTree()
2147
+
2148
+
2149
+ def RecreateTree(self):
2150
+ """ Recreates the entire :class:`ListShortcut` (columns excluded). """
2151
+
2152
+ self.Freeze()
2153
+ self.DeleteAllItems()
2154
+ self.AddRoot('')
2155
+
2156
+ self.Populate()
2157
+
2158
+ if not self.expansionState:
2159
+ # Only the root item
2160
+ self.ExpandAll()
2161
+ else:
2162
+ self.SetExpansionState(self.expansionState)
2163
+
2164
+ self.Thaw()
2165
+
2166
+
2167
+ def HasFlag(self, flag):
2168
+ """
2169
+ Overridden from :class:`wx.Window` as a workaround on the conflicts between `treemixin` and
2170
+ :class:`~wx.lib.agw.hypertreelist.HyperTreeList` with the ``wx.TR_HIDE_ROOT`` `agwStyle` set.
2171
+
2172
+ :param integer `flag`: an integer bit flag specifying the `agwStyle` style.
2173
+
2174
+ :return: ``True`` if the :class:`ListShortcut` has the input `flag` set, ``False`` otherwise.
2175
+
2176
+ :note: Overridden from :class:`wx.Window`.
2177
+ """
2178
+
2179
+ return self.HasAGWFlag(flag)
2180
+
2181
+
2182
+ # ----------------------------------------------------------------------------
2183
+ # ShortcutEditor is a subclass of wx.Dialog, customized to look
2184
+ # like the GIMP main shortcut dialog.
2185
+ # ----------------------------------------------------------------------------
2186
+
2187
+ class ShortcutEditor(wx.Dialog):
2188
+ """
2189
+ :class:`ShortcutEditor` is a widget that allows the user to customize and change keyboard
2190
+ shortcuts via a dialog. It can be used to edit :class:`wx.MenuItem` shortcuts or accelerators
2191
+ defined in a :class:`AcceleratorTable`.
2192
+
2193
+ The interface itself is very much inpired by the GIMP shortcut editor:
2194
+
2195
+ http://graphicssoft.about.com/od/gimptutorials/tp/keyboard-shortcut-editor.htm
2196
+
2197
+ There are very few minor UI differences between :class:`ShortcutEditor` and the GIMP one,
2198
+ although the behaviour should be pretty much equivalent.
2199
+ """
2200
+
2201
+ def __init__(self, parent):
2202
+ """
2203
+ Default class constructor.
2204
+
2205
+ :param `parent`: an instance of :class:`wx.Window`, it can also be ``None``.
2206
+ """
2207
+
2208
+ wx.Dialog.__init__(self, parent, title=_('Configure Keyboard Shortcuts'),
2209
+ style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
2210
+
2211
+ self.htmlFile = os.path.join(DATA_DIR, 'default_help_text.html')
2212
+ self.htmlWindow = None
2213
+
2214
+ self.CreateWidgets()
2215
+ self.DoLayout()
2216
+ self.BindEvents()
2217
+
2218
+ if parent is not None and isinstance(parent, wx.TopLevelWindow):
2219
+ self.SetIcon(parent.GetIcon())
2220
+
2221
+ self.Init()
2222
+
2223
+
2224
+ def CreateWidgets(self):
2225
+ """
2226
+ Creates all the widgets needed to populate the interface, such as buttons,
2227
+ texts and, most importantly, :class:`ListShortcut`.
2228
+ """
2229
+
2230
+ self.topStatic = wx.StaticText(self, -1, _('&Search:'))
2231
+ self.searchText = wx.TextCtrl(self, -1, '')
2232
+
2233
+ clearBmp = _clear.GetBitmap()
2234
+ self.clearButton = wx.BitmapButton(self, wx.ID_CLEAR, clearBmp, style=wx.NO_BORDER)
2235
+
2236
+ self.listShortcut = ListShortcut(self)
2237
+ self.hiddenText = wx.TextCtrl(self, -1, '', style=wx.BORDER_THEME)
2238
+
2239
+ w, h, d, e = self.hiddenText.GetFullTextExtent('Ctrl+Shift+Alt+q+g+M', self.hiddenText.GetFont())
2240
+ self.hiddenText.SetMinSize((w, h+d-e+1))
2241
+
2242
+ defaultBmp = _default.GetBitmap()
2243
+ self.defaultButton = buttons.ThemedGenBitmapTextButton(self, wx.ID_RESET, defaultBmp,
2244
+ _('Restore Defaults '), size=(-1, 29))
2245
+
2246
+ self.infoBitmap = wx.StaticBitmap(self, -1, _info.GetBitmap())
2247
+
2248
+ message = _('To edit a shortcut key, click on the corresponding row\n' \
2249
+ 'and type a new accelerator, or press backspace to clear.')
2250
+
2251
+ italicFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
2252
+ italicFont.SetStyle(wx.FONTSTYLE_ITALIC)
2253
+
2254
+ self.infoStatic = wx.StaticText(self, -1, message)
2255
+ self.infoStatic.SetFont(italicFont)
2256
+
2257
+ okBmp = _ok.GetBitmap()
2258
+ cancelBmp = _cancel.GetBitmap()
2259
+ helpBmp = _help.GetBitmap()
2260
+
2261
+ self.okButton = buttons.ThemedGenBitmapTextButton(self, wx.ID_OK, okBmp, _('OK'))
2262
+ self.cancelButton = buttons.ThemedGenBitmapTextButton(self, wx.ID_CANCEL, cancelBmp, _('Cancel'))
2263
+ self.helpButton = buttons.ThemedGenBitmapTextButton(self, wx.ID_HELP, helpBmp, _('Help'))
2264
+
2265
+ self.okButton.SetDefault()
2266
+
2267
+
2268
+ def DoLayout(self):
2269
+ """ Lays out the widgets using sizers in a platform-independent way. """
2270
+
2271
+ mainSizer = wx.BoxSizer(wx.VERTICAL)
2272
+ topSizer = wx.BoxSizer(wx.HORIZONTAL)
2273
+
2274
+ mainSizer.Add((0, 5))
2275
+ topSizer.Add(self.topStatic, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 5)
2276
+ topSizer.Add(self.searchText, 1, wx.RIGHT, 5)
2277
+ topSizer.Add(self.clearButton, 0, wx.ALIGN_CENTER_VERTICAL)
2278
+
2279
+ mainSizer.Add(topSizer, 0, wx.ALL|wx.EXPAND, 10)
2280
+ mainSizer.Add(self.listShortcut, 1, wx.EXPAND|wx.LEFT|wx.RIGHT, 10)
2281
+ mainSizer.Add((0, 5))
2282
+
2283
+ hiddenSizer = wx.BoxSizer(wx.HORIZONTAL)
2284
+ hiddenSizer.Add(self.hiddenText, 0, wx.LEFT|wx.RIGHT|wx.RESERVE_SPACE_EVEN_IF_HIDDEN, 10)
2285
+ hiddenSizer.Add((1, 0), 1, wx.EXPAND)
2286
+ hiddenSizer.Add(self.defaultButton, 0, wx.EXPAND|wx.LEFT|wx.RIGHT, 10)
2287
+
2288
+ mainSizer.Add(hiddenSizer, 0, wx.EXPAND|wx.BOTTOM, 5)
2289
+
2290
+ centerSizer = wx.BoxSizer(wx.HORIZONTAL)
2291
+ centerSizer.Add(self.infoBitmap, 0, wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 10)
2292
+ centerSizer.Add(self.infoStatic, 1, wx.ALIGN_CENTER)
2293
+
2294
+ mainSizer.Add(centerSizer, 0, wx.TOP|wx.BOTTOM|wx.RIGHT, 10)
2295
+
2296
+ otherSizer = wx.BoxSizer(wx.HORIZONTAL)
2297
+ # Add the fancy buttons
2298
+ otherSizer.Add(self.okButton, 0, wx.ALL, 10)
2299
+ otherSizer.Add((0, 0), 1, wx.EXPAND)
2300
+ otherSizer.Add(self.cancelButton, 0, wx.LEFT|wx.TOP|wx.BOTTOM, 10)
2301
+ otherSizer.Add(self.helpButton, 0, wx.ALL, 10)
2302
+ mainSizer.Add(otherSizer, 0, wx.EXPAND|wx.TOP, 5)
2303
+
2304
+ self.hiddenText.Hide()
2305
+ self.SetSizer(mainSizer)
2306
+ mainSizer.Layout()
2307
+
2308
+
2309
+ def BindEvents(self):
2310
+ """
2311
+ Binds a few events we will need to process:
2312
+
2313
+ * ``wx.EVT_TEXT`` for the label filtering;
2314
+ * ``wx.EVT_BUTTON`` for clearing the filtering, for the HTML help window and
2315
+ to reset all the shortcuts to their defaults.
2316
+ """
2317
+
2318
+ self.searchText.Bind(wx.EVT_TEXT, self.OnSetFilter)
2319
+ self.clearButton.Bind(wx.EVT_BUTTON, self.OnClearFilter)
2320
+
2321
+ self.defaultButton.Bind(wx.EVT_BUTTON, self.OnRestoreDefaults)
2322
+ self.helpButton.Bind(wx.EVT_BUTTON, self.OnHTMLHelp)
2323
+
2324
+
2325
+ def Init(self):
2326
+ """ Common initialization procedures. """
2327
+
2328
+ self.manager = Shortcut()
2329
+ self.listShortcut.manager = self.manager
2330
+
2331
+
2332
+ def FromMenuBar(self, topWindow):
2333
+ """
2334
+ Builds the entire shortcut hierarchy starting from a :class:`wx.MenuBar`.
2335
+
2336
+ :param `topWindow`: an instance of :class:`TopLevelWindow`, containing the :class:`wx.MenuBar`
2337
+ we wish to scan.
2338
+ """
2339
+
2340
+ def MenuItemSearch(menu, item):
2341
+
2342
+ for menuItem in list(menu.GetMenuItems()):
2343
+ label = menuItem.GetItemLabel()
2344
+
2345
+ if not label:
2346
+ # It's a separator
2347
+ continue
2348
+
2349
+ shortcutItem = Shortcut(menuItem=menuItem)
2350
+ shortcutItem.FromMenuItem()
2351
+
2352
+ item.AppendItem(shortcutItem)
2353
+
2354
+ subMenu = menuItem.GetSubMenu()
2355
+
2356
+ if subMenu:
2357
+ MenuItemSearch(subMenu, shortcutItem)
2358
+
2359
+ position = 0
2360
+
2361
+ for menu, name in topWindow.GetMenuBar().GetMenus():
2362
+
2363
+ shortcutItem = Shortcut(menuItem=menu)
2364
+ shortcutItem.topMenu = True
2365
+ shortcutItem.position = position
2366
+ shortcutItem.FromMenuItem()
2367
+
2368
+ position += 1
2369
+ self.manager.AppendItem(shortcutItem)
2370
+ MenuItemSearch(menu, item=shortcutItem)
2371
+
2372
+
2373
+ def ToMenuBar(self, topWindow):
2374
+ """
2375
+ Dumps the entire shortcut hierarchy (for shortcuts associated with a :class:`wx.MenuItem`), into
2376
+ a :class:`wx.MenuBar`, changing only the :class:`wx.Menu` / :class:`wx.MenuItem` labels (it does **not** rebuild
2377
+ the :class:`wx.MenuBar`).
2378
+
2379
+ :param `topWindow`: an instance of :class:`TopLevelWindow`, containing the :class:`wx.MenuBar`
2380
+ we wish to repopulate.
2381
+ """
2382
+
2383
+ def MenuItemSet(shortcut, menuBar):
2384
+
2385
+ child, cookie = shortcut.GetFirstChild(shortcut)
2386
+
2387
+ while child:
2388
+ child.ToMenuItem(menuBar)
2389
+ MenuItemSet(child, menuBar)
2390
+ child, cookie = shortcut.GetNextChild(shortcut, cookie)
2391
+
2392
+ manager = self.GetShortcutManager()
2393
+ menuBar = topWindow.GetMenuBar()
2394
+
2395
+ MenuItemSet(manager, menuBar)
2396
+
2397
+
2398
+ def FromAcceleratorTable(self, accelTable):
2399
+ """
2400
+ Builds the entire shortcut hierarchy starting from a modified version of a :class:`AcceleratorTable`.
2401
+
2402
+ :param `accelTable`: a modified version of :class:`AcceleratorTable`, is a list of tuples (4 elements per tuple),
2403
+ populated like this::
2404
+
2405
+ accelTable = []
2406
+
2407
+ # Every tuple is defined in this way:
2408
+
2409
+ for label, flags, keyCode, cmdID in my_accelerators:
2410
+ # label: the string used to show the accelerator into the ShortcutEditor dialog
2411
+ # flags: a bitmask of wx.ACCEL_ALT, wx.ACCEL_SHIFT, wx.ACCEL_CTRL, wx.ACCEL_CMD,
2412
+ # or wx.ACCEL_NORMAL used to specify which modifier keys are held down
2413
+ # keyCode: the keycode to be detected (i.e., ord('b'), wx.WXK_F10, etc...)
2414
+ # cmdID: the menu or control command ID to use for the accelerator event.
2415
+
2416
+ accel_tuple = (label, flags, keyCode, cmdID)
2417
+ accelTable.append(accel_tuple)
2418
+
2419
+ """
2420
+
2421
+ parentShortcut = Shortcut(_('Accelerators'))
2422
+
2423
+ parentShortcut.topMenu = True
2424
+ self.manager.AppendItem(parentShortcut)
2425
+
2426
+ for text, modifier, accel, ids in accelTable:
2427
+ modifier = ACCELERATORS[modifier]
2428
+ if accel in KEYMAP:
2429
+ accel = KEYMAP[accel]
2430
+ else:
2431
+ accel = chr(accel)
2432
+
2433
+ shortcut = (modifier and ['%s+%s'%(modifier, accel)] or [accel])[0]
2434
+ shortcutItem = Shortcut(text, shortcut, accelId=ids)
2435
+ parentShortcut.AppendItem(shortcutItem)
2436
+
2437
+
2438
+ def ToAcceleratorTable(self, window):
2439
+ """
2440
+ Dumps the entire shortcut hierarchy (for shortcuts associated with a :class:`AcceleratorTable`), into
2441
+ a :class:`AcceleratorTable`. This method **does** rebuild the :class:`AcceleratorTable` and sets it back
2442
+ to the input `window`.
2443
+
2444
+ :param `window`: an instance of :class:`wx.Window`, to which the new :class:`AcceleratorTable` should be set.
2445
+ """
2446
+
2447
+ def AccelItemSet(shortcut, table):
2448
+
2449
+ child, cookie = shortcut.GetFirstChild(shortcut)
2450
+
2451
+ while child:
2452
+ child.ToAcceleratorItem(table)
2453
+ table = AccelItemSet(child, table)
2454
+ child, cookie = shortcut.GetNextChild(shortcut, cookie)
2455
+
2456
+ return table
2457
+
2458
+ manager = self.GetShortcutManager()
2459
+ table = AccelItemSet(manager, table=[])
2460
+
2461
+ window.SetAcceleratorTable(wx.AcceleratorTable(table))
2462
+
2463
+
2464
+ def SetColumnWidths(self):
2465
+ """
2466
+ Sets the :class:`ListShortcut` columns widths to acceptable and eye-pleasing
2467
+ numbers (in pixels).
2468
+ """
2469
+
2470
+ total_width = 0
2471
+ for col in range(self.listShortcut.GetColumnCount()):
2472
+ self.listShortcut.SetColumnWidth(col, wx.LIST_AUTOSIZE)
2473
+ width = self.listShortcut.GetColumnWidth(col)
2474
+
2475
+ if col == 0:
2476
+ width += 20
2477
+ elif col == 1:
2478
+ width += 5
2479
+ else:
2480
+ width = min(width, 200)
2481
+
2482
+ width = max(50, width)
2483
+ self.listShortcut.SetColumnWidth(col, width)
2484
+ total_width += width
2485
+
2486
+ self.listShortcut.GetMainWindow()._lineHeight += 5
2487
+ dialogHeight = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y)/2
2488
+
2489
+ self.SetSize((total_width+60, dialogHeight))
2490
+
2491
+ self.Center()
2492
+
2493
+
2494
+ def OnSetFilter(self, event=None):
2495
+ """
2496
+ Handles the ``wx.EVT_TEXT`` event for :class:`ShortcutEditor`.
2497
+
2498
+ :param `event`: if not ``None``, an instance of :class:`KeyEvent`.
2499
+ """
2500
+
2501
+ if event:
2502
+ event.Skip()
2503
+
2504
+ filter = self.searchText.GetValue()
2505
+ filter = filter.lower().strip()
2506
+
2507
+ self.listShortcut.SetFilter(filter)
2508
+
2509
+
2510
+ def OnClearFilter(self, event):
2511
+ """
2512
+ Handles the ``wx.EVT_BUTTON`` event for :class:`ShortcutEditor` when the user clears the
2513
+ label filter at the top of the user interface.
2514
+
2515
+ :param `event`: an instance of :class:`CommandEvent`.
2516
+ """
2517
+
2518
+ self.searchText.SetValue('')
2519
+
2520
+
2521
+ def OnRestoreDefaults(self, event):
2522
+ """
2523
+ Handles the ``wx.EVT_BUTTON`` event for :class:`ShortcutEditor` when the user restores the
2524
+ original shortcuts.
2525
+
2526
+ :param `event`: an instance of :class:`CommandEvent`.
2527
+ """
2528
+
2529
+ self.manager.RestoreDefaults()
2530
+ self.listShortcut.RecreateTree()
2531
+
2532
+
2533
+ def OnHTMLHelp(self, event):
2534
+ """
2535
+ Handles the ``wx.EVT_BUTTON`` event for :class:`ShortcutEditor` when the user presses the ``Help``
2536
+ button.
2537
+
2538
+ :param `event`: an instance of :class:`CommandEvent`.
2539
+
2540
+ .. note::
2541
+
2542
+ By default, this method launches a :class:`html.HtmlWindow` containing the default
2543
+ HTML help file. If you wish to load another help file, you should call :meth:`~ShortcutEditor.SetHTMLHelpFile`
2544
+ with another input HTML file.
2545
+
2546
+ """
2547
+
2548
+ if self.htmlWindow:
2549
+ self.htmlWindow.Show()
2550
+ self.htmlWindow.Restore()
2551
+ self.htmlWindow.Raise()
2552
+ return
2553
+
2554
+ self.htmlWindow = HTMLHelpWindow(self, self.htmlFile)
2555
+
2556
+
2557
+ def GetShortcutManager(self):
2558
+ """ Returns the root :class:`Shortcut` containing the whole shortcut hierarchy. """
2559
+
2560
+ return self.manager
2561
+
2562
+
2563
+ def SetHTMLHelpFile(self, htmlFile):
2564
+ """
2565
+ Sets a new HTML help file (a valid html file) to be loaded when the user seeks
2566
+ for an explanation on how the UI works.
2567
+
2568
+ :param string `htmlFile`: a valid HTML file.
2569
+ """
2570
+
2571
+ if not os.path.isfile(htmlFile):
2572
+ raise Exception('Invalid HTML help file passed to ShortcutEditor')
2573
+
2574
+ self.htmlFile = htmlFile
2575
+
2576
+ if self.htmlWindow is not None:
2577
+ self.htmlWindow.htmlFile = htmlFile
2578
+ self.htmlWindow.LoadFile(self.htmlFile)
2579
+
2580
+
2581
+ def PreShow(self):
2582
+ """ Does some more common initialization before showing :class:`ShortcutEditor`. """
2583
+
2584
+ self.listShortcut.MakeImageList()
2585
+ self.listShortcut.RecreateTree()
2586
+
2587
+ self.SetColumnWidths()
2588
+
2589
+
2590
+ def ShowModal(self):
2591
+ """
2592
+ Shows the :class:`ShortcutEditor` dialog in an application-modal way.
2593
+
2594
+ Program flow does not return until the dialog has been dismissed with `EndModal`.
2595
+
2596
+ :return: The value set with :meth:`~Dialog.SetReturnCode`.
2597
+
2598
+ .. note::
2599
+
2600
+ Notice that it is possible to call :meth:`~ShortcutEditor.ShowModal` for a dialog which had been
2601
+ previously shown with :meth:`~ShortcutEditor.Show`, this allows to make an existing modeless dialog
2602
+ modal. However :meth:`~ShortcutEditor.ShowModal` can't be called twice without intervening `EndModal` calls.
2603
+
2604
+
2605
+ .. note::
2606
+
2607
+ Note that this function creates a temporary event loop which takes precedence
2608
+ over the application's main event loop (see :class:`EventLoopBase`) and which is
2609
+ destroyed when the dialog is dismissed. This also results in a call to
2610
+ :meth:`AppConsole.ProcessPendingEvents` ().
2611
+
2612
+ """
2613
+
2614
+ self.PreShow()
2615
+ return wx.Dialog.ShowModal(self)
2616
+
2617
+
2618
+ def Show(self, show=True):
2619
+ """
2620
+ Hides or shows the :class:`ShortcutEditor` dialog.
2621
+
2622
+ The preferred way of dismissing a modal dialog is to use `EndModal`.
2623
+
2624
+ :param bool `show`: if ``True``, the dialog box is shown and brought to the front,
2625
+ otherwise the box is hidden. If ``False`` and the dialog is modal, control is
2626
+ returned to the calling program.
2627
+
2628
+ :note: Reimplemented from :class:`wx.Window`.
2629
+ """
2630
+
2631
+ self.PreShow()
2632
+ wx.Dialog.Show(self, show)
2633
+
2634
+