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,1466 @@
1
+ #----------------------------------------------------------------------------
2
+ # Name: timectrl.py
3
+ # Author: Will Sadkin
4
+ # Created: 09/19/2002
5
+ # Copyright: (c) 2002 by Will Sadkin, 2002
6
+ # License: wxWindows license
7
+ #
8
+ # Tags: phoenix-port, unittest, documented
9
+ #
10
+ #----------------------------------------------------------------------------
11
+ # NOTE:
12
+ # This was written way it is because of the lack of masked edit controls
13
+ # in wxWindows/wxPython. I would also have preferred to derive this
14
+ # control from a wxSpinCtrl rather than wxTextCtrl, but the wxTextCtrl
15
+ # component of that control is inaccessible through the interface exposed in
16
+ # wxPython.
17
+ #
18
+ # TimeCtrl does not use validators, because it does careful manipulation
19
+ # of the cursor in the text window on each keystroke, and validation is
20
+ # cursor-position specific, so the control intercepts the key codes before the
21
+ # validator would fire.
22
+ #
23
+ # TimeCtrl now also supports .SetValue() with either strings or wxDateTime
24
+ # values, as well as range limits, with the option of either enforcing them
25
+ # or simply coloring the text of the control if the limits are exceeded.
26
+ #
27
+ # Note: this class now makes heavy use of wxDateTime for parsing and
28
+ # regularization, but it always does so with ephemeral instances of
29
+ # wxDateTime, as the C++/Python validity of these instances seems to not
30
+ # persist. Because "today" can be a day for which an hour can "not exist"
31
+ # or be counted twice (1 day each per year, for DST adjustments), the date
32
+ # portion of all wxDateTimes used/returned have their date portion set to
33
+ # Jan 1, 1970 (the "epoch.")
34
+ #----------------------------------------------------------------------------
35
+ # 12/13/2003 - Jeff Grimmett (grimmtooth@softhome.net)
36
+ #
37
+ # o Updated for V2.5 compatibility
38
+ # o wx.SpinCtl has some issues that cause the control to
39
+ # lock up. Noted in other places using it too, it's not this module
40
+ # that's at fault.
41
+ #
42
+ # 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
43
+ #
44
+ # o wxMaskedTextCtrl -> masked.TextCtrl
45
+ # o wxTimeCtrl -> masked.TimeCtrl
46
+ #
47
+ # 2/4/2018 - jensgoe (mail@jensgoepfert.de)
48
+ # o wx.Validator_IsSilent() -> wx.Validator.IsSilent()
49
+ #
50
+
51
+
52
+ """
53
+ *TimeCtrl* provides a multi-cell control that allows manipulation of a time
54
+ value. It supports 12 or 24 hour format, and you can use wxDateTime or mxDateTime
55
+ to get/set values from the control.
56
+
57
+ Left/right/tab keys to switch cells within a TimeCtrl, and the up/down arrows act
58
+ like a spin control. TimeCtrl also allows for an actual spin button to be attached
59
+ to the control, so that it acts like the up/down arrow keys.
60
+
61
+ The ! or c key sets the value of the control to the current time.
62
+
63
+ Here's the API for TimeCtrl::
64
+
65
+ from wx.lib.masked import TimeCtrl
66
+
67
+ TimeCtrl(
68
+ parent, id = -1,
69
+ value = '00:00:00',
70
+ pos = wx.DefaultPosition,
71
+ size = wx.DefaultSize,
72
+ style = wxTE_PROCESS_TAB,
73
+ validator = wx.DefaultValidator,
74
+ name = "time",
75
+ format = 'HHMMSS',
76
+ fmt24hr = False,
77
+ displaySeconds = True,
78
+ spinButton = None,
79
+ min = None,
80
+ max = None,
81
+ limited = None,
82
+ oob_color = "Yellow"
83
+ )
84
+
85
+
86
+ value
87
+ If no initial value is set, the default will be midnight; if an illegal string
88
+ is specified, a ValueError will result. (You can always later set the initial time
89
+ with SetValue() after instantiation of the control.)
90
+
91
+ size
92
+ The size of the control will be automatically adjusted for 12/24 hour format
93
+ if wx.DefaultSize is specified. NOTE: due to a problem with wx.DateTime, if the
94
+ locale does not use 'AM/PM' for its values, the default format will automatically
95
+ change to 24 hour format, and an AttributeError will be thrown if a non-24 format
96
+ is specified.
97
+
98
+ style
99
+ By default, TimeCtrl will process TAB events, by allowing tab to the
100
+ different cells within the control.
101
+
102
+ validator
103
+ By default, TimeCtrl just uses the default (empty) validator, as all
104
+ of its validation for entry control is handled internally. However, a validator
105
+ can be supplied to provide data transfer capability to the control.
106
+
107
+ format
108
+ This parameter can be used instead of the fmt24hr and displaySeconds
109
+ parameters, respectively; it provides a shorthand way to specify the time
110
+ format you want. Accepted values are 'HHMMSS', 'HHMM', '24HHMMSS', and
111
+ '24HHMM'. If the format is specified, the other two arguments will be ignored.
112
+
113
+ fmt24hr
114
+ If True, control will display time in 24 hour time format; if False, it will
115
+ use 12 hour AM/PM format. SetValue() will adjust values accordingly for the
116
+ control, based on the format specified. (This value is ignored if the *format*
117
+ parameter is specified.)
118
+
119
+ displaySeconds
120
+ If True, control will include a seconds field; if False, it will
121
+ just show hours and minutes. (This value is ignored if the *format*
122
+ parameter is specified.)
123
+
124
+ spinButton
125
+ If specified, this button's events will be bound to the behavior of the
126
+ TimeCtrl, working like up/down cursor key events. (See BindSpinButton.)
127
+
128
+ min
129
+ Defines the lower bound for "valid" selections in the control.
130
+ By default, TimeCtrl doesn't have bounds. You must set both upper and lower
131
+ bounds to make the control pay attention to them, (as only one bound makes no sense
132
+ with times.) "Valid" times will fall between the min and max "pie wedge" of the
133
+ clock.
134
+ max
135
+ Defines the upper bound for "valid" selections in the control.
136
+ "Valid" times will fall between the min and max "pie wedge" of the
137
+ clock. (This can be a "big piece", ie. min = 11pm, max= 10pm
138
+ means *all but the hour from 10:00pm to 11pm are valid times.*)
139
+ limited
140
+ If True, the control will not permit entry of values that fall outside the
141
+ set bounds.
142
+
143
+ oob_color
144
+ Sets the background color used to indicate out-of-bounds values for the control
145
+ when the control is not limited. This is set to "Yellow" by default.
146
+
147
+ --------------------
148
+
149
+ EVT_TIMEUPDATE(win, id, func)
150
+ func is fired whenever the value of the control changes.
151
+
152
+
153
+ SetValue(time_string | wxDateTime | wxTimeSpan | mx.DateTime | mx.DateTimeDelta)
154
+ Sets the value of the control to a particular time, given a valid
155
+ value; raises ValueError on invalid value.
156
+
157
+ *NOTE:* This will only allow mx.DateTime or mx.DateTimeDelta if mx.DateTime
158
+ was successfully imported by the class module.
159
+
160
+ GetValue(as_wxDateTime = False, as_mxDateTime = False, as_wxTimeSpan=False, as mxDateTimeDelta=False)
161
+ Retrieves the value of the time from the control. By default this is
162
+ returned as a string, unless one of the other arguments is set; args are
163
+ searched in the order listed; only one value will be returned.
164
+
165
+ GetWxDateTime(value=None)
166
+ When called without arguments, retrieves the value of the control, and applies
167
+ it to the wxDateTimeFromHMS() constructor, and returns the resulting value.
168
+ The date portion will always be set to Jan 1, 1970. This form is the same
169
+ as GetValue(as_wxDateTime=True). GetWxDateTime can also be called with any of the
170
+ other valid time formats settable with SetValue, to regularize it to a single
171
+ wxDateTime form. The function will raise ValueError on an unconvertable argument.
172
+
173
+ GetMxDateTime()
174
+ Retrieves the value of the control and applies it to the DateTime.Time()
175
+ constructor,and returns the resulting value. (The date portion will always be
176
+ set to Jan 1, 1970.) (Same as GetValue(as_wxDateTime=True); provided for backward
177
+ compatibility with previous release.)
178
+
179
+
180
+ BindSpinButton(SpinBtton)
181
+ Binds an externally created spin button to the control, so that up/down spin
182
+ events change the active cell or selection in the control (in addition to the
183
+ up/down cursor keys.) (This is primarily to allow you to create a "standard"
184
+ interface to time controls, as seen in Windows.)
185
+
186
+
187
+ SetMin(min=None)
188
+ Sets the expected minimum value, or lower bound, of the control.
189
+ (The lower bound will only be enforced if the control is
190
+ configured to limit its values to the set bounds.)
191
+ If a value of *None* is provided, then the control will have
192
+ explicit lower bound. If the value specified is greater than
193
+ the current lower bound, then the function returns False and the
194
+ lower bound will not change from its current setting. On success,
195
+ the function returns True. Even if set, if there is no corresponding
196
+ upper bound, the control will behave as if it is unbounded.
197
+
198
+ If successful and the current value is outside the
199
+ new bounds, if the control is limited the value will be
200
+ automatically adjusted to the nearest bound; if not limited,
201
+ the background of the control will be colored with the current
202
+ out-of-bounds color.
203
+
204
+ GetMin(as_string=False)
205
+ Gets the current lower bound value for the control, returning
206
+ None, if not set, or a wxDateTime, unless the as_string parameter
207
+ is set to True, at which point it will return the string
208
+ representation of the lower bound.
209
+
210
+
211
+ SetMax(max=None)
212
+ Sets the expected maximum value, or upper bound, of the control.
213
+ (The upper bound will only be enforced if the control is
214
+ configured to limit its values to the set bounds.)
215
+ If a value of *None* is provided, then the control will
216
+ have no explicit upper bound. If the value specified is less
217
+ than the current lower bound, then the function returns False and
218
+ the maximum will not change from its current setting. On success,
219
+ the function returns True. Even if set, if there is no corresponding
220
+ lower bound, the control will behave as if it is unbounded.
221
+
222
+ If successful and the current value is outside the
223
+ new bounds, if the control is limited the value will be
224
+ automatically adjusted to the nearest bound; if not limited,
225
+ the background of the control will be colored with the current
226
+ out-of-bounds color.
227
+
228
+ GetMax(as_string = False)
229
+ Gets the current upper bound value for the control, returning
230
+ None, if not set, or a wxDateTime, unless the as_string parameter
231
+ is set to True, at which point it will return the string
232
+ representation of the lower bound.
233
+
234
+
235
+
236
+ SetBounds(min=None,max=None)
237
+ This function is a convenience function for setting the min and max
238
+ values at the same time. The function only applies the maximum bound
239
+ if setting the minimum bound is successful, and returns True
240
+ only if both operations succeed. *Note: leaving out an argument
241
+ will remove the corresponding bound, and result in the behavior of
242
+ an unbounded control.*
243
+
244
+ GetBounds(as_string = False)
245
+ This function returns a two-tuple (min,max), indicating the
246
+ current bounds of the control. Each value can be None if
247
+ that bound is not set. The values will otherwise be wxDateTimes
248
+ unless the as_string argument is set to True, at which point they
249
+ will be returned as string representations of the bounds.
250
+
251
+
252
+ IsInBounds(value=None)
253
+ Returns *True* if no value is specified and the current value
254
+ of the control falls within the current bounds. This function can also
255
+ be called with a value to see if that value would fall within the current
256
+ bounds of the given control. It will raise ValueError if the value
257
+ specified is not a wxDateTime, mxDateTime (if available) or parsable string.
258
+
259
+
260
+ IsValid(value)
261
+ Returns *True* if specified value is a legal time value and
262
+ falls within the current bounds of the given control.
263
+
264
+
265
+ SetLimited(bool)
266
+ If called with a value of True, this function will cause the control
267
+ to limit the value to fall within the bounds currently specified.
268
+ (Provided both bounds have been set.)
269
+ If the control's value currently exceeds the bounds, it will then
270
+ be set to the nearest bound.
271
+ If called with a value of False, this function will disable value
272
+ limiting, but coloring of out-of-bounds values will still take
273
+ place if bounds have been set for the control.
274
+ IsLimited()
275
+ Returns *True* if the control is currently limiting the
276
+ value to fall within the current bounds.
277
+
278
+
279
+ """
280
+
281
+ import copy
282
+
283
+ import wx
284
+ import six
285
+
286
+ from wx.tools.dbg import Logger
287
+ from wx.lib.masked import Field, BaseMaskedTextCtrl
288
+
289
+ dbg = Logger()
290
+ ##dbg(enable=0)
291
+
292
+ try:
293
+ from mx import DateTime
294
+ accept_mx = True
295
+ except ImportError:
296
+ accept_mx = False
297
+
298
+ # This class of event fires whenever the value of the time changes in the control:
299
+ wxEVT_TIMEVAL_UPDATED = wx.NewEventType()
300
+ EVT_TIMEUPDATE = wx.PyEventBinder(wxEVT_TIMEVAL_UPDATED, 1)
301
+
302
+ class TimeUpdatedEvent(wx.PyCommandEvent):
303
+ """
304
+ Used to fire an EVT_TIMEUPDATE event whenever the value in a TimeCtrl changes.
305
+ """
306
+ def __init__(self, id, value ='12:00:00 AM'):
307
+ wx.PyCommandEvent.__init__(self, wxEVT_TIMEVAL_UPDATED, id)
308
+ self.value = value
309
+ def GetValue(self):
310
+ """Retrieve the value of the time control at the time this event was generated"""
311
+ return self.value
312
+
313
+ class TimeCtrlAccessorsMixin:
314
+ """
315
+ Defines TimeCtrl's list of attributes having their own Get/Set functions,
316
+ ignoring those in the base class that make no sense for a time control.
317
+ """
318
+ exposed_basectrl_params = (
319
+ 'defaultValue',
320
+ 'description',
321
+
322
+ 'useFixedWidthFont',
323
+ 'emptyBackgroundColour',
324
+ 'validBackgroundColour',
325
+ 'invalidBackgroundColour',
326
+
327
+ 'validFunc',
328
+ 'validRequired',
329
+ )
330
+ for param in exposed_basectrl_params:
331
+ propname = param[0].upper() + param[1:]
332
+ exec('def Set%s(self, value): self.SetCtrlParameters(%s=value)' % (propname, param))
333
+ exec('def Get%s(self): return self.GetCtrlParameter("%s")''' % (propname, param))
334
+
335
+ if param.find('Colour') != -1:
336
+ # add non-british spellings, for backward-compatibility
337
+ propname.replace('Colour', 'Color')
338
+
339
+ exec('def Set%s(self, value): self.SetCtrlParameters(%s=value)' % (propname, param))
340
+ exec('def Get%s(self): return self.GetCtrlParameter("%s")''' % (propname, param))
341
+
342
+
343
+ class TimeCtrl(BaseMaskedTextCtrl):
344
+ """
345
+ Masked control providing several time formats and manipulation of time values.
346
+ """
347
+
348
+ valid_ctrl_params = {
349
+ 'format' : 'HHMMSS', # default format code
350
+ 'displaySeconds' : True, # by default, shows seconds
351
+ 'min': None, # by default, no bounds set
352
+ 'max': None,
353
+ 'limited': False, # by default, no limiting even if bounds set
354
+ 'useFixedWidthFont': True, # by default, use a fixed-width font
355
+ 'oob_color': "Yellow" # by default, the default masked.TextCtrl "invalid" color
356
+ }
357
+
358
+ def __init__ (
359
+ self, parent, id=-1, value = '00:00:00',
360
+ pos = wx.DefaultPosition, size = wx.DefaultSize,
361
+ fmt24hr=False,
362
+ spinButton = None,
363
+ style = wx.TE_PROCESS_TAB,
364
+ validator = wx.DefaultValidator,
365
+ name = "time",
366
+ **kwargs ):
367
+
368
+ """
369
+ Default class constructor.
370
+
371
+ :param wx.Window `parent`: the window parent. Must not be ``None``;
372
+ :param integer `id`: window identifier. A value of -1 indicates a default value;
373
+ :param string `value`: value to be shown;
374
+ :param `pos`: the control position. A value of (-1, -1) indicates a default position,
375
+ chosen by either the windowing system or wxPython, depending on platform;
376
+ :type `pos`: tuple or :class:`wx.Point`
377
+ :param `size`: the control size. A value of (-1, -1) indicates a default size,
378
+ chosen by either the windowing system or wxPython, depending on platform;
379
+ :param boolean `fmt24hr`: True to use 24 hour format (sometimes called military format;
380
+ :param SpinButton `spinButton`: an instance of :class:`SpinButton` or
381
+ None;
382
+ :param integer `style`: the window style;
383
+ :param wx.Validator `validator`: this is mainly provided for data-transfer, as control does
384
+ its own validation;
385
+ :param string `name`: the window name;
386
+
387
+ """
388
+
389
+ # set defaults for control:
390
+ ## dbg('setting defaults:')
391
+
392
+ self.__fmt24hr = False
393
+ wxdt = wx.DateTime.FromDMY(1, 0, 1970)
394
+ try:
395
+ if wxdt.Format('%p') != 'AM':
396
+ TimeCtrl.valid_ctrl_params['format'] = '24HHMMSS'
397
+ self.__fmt24hr = True
398
+ fmt24hr = True # force/change default positional argument
399
+ # (will countermand explicit set to False too.)
400
+ except:
401
+ TimeCtrl.valid_ctrl_params['format'] = '24HHMMSS'
402
+ self.__fmt24hr = True
403
+ fmt24hr = True # force/change default positional argument
404
+ # (will countermand explicit set to False too.)
405
+
406
+ for key, param_value in TimeCtrl.valid_ctrl_params.items():
407
+ # This is done this way to make setattr behave consistently with
408
+ # "private attribute" name mangling
409
+ setattr(self, "_TimeCtrl__" + key, copy.copy(param_value))
410
+
411
+ # create locals from current defaults, so we can override if
412
+ # specified in kwargs, and handle uniformly:
413
+ min = self.__min
414
+ max = self.__max
415
+ limited = self.__limited
416
+ self.__posCurrent = 0
417
+ # handle deprecated keword argument name:
418
+ if 'display_seconds' in kwargs:
419
+ kwargs['displaySeconds'] = kwargs['display_seconds']
420
+ del kwargs['display_seconds']
421
+ if 'displaySeconds' not in kwargs:
422
+ kwargs['displaySeconds'] = True
423
+
424
+ # (handle positional arg (from original release) differently from rest of kwargs:)
425
+ if 'format' not in kwargs:
426
+ if fmt24hr:
427
+ if 'displaySeconds' in kwargs and kwargs['displaySeconds']:
428
+ kwargs['format'] = '24HHMMSS'
429
+ del kwargs['displaySeconds']
430
+ else:
431
+ kwargs['format'] = '24HHMM'
432
+ else:
433
+ if 'displaySeconds' in kwargs and kwargs['displaySeconds']:
434
+ kwargs['format'] = 'HHMMSS'
435
+ del kwargs['displaySeconds']
436
+ else:
437
+ kwargs['format'] = 'HHMM'
438
+
439
+ if 'useFixedWidthFont' not in kwargs:
440
+ # allow control over font selection:
441
+ kwargs['useFixedWidthFont'] = self.__useFixedWidthFont
442
+
443
+ maskededit_kwargs = self.SetParameters(**kwargs)
444
+
445
+ # allow for explicit size specification:
446
+ if size != wx.DefaultSize:
447
+ # override (and remove) "autofit" autoformat code in standard time formats:
448
+ maskededit_kwargs['formatcodes'] = 'T!'
449
+
450
+ # This allows range validation if set
451
+ maskededit_kwargs['validFunc'] = self.IsInBounds
452
+
453
+ # This allows range limits to affect insertion into control or not
454
+ # dynamically without affecting individual field constraint validation
455
+ maskededit_kwargs['retainFieldValidation'] = True
456
+
457
+ # Now we can initialize the base control:
458
+ BaseMaskedTextCtrl.__init__(
459
+ self, parent, id=id,
460
+ pos=pos, size=size,
461
+ style = style,
462
+ validator = validator,
463
+ name = name,
464
+ setupEventHandling = False,
465
+ **maskededit_kwargs)
466
+
467
+
468
+ # This makes ':' act like tab (after we fix each ':' key event to remove "shift")
469
+ self._SetKeyHandler(':', self._OnChangeField)
470
+
471
+
472
+ # This makes the up/down keys act like spin button controls:
473
+ self._SetKeycodeHandler(wx.WXK_UP, self.__OnSpinUp)
474
+ self._SetKeycodeHandler(wx.WXK_DOWN, self.__OnSpinDown)
475
+
476
+
477
+ # This allows ! and c/C to set the control to the current time:
478
+ self._SetKeyHandler('!', self.__OnSetToNow)
479
+ self._SetKeyHandler('c', self.__OnSetToNow)
480
+ self._SetKeyHandler('C', self.__OnSetToNow)
481
+
482
+
483
+ # Set up event handling ourselves, so we can insert special
484
+ # processing on the ":' key to remove the "shift" attribute
485
+ # *before* the default handlers have been installed, so
486
+ # that : takes you forward, not back, and so we can issue
487
+ # EVT_TIMEUPDATE events on changes:
488
+
489
+ self.Bind(wx.EVT_SET_FOCUS, self._OnFocus ) ## defeat automatic full selection
490
+ self.Bind(wx.EVT_KILL_FOCUS, self._OnKillFocus ) ## run internal validator
491
+ self.Bind(wx.EVT_LEFT_UP, self.__LimitSelection) ## limit selections to single field
492
+ self.Bind(wx.EVT_LEFT_DCLICK, self._OnDoubleClick ) ## select field under cursor on dclick
493
+ self.Bind(wx.EVT_KEY_DOWN, self._OnKeyDown ) ## capture control events not normally seen, eg ctrl-tab.
494
+ self.Bind(wx.EVT_CHAR, self.__OnChar ) ## remove "shift" attribute from colon key event,
495
+ ## then call BaseMaskedTextCtrl._OnChar with
496
+ ## the possibly modified event.
497
+ self.Bind(wx.EVT_TEXT, self.__OnTextChange, self ) ## color control appropriately and EVT_TIMEUPDATE events
498
+
499
+
500
+ # Validate initial value and set if appropriate
501
+ try:
502
+ self.SetBounds(min, max)
503
+ self.SetLimited(limited)
504
+ self.SetValue(value)
505
+ except:
506
+ self.SetValue('00:00:00')
507
+
508
+ if spinButton:
509
+ self.BindSpinButton(spinButton) # bind spin button up/down events to this control
510
+
511
+
512
+ def SetParameters(self, **kwargs):
513
+ """
514
+ Function providing access to the parameters governing TimeCtrl display
515
+ and bounds.
516
+ """
517
+ ## dbg('TimeCtrl::SetParameters(%s)' % repr(kwargs), indent=1)
518
+ maskededit_kwargs = {}
519
+ reset_format = False
520
+
521
+ if 'display_seconds' in kwargs:
522
+ kwargs['displaySeconds'] = kwargs['display_seconds']
523
+ del kwargs['display_seconds']
524
+ if 'format' in kwargs and 'displaySeconds' in kwargs:
525
+ del kwargs['displaySeconds'] # always apply format if specified
526
+
527
+ # assign keyword args as appropriate:
528
+ for key, param_value in kwargs.items():
529
+ if key not in TimeCtrl.valid_ctrl_params:
530
+ raise AttributeError('invalid keyword argument "%s"' % key)
531
+
532
+ if key == 'format':
533
+ wxdt = wx.DateTime.FromDMY(1, 0, 1970)
534
+ try:
535
+ if wxdt.Format('%p') != 'AM':
536
+ require24hr = True
537
+ else:
538
+ require24hr = False
539
+ except Exception:
540
+ require24hr = True
541
+
542
+ # handle both local or generic 'maskededit' autoformat codes:
543
+ if param_value == 'HHMMSS' or param_value == 'TIMEHHMMSS':
544
+ self.__displaySeconds = True
545
+ self.__fmt24hr = False
546
+ elif param_value == 'HHMM' or param_value == 'TIMEHHMM':
547
+ self.__displaySeconds = False
548
+ self.__fmt24hr = False
549
+ elif param_value == '24HHMMSS' or param_value == '24HRTIMEHHMMSS':
550
+ self.__displaySeconds = True
551
+ self.__fmt24hr = True
552
+ elif param_value == '24HHMM' or param_value == '24HRTIMEHHMM':
553
+ self.__displaySeconds = False
554
+ self.__fmt24hr = True
555
+ else:
556
+ raise AttributeError('"%s" is not a valid format' % param_value)
557
+
558
+ if require24hr and not self.__fmt24hr:
559
+ raise AttributeError('"%s" is an unsupported time format for the current locale' % param_value)
560
+
561
+ reset_format = True
562
+
563
+ elif key in ("displaySeconds", "display_seconds") and 'format' not in kwargs:
564
+ self.__displaySeconds = param_value
565
+ reset_format = True
566
+
567
+ elif key == "min": min = param_value
568
+ elif key == "max": max = param_value
569
+ elif key == "limited": limited = param_value
570
+
571
+ elif key == "useFixedWidthFont":
572
+ maskededit_kwargs[key] = param_value
573
+
574
+ elif key == "oob_color":
575
+ maskededit_kwargs['invalidBackgroundColor'] = param_value
576
+
577
+ if reset_format:
578
+ if self.__fmt24hr:
579
+ if self.__displaySeconds: maskededit_kwargs['autoformat'] = '24HRTIMEHHMMSS'
580
+ else: maskededit_kwargs['autoformat'] = '24HRTIMEHHMM'
581
+
582
+ # Set hour field to zero-pad, right-insert, require explicit field change,
583
+ # select entire field on entry, and require a resultant valid entry
584
+ # to allow character entry:
585
+ hourfield = Field(formatcodes='0r<SV', validRegex='0\d|1\d|2[0123]', validRequired=True)
586
+ else:
587
+ if self.__displaySeconds: maskededit_kwargs['autoformat'] = 'TIMEHHMMSS'
588
+ else: maskededit_kwargs['autoformat'] = 'TIMEHHMM'
589
+
590
+ # Set hour field to allow spaces (at start), right-insert,
591
+ # require explicit field change, select entire field on entry,
592
+ # and require a resultant valid entry to allow character entry:
593
+ hourfield = Field(formatcodes='_0<rSV', validRegex='0[1-9]| [1-9]|1[012]', validRequired=True)
594
+ ampmfield = Field(formatcodes='S', emptyInvalid = True, validRequired = True)
595
+
596
+ # Field 1 is always a zero-padded right-insert minute field,
597
+ # similarly configured as above:
598
+ minutefield = Field(formatcodes='0r<SV', validRegex='[0-5]\d', validRequired=True)
599
+
600
+ fields = [ hourfield, minutefield ]
601
+ if self.__displaySeconds:
602
+ fields.append(copy.copy(minutefield)) # second field has same constraints as field 1
603
+
604
+ if not self.__fmt24hr:
605
+ fields.append(ampmfield)
606
+
607
+ # set fields argument:
608
+ maskededit_kwargs['fields'] = fields
609
+
610
+ # This allows range validation if set
611
+ maskededit_kwargs['validFunc'] = self.IsInBounds
612
+
613
+ # This allows range limits to affect insertion into control or not
614
+ # dynamically without affecting individual field constraint validation
615
+ maskededit_kwargs['retainFieldValidation'] = True
616
+
617
+ if hasattr(self, 'controlInitialized') and self.controlInitialized:
618
+ self.SetCtrlParameters(**maskededit_kwargs) # set appropriate parameters
619
+
620
+ # Validate initial value and set if appropriate
621
+ try:
622
+ self.SetBounds(min, max)
623
+ self.SetLimited(limited)
624
+ self.SetValue(value)
625
+ except:
626
+ self.SetValue('00:00:00')
627
+ ## dbg(indent=0)
628
+ return {} # no arguments to return
629
+ else:
630
+ ## dbg(indent=0)
631
+ return maskededit_kwargs
632
+
633
+
634
+ def BindSpinButton(self, sb):
635
+ """
636
+ This function binds an externally created spin button to the control,
637
+ so that up/down events from the button automatically change the control.
638
+
639
+ :param SpinButton `sb`: an instance of :class:`SpinButton`
640
+
641
+ """
642
+ ## dbg('TimeCtrl::BindSpinButton')
643
+ self.__spinButton = sb
644
+ if self.__spinButton:
645
+ # bind event handlers to spin ctrl
646
+ self.__spinButton.Bind(wx.EVT_SPIN_UP, self.__OnSpinUp, self.__spinButton)
647
+ self.__spinButton.Bind(wx.EVT_SPIN_DOWN, self.__OnSpinDown, self.__spinButton)
648
+
649
+
650
+ def __repr__(self):
651
+ return "<TimeCtrl: %s>" % self.GetValue()
652
+
653
+
654
+ def SetValue(self, value):
655
+ """
656
+ Validating SetValue function for time values:
657
+ This function will do dynamic type checking on the value argument,
658
+ and convert :class:`DateTime`, mxDateTime, or 12/24 format time string
659
+ into the appropriate format string for the control.
660
+
661
+ :param `value`: the time value
662
+
663
+ """
664
+ ## dbg('TimeCtrl::SetValue(%s)' % repr(value), indent=1)
665
+ try:
666
+ strtime = self._toGUI(self.__validateValue(value))
667
+ except:
668
+ ## dbg('validation failed', indent=0)
669
+ raise
670
+
671
+ ## dbg('strtime:', strtime)
672
+ self._SetValue(strtime)
673
+ ## dbg(indent=0)
674
+
675
+ def ChangeValue(self, value):
676
+ """
677
+ Validating ChangeValue function for time values:
678
+ This function will do dynamic type checking on the value argument,
679
+ and convert :class:`DateTime`, mxDateTime, or 12/24 format time string
680
+ into the appropriate format string for the control.
681
+
682
+ No change event is fired by this method.
683
+
684
+ :param `value`: the time value
685
+
686
+ """
687
+ ## dbg('TimeCtrl::ChangeValue(%s)' % repr(value), indent=1)
688
+ try:
689
+ strtime = self._toGUI(self.__validateValue(value))
690
+ except:
691
+ ## dbg('validation failed', indent=0)
692
+ raise
693
+
694
+ ## dbg('strtime:', strtime)
695
+ self._ChangeValue(strtime)
696
+ ## dbg(indent=0)
697
+
698
+ def GetValue(self,
699
+ as_wxDateTime = False,
700
+ as_mxDateTime = False,
701
+ as_wxTimeSpan = False,
702
+ as_mxDateTimeDelta = False):
703
+ """
704
+ This function returns the value of the display as a string by default,
705
+ but supports return as a :class:`DateTime`, mx.DateTime, :class:`TimeSpan`,
706
+ or mx.DateTimeDelta, if requested.
707
+ (Evaluated in the order above-- first one wins!)
708
+
709
+ :param boolean `as_wxDateTime`: return value as :class:`DateTime`;
710
+ :param boolean `as_mxDateTime`: return value as mxDateTime;
711
+ :param boolean `as_wxTimeSpan`: return value as :class:`TimeSpan`;
712
+ :param boolean `as_mxDateTimeDelta`: return value as mxDateTimeDelta;
713
+
714
+ """
715
+
716
+ if as_wxDateTime or as_mxDateTime or as_wxTimeSpan or as_mxDateTimeDelta:
717
+ value = self.GetWxDateTime()
718
+ if as_wxDateTime:
719
+ pass
720
+ elif as_mxDateTime:
721
+ value = DateTime.DateTime(1970, 1, 1, value.GetHour(), value.GetMinute(), value.GetSecond())
722
+ elif as_wxTimeSpan:
723
+ value = wx.TimeSpan(value.GetHour(), value.GetMinute(), value.GetSecond())
724
+ elif as_mxDateTimeDelta:
725
+ value = DateTime.DateTimeDelta(0, value.GetHour(), value.GetMinute(), value.GetSecond())
726
+ else:
727
+ value = BaseMaskedTextCtrl.GetValue(self)
728
+ return value
729
+
730
+
731
+ def SetWxDateTime(self, wxdt):
732
+ """
733
+ Because SetValue can take a :class:`DateTime`, this is now just an alias.
734
+ """
735
+ self.SetValue(wxdt)
736
+
737
+
738
+ def GetWxDateTime(self, value=None):
739
+ """
740
+ This function is the conversion engine for TimeCtrl; it takes
741
+ one of the following types:
742
+
743
+ * time string
744
+ * :class:`DateTime`
745
+ * :class:`TimeSpan`
746
+ * mxDateTime
747
+ * mxDateTimeDelta
748
+
749
+ and converts it to a :class:`DateTime` that always has Jan 1, 1970 as
750
+ its date portion, so that range comparisons around values can work using
751
+ :class:`DateTime` built-in comparison function. If a value is not
752
+ provided to convert, the string value of the control will be used.
753
+ If the value is not one of the accepted types, a ValueError will be
754
+ raised.
755
+ """
756
+ global accept_mx
757
+ ## dbg(suspend=1)
758
+ ## dbg('TimeCtrl::GetWxDateTime(%s)' % repr(value), indent=1)
759
+ if value is None:
760
+ ## dbg('getting control value')
761
+ value = self.GetValue()
762
+ ## dbg('value = "%s"' % value)
763
+
764
+ valid = True # assume true
765
+ if isinstance(value, six.string_types):
766
+ value = six.text_type(value) # convert to regular string
767
+
768
+ # Construct constant wxDateTime, then try to parse the string:
769
+ wxdt = wx.DateTime.FromDMY(1, 0, 1970)
770
+ ## dbg('attempting conversion')
771
+ value = value.strip() # (parser doesn't like leading spaces)
772
+ valid = wxdt.ParseTime(value)
773
+
774
+ if not valid:
775
+ # deal with bug/deficiency in wx.DateTime:
776
+ try:
777
+ if wxdt.Format('%p') not in ('AM', 'PM') and checkTime in (5,8):
778
+ # couldn't parse the AM/PM field
779
+ raise ValueError('cannot convert string "%s" to valid time for the current locale; please use 24hr time instead' % value)
780
+ else:
781
+ ## dbg(indent=0, suspend=0)
782
+ raise ValueError('cannot convert string "%s" to valid time' % value)
783
+ except:
784
+ raise ValueError('cannot convert string "%s" to valid time for the current locale; please use 24hr time instead' % value)
785
+
786
+ else:
787
+ if isinstance(value, wx.DateTime):
788
+ hour, minute, second = value.GetHour(), value.GetMinute(), value.GetSecond()
789
+ elif isinstance(value, wx.TimeSpan):
790
+ totalseconds = value.GetSeconds()
791
+ hour = totalseconds / 3600
792
+ minute = totalseconds / 60 - (hour * 60)
793
+ second = totalseconds - ((hour * 3600) + (minute * 60))
794
+
795
+ elif accept_mx and isinstance(value, DateTime.DateTimeType):
796
+ hour, minute, second = value.hour, value.minute, value.second
797
+ elif accept_mx and isinstance(value, DateTime.DateTimeDeltaType):
798
+ hour, minute, second = value.hour, value.minute, value.second
799
+ else:
800
+ # Not a valid function argument
801
+ if accept_mx:
802
+ error = 'GetWxDateTime requires wxDateTime, mxDateTime or parsable time string, passed %s'% repr(value)
803
+ else:
804
+ error = 'GetWxDateTime requires wxDateTime or parsable time string, passed %s'% repr(value)
805
+ ## dbg(indent=0, suspend=0)
806
+ raise ValueError(error)
807
+
808
+ wxdt = wx.DateTime.FromDMY(1, 0, 1970)
809
+ wxdt.SetHour(hour)
810
+ wxdt.SetMinute(minute)
811
+ wxdt.SetSecond(second)
812
+
813
+ ## dbg('wxdt:', wxdt, indent=0, suspend=0)
814
+ return wxdt
815
+
816
+
817
+ def SetMxDateTime(self, mxdt):
818
+ """
819
+ Because SetValue can take an mx.DateTime, (if DateTime is importable),
820
+ this is now just an alias.
821
+ """
822
+ self.SetValue(value)
823
+
824
+
825
+ def GetMxDateTime(self, value=None):
826
+ """
827
+ Returns the value of the control as an mx.DateTime, with the date
828
+ portion set to January 1, 1970.
829
+ """
830
+ if value is None:
831
+ t = self.GetValue(as_mxDateTime=True)
832
+ else:
833
+ # Convert string 1st to wxDateTime, then use components, since
834
+ # mx' DateTime.Parser.TimeFromString() doesn't handle AM/PM:
835
+ wxdt = self.GetWxDateTime(value)
836
+ hour, minute, second = wxdt.GetHour(), wxdt.GetMinute(), wxdt.GetSecond()
837
+ t = DateTime.DateTime(1970,1,1) + DateTimeDelta(0, hour, minute, second)
838
+ return t
839
+
840
+
841
+ def SetMin(self, min=None):
842
+ """
843
+ Sets the minimum value of the control. If a value of None
844
+ is provided, then the control will have no explicit minimum value.
845
+ If the value specified is greater than the current maximum value,
846
+ then the function returns 0 and the minimum will not change from
847
+ its current setting. On success, the function returns 1.
848
+
849
+ If successful and the current value is lower than the new lower
850
+ bound, if the control is limited, the value will be automatically
851
+ adjusted to the new minimum value; if not limited, the value in the
852
+ control will be colored as invalid.
853
+
854
+ :param `min`: Minium value for the control
855
+ :type `min`: integer or None
856
+
857
+ """
858
+ ## dbg('TimeCtrl::SetMin(%s)'% repr(min), indent=1)
859
+ if min is not None:
860
+ try:
861
+ min = self.GetWxDateTime(min)
862
+ self.__min = self._toGUI(min)
863
+ except:
864
+ ## dbg('exception occurred', indent=0)
865
+ return False
866
+ else:
867
+ self.__min = min
868
+
869
+ if self.IsLimited() and not self.IsInBounds():
870
+ self.SetLimited(self.__limited) # force limited value:
871
+ else:
872
+ self._CheckValid()
873
+ ret = True
874
+ ## dbg('ret:', ret, indent=0)
875
+ return ret
876
+
877
+
878
+ def GetMin(self, as_string = False):
879
+ """
880
+ Gets the minimum value of the control.
881
+ If None, it will return None. Otherwise it will return
882
+ the current minimum bound on the control, as a :class:`DateTime`
883
+ by default, or as a string if as_string argument is True.
884
+ """
885
+ ## dbg(suspend=1)
886
+ ## dbg('TimeCtrl::GetMin, as_string?', as_string, indent=1)
887
+ if self.__min is None:
888
+ ## dbg('(min is None)')
889
+ ret = self.__min
890
+ elif as_string:
891
+ ret = self.__min
892
+ ## dbg('ret:', ret)
893
+ else:
894
+ try:
895
+ ret = self.GetWxDateTime(self.__min)
896
+ except:
897
+ ## dbg(suspend=0)
898
+ ## dbg('exception occurred', indent=0)
899
+ raise
900
+ ## dbg('ret:', repr(ret))
901
+ ## dbg(indent=0, suspend=0)
902
+ return ret
903
+
904
+
905
+ def SetMax(self, max=None):
906
+ """
907
+ Sets the maximum value of the control. If a value of None
908
+ is provided, then the control will have no explicit maximum value.
909
+ If the value specified is less than the current minimum value, then
910
+ the function returns False and the maximum will not change from its
911
+ current setting. On success, the function returns True.
912
+
913
+ If successful and the current value is greater than the new upper
914
+ bound, if the control is limited the value will be automatically
915
+ adjusted to this maximum value; if not limited, the value in the
916
+ control will be colored as invalid.
917
+
918
+ :param `max`: Minium value for the control
919
+ :type `max`: integer or None
920
+
921
+ """
922
+ ## dbg('TimeCtrl::SetMax(%s)' % repr(max), indent=1)
923
+ if max is not None:
924
+ try:
925
+ max = self.GetWxDateTime(max)
926
+ self.__max = self._toGUI(max)
927
+ except:
928
+ ## dbg('exception occurred', indent=0)
929
+ return False
930
+ else:
931
+ self.__max = max
932
+ ## dbg('max:', repr(self.__max))
933
+ if self.IsLimited() and not self.IsInBounds():
934
+ self.SetLimited(self.__limited) # force limited value:
935
+ else:
936
+ self._CheckValid()
937
+ ret = True
938
+ ## dbg('ret:', ret, indent=0)
939
+ return ret
940
+
941
+
942
+ def GetMax(self, as_string = False):
943
+ """
944
+ Gets the minimum value of the control.
945
+ If None, it will return None. Otherwise it will return
946
+ the current minimum bound on the control, as a :class:`DateTime`
947
+ by default, or as a string if as_string argument is True.
948
+ """
949
+ ## dbg(suspend=1)
950
+ ## dbg('TimeCtrl::GetMin, as_string?', as_string, indent=1)
951
+ if self.__max is None:
952
+ ## dbg('(max is None)')
953
+ ret = self.__max
954
+ elif as_string:
955
+ ret = self.__max
956
+ ## dbg('ret:', ret)
957
+ else:
958
+ try:
959
+ ret = self.GetWxDateTime(self.__max)
960
+ except:
961
+ ## dbg(suspend=0)
962
+ ## dbg('exception occurred', indent=0)
963
+ raise
964
+ ## dbg('ret:', repr(ret))
965
+ ## dbg(indent=0, suspend=0)
966
+ return ret
967
+
968
+
969
+ def SetBounds(self, min=None, max=None):
970
+ """
971
+ This function is a convenience function for setting the min and max
972
+ values at the same time. The function only applies the maximum bound
973
+ if setting the minimum bound is successful, and returns True
974
+ only if both operations succeed.
975
+
976
+ .. note:: Leaving out an argument will remove the corresponding bound.
977
+
978
+ :param `min`: Minium value for the control
979
+ :type `min`: integer or None
980
+ :param `max`: Minium value for the control
981
+ :type `max`: integer or None
982
+
983
+ """
984
+ ret = self.SetMin(min)
985
+ return ret and self.SetMax(max)
986
+
987
+
988
+ def GetBounds(self, as_string = False):
989
+ """
990
+ This function returns a two-tuple (min,max), indicating the
991
+ current bounds of the control. Each value can be None if
992
+ that bound is not set.
993
+ """
994
+ return (self.GetMin(as_string), self.GetMax(as_string))
995
+
996
+
997
+ def SetLimited(self, limited):
998
+ """
999
+ If called with a value of True, this function will cause the control
1000
+ to limit the value to fall within the bounds currently specified.
1001
+ If the control's value currently exceeds the bounds, it will then
1002
+ be limited accordingly.
1003
+
1004
+ If called with a value of 0, this function will disable value
1005
+ limiting, but coloring of out-of-bounds values will still take
1006
+ place if bounds have been set for the control.
1007
+
1008
+ :param boolean `limited`: define value limiting
1009
+
1010
+ """
1011
+ ## dbg('TimeCtrl::SetLimited(%d)' % limited, indent=1)
1012
+ self.__limited = limited
1013
+
1014
+ if not limited:
1015
+ self.SetMaskParameters(validRequired = False)
1016
+ self._CheckValid()
1017
+ ## dbg(indent=0)
1018
+ return
1019
+
1020
+ ## dbg('requiring valid value')
1021
+ self.SetMaskParameters(validRequired = True)
1022
+
1023
+ min = self.GetMin()
1024
+ max = self.GetMax()
1025
+ if min is None or max is None:
1026
+ ## dbg('both bounds not set; no further action taken')
1027
+ return # can't limit without 2 bounds
1028
+
1029
+ elif not self.IsInBounds():
1030
+ # set value to the nearest bound:
1031
+ try:
1032
+ value = self.GetWxDateTime()
1033
+ except:
1034
+ ## dbg('exception occurred', indent=0)
1035
+ raise
1036
+
1037
+ if min <= max: # valid range doesn't span midnight
1038
+ ## dbg('min <= max')
1039
+ # which makes the "nearest bound" computation trickier...
1040
+
1041
+ # determine how long the "invalid" pie wedge is, and cut
1042
+ # this interval in half for comparison purposes:
1043
+
1044
+ # Note: relies on min and max and value date portions
1045
+ # always being the same.
1046
+ interval = (min + wx.TimeSpan(24, 0, 0, 0)) - max
1047
+
1048
+ half_interval = wx.TimeSpan(
1049
+ 0, # hours
1050
+ 0, # minutes
1051
+ interval.GetSeconds() / 2, # seconds
1052
+ 0) # msec
1053
+
1054
+ if value < min: # min is on next day, so use value on
1055
+ # "next day" for "nearest" interval calculation:
1056
+ cmp_value = value + wx.TimeSpan(24, 0, 0, 0)
1057
+ else: # "before midnight; ok
1058
+ cmp_value = value
1059
+
1060
+ if (cmp_value - max) > half_interval:
1061
+ ## dbg('forcing value to min (%s)' % min.FormatTime())
1062
+ self.SetValue(min)
1063
+ else:
1064
+ ## dbg('forcing value to max (%s)' % max.FormatTime())
1065
+ self.SetValue(max)
1066
+ else:
1067
+ ## dbg('max < min')
1068
+ # therefore max < value < min guaranteed to be true,
1069
+ # so "nearest bound" calculation is much easier:
1070
+ if (value - max) >= (min - value):
1071
+ # current value closer to min; pick that edge of pie wedge
1072
+ ## dbg('forcing value to min (%s)' % min.FormatTime())
1073
+ self.SetValue(min)
1074
+ else:
1075
+ ## dbg('forcing value to max (%s)' % max.FormatTime())
1076
+ self.SetValue(max)
1077
+
1078
+ ## dbg(indent=0)
1079
+
1080
+
1081
+ def IsLimited(self):
1082
+ """
1083
+ Returns True if the control is currently limiting the
1084
+ value to fall within any current bounds. *Note:* can
1085
+ be set even if there are no current bounds.
1086
+ """
1087
+ return self.__limited
1088
+
1089
+
1090
+ def IsInBounds(self, value=None):
1091
+ """
1092
+ Returns True if no value is specified and the current value
1093
+ of the control falls within the current bounds. As the clock
1094
+ is a "circle", both minimum and maximum bounds must be set for
1095
+ a value to ever be considered "out of bounds". This function can
1096
+ also be called with a value to see if that value would fall within
1097
+ the current bounds of the given control.
1098
+ """
1099
+ if value is not None:
1100
+ try:
1101
+ value = self.GetWxDateTime(value) # try to regularize passed value
1102
+ except ValueError:
1103
+ ## dbg('ValueError getting wxDateTime for %s' % repr(value), indent=0)
1104
+ raise
1105
+
1106
+ ## dbg('TimeCtrl::IsInBounds(%s)' % repr(value), indent=1)
1107
+ if self.__min is None or self.__max is None:
1108
+ ## dbg(indent=0)
1109
+ return True
1110
+
1111
+ elif value is None:
1112
+ try:
1113
+ value = self.GetWxDateTime()
1114
+ except:
1115
+ ## dbg('exception occurred', indent=0)
1116
+ raise
1117
+
1118
+ ## dbg('value:', value.FormatTime())
1119
+
1120
+ # Get wxDateTime representations of bounds:
1121
+ min = self.GetMin()
1122
+ max = self.GetMax()
1123
+
1124
+ midnight = wx.DateTime.FromDMY(1, 0, 1970)
1125
+ if min <= max: # they don't span midnight
1126
+ ret = min <= value <= max
1127
+
1128
+ else:
1129
+ # have to break into 2 tests; to be in bounds
1130
+ # either "min" <= value (<= midnight of *next day*)
1131
+ # or midnight <= value <= "max"
1132
+ ret = min <= value or (midnight <= value <= max)
1133
+ ## dbg('in bounds?', ret, indent=0)
1134
+ return ret
1135
+
1136
+
1137
+ def IsValid(self, value):
1138
+ """
1139
+ Can be used to determine if a given value would be a legal and
1140
+ in-bounds value for the control.
1141
+
1142
+ :param `value`: value to check
1143
+ """
1144
+ try:
1145
+ self.__validateValue(value)
1146
+ return True
1147
+ except ValueError:
1148
+ return False
1149
+
1150
+ def SetFormat(self, format):
1151
+ self.SetParameters(format=format)
1152
+
1153
+ def GetFormat(self):
1154
+ if self.__displaySeconds:
1155
+ if self.__fmt24hr: return '24HHMMSS'
1156
+ else: return 'HHMMSS'
1157
+ else:
1158
+ if self.__fmt24hr: return '24HHMM'
1159
+ else: return 'HHMM'
1160
+
1161
+ #-------------------------------------------------------------------------------------------------------------
1162
+ # these are private functions and overrides:
1163
+
1164
+
1165
+ def __OnTextChange(self, event=None):
1166
+ ## dbg('TimeCtrl::OnTextChange', indent=1)
1167
+
1168
+ # Allow Maskedtext base control to color as appropriate,
1169
+ # and Skip the EVT_TEXT event (if appropriate.)
1170
+ ##! WS: For some inexplicable reason, every wxTextCtrl.SetValue()
1171
+ ## call is generating two (2) EVT_TEXT events. (!)
1172
+ ## The the only mechanism I can find to mask this problem is to
1173
+ ## keep track of last value seen, and declare a valid EVT_TEXT
1174
+ ## event iff the value has actually changed. The masked edit
1175
+ ## OnTextChange routine does this, and returns True on a valid event,
1176
+ ## False otherwise.
1177
+ if not BaseMaskedTextCtrl._OnTextChange(self, event):
1178
+ return
1179
+
1180
+ ## dbg('firing TimeUpdatedEvent...')
1181
+ evt = TimeUpdatedEvent(self.GetId(), self.GetValue())
1182
+ evt.SetEventObject(self)
1183
+ self.GetEventHandler().ProcessEvent(evt)
1184
+ ## dbg(indent=0)
1185
+
1186
+
1187
+ def SetInsertionPoint(self, pos):
1188
+ """
1189
+ This override records the specified position and associated cell before
1190
+ calling base class' function. This is necessary to handle the optional
1191
+ spin button, because the insertion point is lost when the focus shifts
1192
+ to the spin button.
1193
+ """
1194
+ ## dbg('TimeCtrl::SetInsertionPoint', pos, indent=1)
1195
+ BaseMaskedTextCtrl.SetInsertionPoint(self, pos) # (causes EVT_TEXT event to fire)
1196
+ self.__posCurrent = self.GetInsertionPoint()
1197
+ ## dbg(indent=0)
1198
+
1199
+
1200
+ def SetSelection(self, sel_start, sel_to):
1201
+ ## dbg('TimeCtrl::SetSelection', sel_start, sel_to, indent=1)
1202
+
1203
+ # Adjust selection range to legal extent if not already
1204
+ if sel_start < 0:
1205
+ sel_start = 0
1206
+
1207
+ if self.__posCurrent != sel_start: # force selection and insertion point to match
1208
+ self.SetInsertionPoint(sel_start)
1209
+ cell_start, cell_end = self._FindField(sel_start)._extent
1210
+ if not cell_start <= sel_to <= cell_end:
1211
+ sel_to = cell_end
1212
+
1213
+ self.__bSelection = sel_start != sel_to
1214
+ BaseMaskedTextCtrl.SetSelection(self, sel_start, sel_to)
1215
+ ## dbg(indent=0)
1216
+
1217
+
1218
+ def __OnSpin(self, key):
1219
+ """
1220
+ This is the function that gets called in response to up/down arrow or
1221
+ bound spin button events.
1222
+ """
1223
+ self.__IncrementValue(key, self.__posCurrent) # changes the value
1224
+
1225
+ # Ensure adjusted control regains focus and has adjusted portion
1226
+ # selected:
1227
+ self.SetFocus()
1228
+ start, end = self._FindField(self.__posCurrent)._extent
1229
+ self.SetInsertionPoint(start)
1230
+ self.SetSelection(start, end)
1231
+ ## dbg('current position:', self.__posCurrent)
1232
+
1233
+
1234
+ def __OnSpinUp(self, event):
1235
+ """
1236
+ Event handler for any bound spin button on EVT_SPIN_UP;
1237
+ causes control to behave as if up arrow was pressed.
1238
+ """
1239
+ ## dbg('TimeCtrl::OnSpinUp', indent=1)
1240
+ self.__OnSpin(wx.WXK_UP)
1241
+ keep_processing = False
1242
+ ## dbg(indent=0)
1243
+ return keep_processing
1244
+
1245
+
1246
+ def __OnSpinDown(self, event):
1247
+ """
1248
+ Event handler for any bound spin button on EVT_SPIN_DOWN;
1249
+ causes control to behave as if down arrow was pressed.
1250
+ """
1251
+ ## dbg('TimeCtrl::OnSpinDown', indent=1)
1252
+ self.__OnSpin(wx.WXK_DOWN)
1253
+ keep_processing = False
1254
+ ## dbg(indent=0)
1255
+ return keep_processing
1256
+
1257
+
1258
+ def __OnChar(self, event):
1259
+ """
1260
+ Handler to explicitly look for ':' keyevents, and if found,
1261
+ clear the shiftDown field, so it will behave as forward tab.
1262
+ It then calls the base control's _OnChar routine with the modified
1263
+ event instance.
1264
+ """
1265
+ ## dbg('TimeCtrl::OnChar', indent=1)
1266
+ keycode = event.GetKeyCode()
1267
+ ## dbg('keycode:', keycode)
1268
+ if keycode == ord(':'):
1269
+ ## dbg('colon seen! removing shift attribute')
1270
+ event.shiftDown = False
1271
+ BaseMaskedTextCtrl._OnChar(self, event ) ## handle each keypress
1272
+ ## dbg(indent=0)
1273
+
1274
+
1275
+ def __OnSetToNow(self, event):
1276
+ """
1277
+ This is the key handler for '!' and 'c'; this allows the user to
1278
+ quickly set the value of the control to the current time.
1279
+ """
1280
+ self.SetValue(wx.DateTime.Now().FormatTime())
1281
+ keep_processing = False
1282
+ return keep_processing
1283
+
1284
+
1285
+ def __LimitSelection(self, event):
1286
+ """
1287
+ Event handler for motion events; this handler
1288
+ changes limits the selection to the new cell boundaries.
1289
+ """
1290
+ ## dbg('TimeCtrl::LimitSelection', indent=1)
1291
+ pos = self.GetInsertionPoint()
1292
+ self.__posCurrent = pos
1293
+ sel_start, sel_to = self.GetSelection()
1294
+ selection = sel_start != sel_to
1295
+ if selection:
1296
+ # only allow selection to end of current cell:
1297
+ start, end = self._FindField(sel_start)._extent
1298
+ if sel_to < pos: sel_to = start
1299
+ elif sel_to > pos: sel_to = end
1300
+
1301
+ ## dbg('new pos =', self.__posCurrent, 'select to ', sel_to)
1302
+ self.SetInsertionPoint(self.__posCurrent)
1303
+ self.SetSelection(self.__posCurrent, sel_to)
1304
+ if event: event.Skip()
1305
+ ## dbg(indent=0)
1306
+
1307
+
1308
+ def __IncrementValue(self, key, pos):
1309
+ ## dbg('TimeCtrl::IncrementValue', key, pos, indent=1)
1310
+ text = self.GetValue()
1311
+ field = self._FindField(pos)
1312
+ ## dbg('field: ', field._index)
1313
+ start, end = field._extent
1314
+ slice = text[start:end]
1315
+ if key == wx.WXK_UP: increment = 1
1316
+ else: increment = -1
1317
+
1318
+ if slice in ('A', 'P'):
1319
+ if slice == 'A': newslice = 'P'
1320
+ elif slice == 'P': newslice = 'A'
1321
+ newvalue = text[:start] + newslice + text[end:]
1322
+
1323
+ elif field._index == 0:
1324
+ # adjusting this field is trickier, as its value can affect the
1325
+ # am/pm setting. So, we use wxDateTime to generate a new value for us:
1326
+ # (Use a fixed date not subject to DST variations:)
1327
+ converter = wx.DateTime.FromDMY(1, 0, 1970)
1328
+ ## dbg('text: "%s"' % text)
1329
+ converter.ParseTime(text.strip())
1330
+ currenthour = converter.GetHour()
1331
+ ## dbg('current hour:', currenthour)
1332
+ newhour = (currenthour + increment) % 24
1333
+ ## dbg('newhour:', newhour)
1334
+ converter.SetHour(newhour)
1335
+ ## dbg('converter.GetHour():', converter.GetHour())
1336
+ newvalue = converter # take advantage of auto-conversion for am/pm in .SetValue()
1337
+
1338
+ else: # minute or second field; handled the same way:
1339
+ newslice = "%02d" % ((int(slice) + increment) % 60)
1340
+ newvalue = text[:start] + newslice + text[end:]
1341
+
1342
+ try:
1343
+ self.SetValue(newvalue)
1344
+
1345
+ except ValueError: # must not be in bounds:
1346
+ if not wx.Validator.IsSilent():
1347
+ wx.Bell()
1348
+ ## dbg(indent=0)
1349
+
1350
+
1351
+ def _toGUI( self, wxdt ):
1352
+ """
1353
+ This function takes a wxdt as an unambiguous representation of a time, and
1354
+ converts it to a string appropriate for the format of the control.
1355
+ """
1356
+ if self.__fmt24hr:
1357
+ if self.__displaySeconds: strval = wxdt.Format('%H:%M:%S')
1358
+ else: strval = wxdt.Format('%H:%M')
1359
+ else:
1360
+ if self.__displaySeconds: strval = wxdt.Format('%I:%M:%S %p')
1361
+ else: strval = wxdt.Format('%I:%M %p')
1362
+
1363
+ return strval
1364
+
1365
+
1366
+ def __validateValue( self, value ):
1367
+ """
1368
+ This function converts the value to a wxDateTime if not already one,
1369
+ does bounds checking and raises ValueError if argument is
1370
+ not a valid value for the control as currently specified.
1371
+ It is used by both the SetValue() and the IsValid() methods.
1372
+ """
1373
+ ## dbg('TimeCtrl::__validateValue(%s)' % repr(value), indent=1)
1374
+ if not value:
1375
+ ## dbg(indent=0)
1376
+ raise ValueError('%s not a valid time value' % repr(value))
1377
+
1378
+ valid = True # assume true
1379
+ try:
1380
+ value = self.GetWxDateTime(value) # regularize form; can generate ValueError if problem doing so
1381
+ except:
1382
+ ## dbg('exception occurred', indent=0)
1383
+ raise
1384
+
1385
+ if self.IsLimited() and not self.IsInBounds(value):
1386
+ ## dbg(indent=0)
1387
+ raise ValueError (
1388
+ 'value %s is not within the bounds of the control' % six.text_type(value) )
1389
+ ## dbg(indent=0)
1390
+ return value
1391
+
1392
+ #----------------------------------------------------------------------------
1393
+ # Test jig for TimeCtrl:
1394
+
1395
+ if __name__ == '__main__':
1396
+ import traceback
1397
+
1398
+ class TestPanel(wx.Panel):
1399
+ def __init__(self, parent, id,
1400
+ pos = wx.DefaultPosition, size = wx.DefaultSize,
1401
+ fmt24hr = 0, test_mx = 0,
1402
+ style = wx.TAB_TRAVERSAL ):
1403
+
1404
+ wx.Panel.__init__(self, parent, id, pos, size, style)
1405
+
1406
+ self.test_mx = test_mx
1407
+
1408
+ self.tc = TimeCtrl(self, 10, fmt24hr = fmt24hr)
1409
+ sb = wx.SpinButton( self, 20, wx.DefaultPosition, (-1,20), 0 )
1410
+ self.tc.BindSpinButton(sb)
1411
+
1412
+ sizer = wx.BoxSizer( wx.HORIZONTAL )
1413
+ sizer.Add( self.tc, 0, wx.ALIGN_CENTRE|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )
1414
+ sizer.Add( sb, 0, wx.ALIGN_CENTRE|wx.RIGHT|wx.TOP|wx.BOTTOM, 5 )
1415
+
1416
+ self.SetAutoLayout( True )
1417
+ self.SetSizer( sizer )
1418
+ sizer.Fit( self )
1419
+ sizer.SetSizeHints( self )
1420
+
1421
+ self.Bind(EVT_TIMEUPDATE, self.OnTimeChange, self.tc)
1422
+
1423
+ def OnTimeChange(self, event):
1424
+ ## dbg('OnTimeChange: value = ', event.GetValue())
1425
+ wxdt = self.tc.GetWxDateTime()
1426
+ ## dbg('wxdt =', wxdt.GetHour(), wxdt.GetMinute(), wxdt.GetSecond())
1427
+ if self.test_mx:
1428
+ mxdt = self.tc.GetMxDateTime()
1429
+ ## dbg('mxdt =', mxdt.hour, mxdt.minute, mxdt.second)
1430
+
1431
+
1432
+ class MyApp(wx.App):
1433
+ def OnInit(self):
1434
+ import sys
1435
+ fmt24hr = '24' in sys.argv
1436
+ test_mx = 'mx' in sys.argv
1437
+ try:
1438
+ frame = wx.Frame(None, -1, "TimeCtrl Test", (20,20), (100,100) )
1439
+ panel = TestPanel(frame, -1, (-1,-1), fmt24hr=fmt24hr, test_mx = test_mx)
1440
+ frame.Show(True)
1441
+ except:
1442
+ traceback.print_exc()
1443
+ return False
1444
+ return True
1445
+
1446
+ try:
1447
+ app = MyApp(0)
1448
+ app.MainLoop()
1449
+ except:
1450
+ traceback.print_exc()
1451
+ __i=0
1452
+
1453
+ ## CHANGELOG:
1454
+ ## ====================
1455
+ ## Version 1.3
1456
+ ## 1. Converted docstrings to reST format, added doc for ePyDoc.
1457
+ ## 2. Renamed helper functions, vars etc. not intended to be visible in public
1458
+ ## interface to code.
1459
+ ##
1460
+ ## Version 1.2
1461
+ ## 1. Changed parameter name display_seconds to displaySeconds, to follow
1462
+ ## other masked edit conventions.
1463
+ ## 2. Added format parameter, to remove need to use both fmt24hr and displaySeconds.
1464
+ ## 3. Changed inheritance to use BaseMaskedTextCtrl, to remove exposure of
1465
+ ## nonsensical parameter methods from the control, so it will work
1466
+ ## properly with Boa.