wxPython 4.3.2__cp315-cp315-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 (472) hide show
  1. wx/WebView2Loader.dll +0 -0
  2. wx/__init__.py +22 -0
  3. wx/__init__.pyi +10 -0
  4. wx/__version__.py +9 -0
  5. wx/__version__.pyi +15 -0
  6. wx/_adv.cp315-win_amd64.pyd +0 -0
  7. wx/_aui.cp315-win_amd64.pyd +0 -0
  8. wx/_core.cp315-win_amd64.pyd +0 -0
  9. wx/_dataview.cp315-win_amd64.pyd +0 -0
  10. wx/_glcanvas.cp315-win_amd64.pyd +0 -0
  11. wx/_grid.cp315-win_amd64.pyd +0 -0
  12. wx/_html.cp315-win_amd64.pyd +0 -0
  13. wx/_html2.cp315-win_amd64.pyd +0 -0
  14. wx/_media.cp315-win_amd64.pyd +0 -0
  15. wx/_msw.cp315-win_amd64.pyd +0 -0
  16. wx/_propgrid.cp315-win_amd64.pyd +0 -0
  17. wx/_ribbon.cp315-win_amd64.pyd +0 -0
  18. wx/_richtext.cp315-win_amd64.pyd +0 -0
  19. wx/_stc.cp315-win_amd64.pyd +0 -0
  20. wx/_xml.cp315-win_amd64.pyd +0 -0
  21. wx/_xrc.cp315-win_amd64.pyd +0 -0
  22. wx/adv.py +127 -0
  23. wx/adv.pyi +5931 -0
  24. wx/aui.py +70 -0
  25. wx/aui.pyi +4805 -0
  26. wx/core.py +3417 -0
  27. wx/core.pyi +62949 -0
  28. wx/dataview.py +176 -0
  29. wx/dataview.pyi +3828 -0
  30. wx/gizmos.py +18 -0
  31. wx/glcanvas.py +13 -0
  32. wx/glcanvas.pyi +544 -0
  33. wx/grid.py +237 -0
  34. wx/grid.pyi +5678 -0
  35. wx/html.py +38 -0
  36. wx/html.pyi +3283 -0
  37. wx/html2.py +46 -0
  38. wx/html2.pyi +1301 -0
  39. wx/include/wxPython/sip.h +1938 -0
  40. wx/include/wxPython/wxpy_api.h +418 -0
  41. wx/lib/CDate.py +201 -0
  42. wx/lib/ClickableHtmlWindow.py +57 -0
  43. wx/lib/__init__.py +0 -0
  44. wx/lib/activex.py +178 -0
  45. wx/lib/activexwrapper.py +153 -0
  46. wx/lib/agw/__init__.py +128 -0
  47. wx/lib/agw/advancedsplash.py +563 -0
  48. wx/lib/agw/aquabutton.py +1127 -0
  49. wx/lib/agw/artmanager.py +2110 -0
  50. wx/lib/agw/aui/__init__.py +295 -0
  51. wx/lib/agw/aui/aui_constants.py +2616 -0
  52. wx/lib/agw/aui/aui_switcherdialog.py +1232 -0
  53. wx/lib/agw/aui/aui_utilities.py +648 -0
  54. wx/lib/agw/aui/auibar.py +4045 -0
  55. wx/lib/agw/aui/auibook.py +6288 -0
  56. wx/lib/agw/aui/dockart.py +1198 -0
  57. wx/lib/agw/aui/framemanager.py +10485 -0
  58. wx/lib/agw/aui/tabart.py +2749 -0
  59. wx/lib/agw/aui/tabmdi.py +679 -0
  60. wx/lib/agw/balloontip.py +1157 -0
  61. wx/lib/agw/buttonpanel.py +2787 -0
  62. wx/lib/agw/cubecolourdialog.py +3529 -0
  63. wx/lib/agw/customtreectrl.py +9908 -0
  64. wx/lib/agw/data/ShortcutEditor_1.png +0 -0
  65. wx/lib/agw/data/ShortcutEditor_1_thumb.png +0 -0
  66. wx/lib/agw/data/ShortcutEditor_2.png +0 -0
  67. wx/lib/agw/data/ShortcutEditor_2_thumb.png +0 -0
  68. wx/lib/agw/data/ShortcutEditor_3.png +0 -0
  69. wx/lib/agw/data/ShortcutEditor_3_thumb.png +0 -0
  70. wx/lib/agw/data/ShortcutEditor_4.png +0 -0
  71. wx/lib/agw/data/ShortcutEditor_4_thumb.png +0 -0
  72. wx/lib/agw/data/default_help_text.html +105 -0
  73. wx/lib/agw/flatmenu.py +7392 -0
  74. wx/lib/agw/flatnotebook.py +6669 -0
  75. wx/lib/agw/floatspin.py +1820 -0
  76. wx/lib/agw/fmcustomizedlg.py +535 -0
  77. wx/lib/agw/fmresources.py +407 -0
  78. wx/lib/agw/foldpanelbar.py +2282 -0
  79. wx/lib/agw/fourwaysplitter.py +1130 -0
  80. wx/lib/agw/genericmessagedialog.py +1549 -0
  81. wx/lib/agw/gradientbutton.py +731 -0
  82. wx/lib/agw/hyperlink.py +664 -0
  83. wx/lib/agw/hypertreelist.py +5756 -0
  84. wx/lib/agw/infobar.py +885 -0
  85. wx/lib/agw/knobctrl.py +944 -0
  86. wx/lib/agw/labelbook.py +3028 -0
  87. wx/lib/agw/multidirdialog.py +581 -0
  88. wx/lib/agw/peakmeter.py +1028 -0
  89. wx/lib/agw/persist/__init__.py +188 -0
  90. wx/lib/agw/persist/persist_constants.py +283 -0
  91. wx/lib/agw/persist/persist_handlers.py +2614 -0
  92. wx/lib/agw/persist/persistencemanager.py +863 -0
  93. wx/lib/agw/piectrl.py +1082 -0
  94. wx/lib/agw/pybusyinfo.py +399 -0
  95. wx/lib/agw/pycollapsiblepane.py +940 -0
  96. wx/lib/agw/pygauge.py +570 -0
  97. wx/lib/agw/pyprogress.py +916 -0
  98. wx/lib/agw/ribbon/__init__.py +198 -0
  99. wx/lib/agw/ribbon/art.py +219 -0
  100. wx/lib/agw/ribbon/art_aui.py +1283 -0
  101. wx/lib/agw/ribbon/art_default.py +81 -0
  102. wx/lib/agw/ribbon/art_internal.py +248 -0
  103. wx/lib/agw/ribbon/art_msw.py +2735 -0
  104. wx/lib/agw/ribbon/art_osx.py +52 -0
  105. wx/lib/agw/ribbon/bar.py +1259 -0
  106. wx/lib/agw/ribbon/buttonbar.py +1317 -0
  107. wx/lib/agw/ribbon/control.py +205 -0
  108. wx/lib/agw/ribbon/gallery.py +973 -0
  109. wx/lib/agw/ribbon/page.py +946 -0
  110. wx/lib/agw/ribbon/panel.py +1170 -0
  111. wx/lib/agw/ribbon/toolbar.py +1441 -0
  112. wx/lib/agw/rulerctrl.py +1885 -0
  113. wx/lib/agw/scrolledthumbnail.py +2116 -0
  114. wx/lib/agw/shapedbutton.py +1809 -0
  115. wx/lib/agw/shortcuteditor.py +2642 -0
  116. wx/lib/agw/speedmeter.py +1800 -0
  117. wx/lib/agw/supertooltip.py +1443 -0
  118. wx/lib/agw/thumbnailctrl.py +529 -0
  119. wx/lib/agw/toasterbox.py +1327 -0
  120. wx/lib/agw/ultimatelistctrl.py +13671 -0
  121. wx/lib/agw/xlsgrid.py +2111 -0
  122. wx/lib/agw/zoombar.py +1336 -0
  123. wx/lib/analogclock/__init__.py +140 -0
  124. wx/lib/analogclock/analogclock.py +630 -0
  125. wx/lib/analogclock/helpers.py +986 -0
  126. wx/lib/analogclock/lib_setup/__init__.py +0 -0
  127. wx/lib/analogclock/lib_setup/buttontreectrlpanel.py +297 -0
  128. wx/lib/analogclock/lib_setup/fontselect.py +57 -0
  129. wx/lib/analogclock/setup.py +490 -0
  130. wx/lib/analogclock/styles.py +47 -0
  131. wx/lib/anchors.py +103 -0
  132. wx/lib/art/__init__.py +4 -0
  133. wx/lib/art/flagart.py +1583 -0
  134. wx/lib/art/img2pyartprov.py +56 -0
  135. wx/lib/busy.py +152 -0
  136. wx/lib/buttons.py +1140 -0
  137. wx/lib/calendar.py +1596 -0
  138. wx/lib/checkbox.py +837 -0
  139. wx/lib/colourchooser/__init__.py +36 -0
  140. wx/lib/colourchooser/canvas.py +145 -0
  141. wx/lib/colourchooser/intl.py +24 -0
  142. wx/lib/colourchooser/pycolourbox.py +89 -0
  143. wx/lib/colourchooser/pycolourchooser.py +626 -0
  144. wx/lib/colourchooser/pycolourslider.py +98 -0
  145. wx/lib/colourchooser/pypalette.py +208 -0
  146. wx/lib/colourdb.py +740 -0
  147. wx/lib/colourselect.py +385 -0
  148. wx/lib/colourutils.py +118 -0
  149. wx/lib/combotreebox.py +944 -0
  150. wx/lib/delayedresult.py +420 -0
  151. wx/lib/dialogs.py +510 -0
  152. wx/lib/docview.py +3210 -0
  153. wx/lib/dragscroller.py +79 -0
  154. wx/lib/editor/README.txt +77 -0
  155. wx/lib/editor/__init__.py +24 -0
  156. wx/lib/editor/editor.py +974 -0
  157. wx/lib/editor/images.py +15 -0
  158. wx/lib/editor/selection.py +44 -0
  159. wx/lib/embeddedimage.py +76 -0
  160. wx/lib/eventStack.py +136 -0
  161. wx/lib/eventwatcher.py +440 -0
  162. wx/lib/evtmgr.py +521 -0
  163. wx/lib/expando.py +393 -0
  164. wx/lib/fancytext.py +494 -0
  165. wx/lib/filebrowsebutton.py +461 -0
  166. wx/lib/flashwin.py +262 -0
  167. wx/lib/flashwin_old.py +651 -0
  168. wx/lib/floatcanvas/FCEvents.py +53 -0
  169. wx/lib/floatcanvas/FCObjects.py +2910 -0
  170. wx/lib/floatcanvas/FloatCanvas.py +1025 -0
  171. wx/lib/floatcanvas/GUIMode.py +396 -0
  172. wx/lib/floatcanvas/NavCanvas.py +162 -0
  173. wx/lib/floatcanvas/Resources.py +319 -0
  174. wx/lib/floatcanvas/ScreenShot.py +1788 -0
  175. wx/lib/floatcanvas/Utilities/BBox.py +313 -0
  176. wx/lib/floatcanvas/Utilities/Colors.py +137 -0
  177. wx/lib/floatcanvas/Utilities/GUI.py +91 -0
  178. wx/lib/floatcanvas/Utilities/__init__.py +7 -0
  179. wx/lib/floatcanvas/__init__.py +124 -0
  180. wx/lib/foldmenu.py +89 -0
  181. wx/lib/gestures.py +310 -0
  182. wx/lib/gizmos/__init__.py +18 -0
  183. wx/lib/gizmos/dynamicsash.py +1202 -0
  184. wx/lib/gizmos/ledctrl.py +299 -0
  185. wx/lib/gizmos/treelistctrl.py +87 -0
  186. wx/lib/graphics.py +1942 -0
  187. wx/lib/gridmovers.py +516 -0
  188. wx/lib/iewin.py +249 -0
  189. wx/lib/iewin_old.py +894 -0
  190. wx/lib/imagebrowser.py +853 -0
  191. wx/lib/imageutils.py +163 -0
  192. wx/lib/infoframe.py +490 -0
  193. wx/lib/inspection.py +1254 -0
  194. wx/lib/intctrl.py +990 -0
  195. wx/lib/itemspicker.py +256 -0
  196. wx/lib/langlistctrl.py +480 -0
  197. wx/lib/layoutf.py +271 -0
  198. wx/lib/masked/__init__.py +27 -0
  199. wx/lib/masked/combobox.py +839 -0
  200. wx/lib/masked/ctrl.py +108 -0
  201. wx/lib/masked/ipaddrctrl.py +241 -0
  202. wx/lib/masked/maskededit.py +7262 -0
  203. wx/lib/masked/numctrl.py +2000 -0
  204. wx/lib/masked/textctrl.py +465 -0
  205. wx/lib/masked/timectrl.py +1465 -0
  206. wx/lib/mixins/__init__.py +17 -0
  207. wx/lib/mixins/grid.py +47 -0
  208. wx/lib/mixins/gridlabelrenderer.py +277 -0
  209. wx/lib/mixins/imagelist.py +77 -0
  210. wx/lib/mixins/inspection.py +184 -0
  211. wx/lib/mixins/listctrl.py +893 -0
  212. wx/lib/mixins/rubberband.py +403 -0
  213. wx/lib/mixins/treemixin.py +678 -0
  214. wx/lib/msgpanel.py +95 -0
  215. wx/lib/multisash.py +746 -0
  216. wx/lib/myole4ax.idl +178 -0
  217. wx/lib/myole4ax.tlb +0 -0
  218. wx/lib/newevent.py +229 -0
  219. wx/lib/newevent.pyi +25 -0
  220. wx/lib/nvdlg.py +156 -0
  221. wx/lib/ogl/__init__.py +13 -0
  222. wx/lib/ogl/basic.py +3989 -0
  223. wx/lib/ogl/bmpshape.py +86 -0
  224. wx/lib/ogl/canvas.py +467 -0
  225. wx/lib/ogl/composit.py +1576 -0
  226. wx/lib/ogl/diagram.py +230 -0
  227. wx/lib/ogl/divided.py +482 -0
  228. wx/lib/ogl/drawn.py +898 -0
  229. wx/lib/ogl/lines.py +1809 -0
  230. wx/lib/ogl/oglmisc.py +607 -0
  231. wx/lib/pdfviewer/__init__.py +113 -0
  232. wx/lib/pdfviewer/bitmaps/ArrowLeft.png +0 -0
  233. wx/lib/pdfviewer/bitmaps/ArrowRight.png +0 -0
  234. wx/lib/pdfviewer/bitmaps/DirectionH.png +0 -0
  235. wx/lib/pdfviewer/bitmaps/DirectionV.png +0 -0
  236. wx/lib/pdfviewer/bitmaps/PlayerFirst.png +0 -0
  237. wx/lib/pdfviewer/bitmaps/PlayerLast.png +0 -0
  238. wx/lib/pdfviewer/bitmaps/PlayerNext.png +0 -0
  239. wx/lib/pdfviewer/bitmaps/PlayerPrev.png +0 -0
  240. wx/lib/pdfviewer/bitmaps/Printer.png +0 -0
  241. wx/lib/pdfviewer/bitmaps/ReadMe.txt +28 -0
  242. wx/lib/pdfviewer/bitmaps/Save.png +0 -0
  243. wx/lib/pdfviewer/bitmaps/ZoomIn.png +0 -0
  244. wx/lib/pdfviewer/bitmaps/ZoomOut.png +0 -0
  245. wx/lib/pdfviewer/bitmaps/encode_bitmaps.py +37 -0
  246. wx/lib/pdfviewer/buttonpanel.py +285 -0
  247. wx/lib/pdfviewer/images.py +240 -0
  248. wx/lib/pdfviewer/viewer.py +1118 -0
  249. wx/lib/pdfwin.py +295 -0
  250. wx/lib/pdfwin_old.py +789 -0
  251. wx/lib/platebtn.py +789 -0
  252. wx/lib/plot/CHANGELOG.md +150 -0
  253. wx/lib/plot/README.md +16 -0
  254. wx/lib/plot/__init__.py +46 -0
  255. wx/lib/plot/__main__.py +5 -0
  256. wx/lib/plot/examples/__init__.py +0 -0
  257. wx/lib/plot/examples/demo.py +1010 -0
  258. wx/lib/plot/examples/simple_example.py +56 -0
  259. wx/lib/plot/plotcanvas.py +2985 -0
  260. wx/lib/plot/polyobjects.py +1524 -0
  261. wx/lib/plot/utils.py +334 -0
  262. wx/lib/popupctl.py +251 -0
  263. wx/lib/printout.py +1155 -0
  264. wx/lib/progressindicator.py +151 -0
  265. wx/lib/pubsub/LICENSE_BSD_Simple.txt +23 -0
  266. wx/lib/pubsub/README_WxPython.txt +22 -0
  267. wx/lib/pubsub/RELEASE_NOTES.txt +71 -0
  268. wx/lib/pubsub/__init__.py +25 -0
  269. wx/lib/pubsub/core/__init__.py +92 -0
  270. wx/lib/pubsub/core/arg1/__init__.py +16 -0
  271. wx/lib/pubsub/core/arg1/listenerimpl.py +97 -0
  272. wx/lib/pubsub/core/arg1/publisher.py +40 -0
  273. wx/lib/pubsub/core/arg1/publishermixin.py +34 -0
  274. wx/lib/pubsub/core/arg1/topicargspecimpl.py +66 -0
  275. wx/lib/pubsub/core/arg1/topicmgrimpl.py +19 -0
  276. wx/lib/pubsub/core/callables.py +198 -0
  277. wx/lib/pubsub/core/imp2.py +62 -0
  278. wx/lib/pubsub/core/itopicdefnprovider.py +0 -0
  279. wx/lib/pubsub/core/kwargs/__init__.py +16 -0
  280. wx/lib/pubsub/core/kwargs/datamsg.py +27 -0
  281. wx/lib/pubsub/core/kwargs/listenerimpl.py +93 -0
  282. wx/lib/pubsub/core/kwargs/publisher.py +77 -0
  283. wx/lib/pubsub/core/kwargs/publishermixin.py +65 -0
  284. wx/lib/pubsub/core/kwargs/topicargspecimpl.py +216 -0
  285. wx/lib/pubsub/core/kwargs/topicmgrimpl.py +13 -0
  286. wx/lib/pubsub/core/listener.py +40 -0
  287. wx/lib/pubsub/core/listenerbase.py +185 -0
  288. wx/lib/pubsub/core/notificationmgr.py +185 -0
  289. wx/lib/pubsub/core/publisherbase.py +189 -0
  290. wx/lib/pubsub/core/topicargspec.py +77 -0
  291. wx/lib/pubsub/core/topicdefnprovider.py +631 -0
  292. wx/lib/pubsub/core/topicexc.py +72 -0
  293. wx/lib/pubsub/core/topicmgr.py +454 -0
  294. wx/lib/pubsub/core/topicobj.py +472 -0
  295. wx/lib/pubsub/core/topictreetraverser.py +143 -0
  296. wx/lib/pubsub/core/topicutils.py +119 -0
  297. wx/lib/pubsub/core/treeconfig.py +21 -0
  298. wx/lib/pubsub/core/validatedefnargs.py +29 -0
  299. wx/lib/pubsub/core/weakmethod.py +102 -0
  300. wx/lib/pubsub/policies.py +24 -0
  301. wx/lib/pubsub/pub.py +199 -0
  302. wx/lib/pubsub/setuparg1.py +47 -0
  303. wx/lib/pubsub/setupkwargs.py +29 -0
  304. wx/lib/pubsub/utils/__init__.py +27 -0
  305. wx/lib/pubsub/utils/exchandling.py +100 -0
  306. wx/lib/pubsub/utils/misc.py +99 -0
  307. wx/lib/pubsub/utils/notification.py +331 -0
  308. wx/lib/pubsub/utils/topictreeprinter.py +195 -0
  309. wx/lib/pubsub/utils/xmltopicdefnprovider.py +286 -0
  310. wx/lib/pydocview.py +3300 -0
  311. wx/lib/rcsizer.py +227 -0
  312. wx/lib/resizewidget.py +357 -0
  313. wx/lib/scrolledpanel.py +243 -0
  314. wx/lib/sheet.py +350 -0
  315. wx/lib/sized_controls.py +691 -0
  316. wx/lib/softwareupdate.py +355 -0
  317. wx/lib/splitter.py +925 -0
  318. wx/lib/statbmp.py +199 -0
  319. wx/lib/stattext.py +321 -0
  320. wx/lib/throbber.py +424 -0
  321. wx/lib/ticker.py +306 -0
  322. wx/lib/ticker_xrc.py +48 -0
  323. wx/lib/utils.py +89 -0
  324. wx/lib/wordwrap.py +97 -0
  325. wx/lib/wxcairo/__init__.py +139 -0
  326. wx/lib/wxcairo/wx_cairocffi.py +200 -0
  327. wx/lib/wxcairo/wx_pycairo.py +455 -0
  328. wx/lib/wxpTag.py +274 -0
  329. wx/libcairo-2.dll +0 -0
  330. wx/locale/af/LC_MESSAGES/wxstd.mo +0 -0
  331. wx/locale/an/LC_MESSAGES/wxstd.mo +0 -0
  332. wx/locale/ar/LC_MESSAGES/wxstd.mo +0 -0
  333. wx/locale/ca/LC_MESSAGES/wxstd.mo +0 -0
  334. wx/locale/ca@valencia/LC_MESSAGES/wxstd.mo +0 -0
  335. wx/locale/co/LC_MESSAGES/wxstd.mo +0 -0
  336. wx/locale/cs/LC_MESSAGES/wxstd.mo +0 -0
  337. wx/locale/da/LC_MESSAGES/wxstd.mo +0 -0
  338. wx/locale/de/LC_MESSAGES/wxstd.mo +0 -0
  339. wx/locale/el/LC_MESSAGES/wxstd.mo +0 -0
  340. wx/locale/es/LC_MESSAGES/wxstd.mo +0 -0
  341. wx/locale/eu/LC_MESSAGES/wxstd.mo +0 -0
  342. wx/locale/fa_IR/LC_MESSAGES/wxstd.mo +0 -0
  343. wx/locale/fi/LC_MESSAGES/wxstd.mo +0 -0
  344. wx/locale/fr/LC_MESSAGES/wxstd.mo +0 -0
  345. wx/locale/gl_ES/LC_MESSAGES/wxstd.mo +0 -0
  346. wx/locale/hi/LC_MESSAGES/wxstd.mo +0 -0
  347. wx/locale/hr/LC_MESSAGES/wxstd.mo +0 -0
  348. wx/locale/hu/LC_MESSAGES/wxstd.mo +0 -0
  349. wx/locale/id/LC_MESSAGES/wxstd.mo +0 -0
  350. wx/locale/it/LC_MESSAGES/wxstd.mo +0 -0
  351. wx/locale/ja/LC_MESSAGES/wxstd.mo +0 -0
  352. wx/locale/ka/LC_MESSAGES/wxstd.mo +0 -0
  353. wx/locale/ko_KR/LC_MESSAGES/wxstd.mo +0 -0
  354. wx/locale/lt/LC_MESSAGES/wxstd.mo +0 -0
  355. wx/locale/lv/LC_MESSAGES/wxstd.mo +0 -0
  356. wx/locale/ms/LC_MESSAGES/wxstd.mo +0 -0
  357. wx/locale/nb/LC_MESSAGES/wxstd.mo +0 -0
  358. wx/locale/ne/LC_MESSAGES/wxstd.mo +0 -0
  359. wx/locale/nl/LC_MESSAGES/wxstd.mo +0 -0
  360. wx/locale/pl/LC_MESSAGES/wxstd.mo +0 -0
  361. wx/locale/pt/LC_MESSAGES/wxstd.mo +0 -0
  362. wx/locale/pt_BR/LC_MESSAGES/wxstd.mo +0 -0
  363. wx/locale/ro/LC_MESSAGES/wxstd.mo +0 -0
  364. wx/locale/ru/LC_MESSAGES/wxstd.mo +0 -0
  365. wx/locale/sk/LC_MESSAGES/wxstd.mo +0 -0
  366. wx/locale/sl/LC_MESSAGES/wxstd.mo +0 -0
  367. wx/locale/sq/LC_MESSAGES/wxstd.mo +0 -0
  368. wx/locale/sr/LC_MESSAGES/wxstd.mo +0 -0
  369. wx/locale/sv/LC_MESSAGES/wxstd.mo +0 -0
  370. wx/locale/ta/LC_MESSAGES/wxstd.mo +0 -0
  371. wx/locale/tr/LC_MESSAGES/wxstd.mo +0 -0
  372. wx/locale/uk/LC_MESSAGES/wxstd.mo +0 -0
  373. wx/locale/vi/LC_MESSAGES/wxstd.mo +0 -0
  374. wx/locale/zh_CN/LC_MESSAGES/wxstd.mo +0 -0
  375. wx/locale/zh_TW/LC_MESSAGES/wxstd.mo +0 -0
  376. wx/media.py +30 -0
  377. wx/media.pyi +272 -0
  378. wx/msw.py +16 -0
  379. wx/msw.pyi +91 -0
  380. wx/propgrid.py +498 -0
  381. wx/propgrid.pyi +7427 -0
  382. wx/py/CHANGES.txt +796 -0
  383. wx/py/Py.ico +0 -0
  384. wx/py/PyAlaCarte.py +34 -0
  385. wx/py/PyAlaMode.py +34 -0
  386. wx/py/PyAlaModeTest.py +33 -0
  387. wx/py/PyCrust.ico +0 -0
  388. wx/py/PyCrust.py +78 -0
  389. wx/py/PyCrust_16.png +0 -0
  390. wx/py/PyCrust_32.png +0 -0
  391. wx/py/PyFilling.py +35 -0
  392. wx/py/PyShell.py +78 -0
  393. wx/py/PySlices.ico +0 -0
  394. wx/py/PySlices.py +98 -0
  395. wx/py/PySlicesShell.py +94 -0
  396. wx/py/PySlices_16.png +0 -0
  397. wx/py/PySlices_32.png +0 -0
  398. wx/py/PyWrap.py +52 -0
  399. wx/py/README.txt +77 -0
  400. wx/py/__init__.py +20 -0
  401. wx/py/buffer.py +136 -0
  402. wx/py/crust.py +403 -0
  403. wx/py/crustslices.py +403 -0
  404. wx/py/dispatcher.py +259 -0
  405. wx/py/document.py +37 -0
  406. wx/py/editor.py +844 -0
  407. wx/py/editwindow.py +316 -0
  408. wx/py/filling.py +358 -0
  409. wx/py/frame.py +976 -0
  410. wx/py/images.py +212 -0
  411. wx/py/interpreter.py +161 -0
  412. wx/py/introspect.py +402 -0
  413. wx/py/magic.py +98 -0
  414. wx/py/parse.py +134 -0
  415. wx/py/path.py +36 -0
  416. wx/py/pseudo.py +99 -0
  417. wx/py/shell.py +1579 -0
  418. wx/py/sliceshell.py +3805 -0
  419. wx/py/tests/test_interpreter.py +71 -0
  420. wx/py/tests/test_introspect.py +810 -0
  421. wx/py/tests/test_pseudo.py +70 -0
  422. wx/py/tests/test_version.py +36 -0
  423. wx/py/tests/testall.py +22 -0
  424. wx/py/version.py +7 -0
  425. wx/py.typed +0 -0
  426. wx/ribbon.py +48 -0
  427. wx/ribbon.pyi +3099 -0
  428. wx/richtext.py +141 -0
  429. wx/richtext.pyi +13581 -0
  430. wx/siplib.cp315-win_amd64.pyd +0 -0
  431. wx/siplib.pyi +19 -0
  432. wx/stc.py +59 -0
  433. wx/stc.pyi +9918 -0
  434. wx/svg/__init__.py +363 -0
  435. wx/svg/_nanosvg.cp315-win_amd64.pyd +0 -0
  436. wx/tools/__init__.py +18 -0
  437. wx/tools/dbg.py +268 -0
  438. wx/tools/genaxmodule.py +50 -0
  439. wx/tools/helpviewer.py +92 -0
  440. wx/tools/img2img.py +85 -0
  441. wx/tools/img2png.py +54 -0
  442. wx/tools/img2py.py +306 -0
  443. wx/tools/img2xpm.py +54 -0
  444. wx/tools/pywxrc.py +951 -0
  445. wx/tools/wxget.py +254 -0
  446. wx/tools/wxget_docs_demo.py +183 -0
  447. wx/wxbase334u_net_vc140_x64.dll +0 -0
  448. wx/wxbase334u_vc140_x64.dll +0 -0
  449. wx/wxbase334u_xml_vc140_x64.dll +0 -0
  450. wx/wxmsw334u_adv_vc140_x64.dll +0 -0
  451. wx/wxmsw334u_aui_vc140_x64.dll +0 -0
  452. wx/wxmsw334u_core_vc140_x64.dll +0 -0
  453. wx/wxmsw334u_gl_vc140_x64.dll +0 -0
  454. wx/wxmsw334u_html_vc140_x64.dll +0 -0
  455. wx/wxmsw334u_media_vc140_x64.dll +0 -0
  456. wx/wxmsw334u_propgrid_vc140_x64.dll +0 -0
  457. wx/wxmsw334u_qa_vc140_x64.dll +0 -0
  458. wx/wxmsw334u_ribbon_vc140_x64.dll +0 -0
  459. wx/wxmsw334u_richtext_vc140_x64.dll +0 -0
  460. wx/wxmsw334u_stc_vc140_x64.dll +0 -0
  461. wx/wxmsw334u_webview_vc140_x64.dll +0 -0
  462. wx/wxmsw334u_xrc_vc140_x64.dll +0 -0
  463. wx/xml.py +18 -0
  464. wx/xml.pyi +728 -0
  465. wx/xrc.py +68 -0
  466. wx/xrc.pyi +896 -0
  467. wxpython-4.3.2.dist-info/METADATA +71 -0
  468. wxpython-4.3.2.dist-info/RECORD +472 -0
  469. wxpython-4.3.2.dist-info/WHEEL +5 -0
  470. wxpython-4.3.2.dist-info/entry_points.txt +13 -0
  471. wxpython-4.3.2.dist-info/licenses/LICENSE.txt +610 -0
  472. wxpython-4.3.2.dist-info/top_level.txt +1 -0
wx/html.pyi ADDED
@@ -0,0 +1,3283 @@
1
+ # -*- coding: utf-8 -*-
2
+ #---------------------------------------------------------------------------
3
+ # This file is generated by wxPython's PI generator. Do not edit by hand.
4
+ #
5
+ # The *.pyi files are used by PyCharm and other development tools to provide
6
+ # more information, such as PEP 484 type hints, than it is able to glean from
7
+ # introspection of extension types and methods. They are not intended to be
8
+ # imported, executed or used for any other purpose other than providing info
9
+ # to the tools. If you don't use use a tool that makes use of .pyi files then
10
+ # you can safely ignore this file.
11
+ #
12
+ # See: https://www.python.org/dev/peps/pep-0484/
13
+ # https://www.jetbrains.com/help/pycharm/2016.1/type-hinting-in-pycharm.html
14
+ #
15
+ # Copyright: (c) 2020 by Total Control Software
16
+ # License: wxWindows License
17
+ #---------------------------------------------------------------------------
18
+
19
+ #-- begin-typing-imports --#
20
+ from __future__ import annotations
21
+ import builtins
22
+ import typing
23
+ from datetime import datetime, date
24
+ from enum import IntEnum, IntFlag, auto
25
+ from typing import (Any, overload, TypeAlias, Generic, TypeVar, Protocol, ClassVar, final,
26
+ Union, Optional, List, Tuple, Callable, Iterator, Sequence
27
+ )
28
+ try:
29
+ from typing import ParamSpec
30
+ except ImportError:
31
+ from typing_extensions import ParamSpec
32
+ from typing_extensions import Buffer
33
+
34
+ _TwoInts: TypeAlias = Tuple[int, int]
35
+ _ThreeInts: TypeAlias = Tuple[int, int, int]
36
+ _FourInts: TypeAlias = Tuple[int, int, int, int]
37
+ _TwoFloats: TypeAlias = Tuple[float, float]
38
+ _FourFloats: TypeAlias = Tuple[float, float, float, float]
39
+
40
+ #-- end-typing-imports --#
41
+
42
+ """
43
+ This module contains a widget class and supporting classes for a generic HTML
44
+ renderer. It supports only a subset of the HTML standards, and no Javascript
45
+ or CSS, but it is relatively lightweight and has no platform dependencies. It
46
+ is suitable for displaying simple HTML documents, such as the application's
47
+ documentation or built-in help pages.
48
+
49
+ .. note:: Due to some internal dynamic initialization in wxWidgets, this
50
+ module should be imported **before** the :class:`wx.App` object is
51
+ created.
52
+ """
53
+ #-- begin-_html --#
54
+
55
+ import wx
56
+ #-- end-_html --#
57
+ #-- begin-htmldefs --#
58
+ HTML_ALIGN_LEFT: int
59
+ HTML_ALIGN_RIGHT: int
60
+ HTML_ALIGN_JUSTIFY: int
61
+ HTML_ALIGN_TOP: int
62
+ HTML_ALIGN_BOTTOM: int
63
+ HTML_ALIGN_CENTER: int
64
+ HTML_CLR_FOREGROUND: int
65
+ HTML_CLR_BACKGROUND: int
66
+ HTML_CLR_TRANSPARENT_BACKGROUND: int
67
+ HTML_UNITS_PIXELS: int
68
+ HTML_UNITS_PERCENT: int
69
+ HTML_INDENT_LEFT: int
70
+ HTML_INDENT_RIGHT: int
71
+ HTML_INDENT_TOP: int
72
+ HTML_INDENT_BOTTOM: int
73
+ HTML_INDENT_HORIZONTAL: int
74
+ HTML_INDENT_VERTICAL: int
75
+ HTML_INDENT_ALL: int
76
+ HTML_COND_ISANCHOR: int
77
+ HTML_COND_ISIMAGEMAP: int
78
+ HTML_COND_USER: int
79
+ INT_MAX: int
80
+ #-- end-htmldefs --#
81
+ #-- begin-htmlcell --#
82
+ import wx.html
83
+ import wx.siplib
84
+
85
+ @final
86
+ class HtmlSelectionState(int, metaclass=wx.siplib.enumtype):
87
+ HTML_SEL_OUT: ClassVar[HtmlSelectionState]
88
+ HTML_SEL_IN: ClassVar[HtmlSelectionState]
89
+ HTML_SEL_CHANGING: ClassVar[HtmlSelectionState]
90
+ HTML_SEL_OUT: HtmlSelectionState
91
+ HTML_SEL_IN: HtmlSelectionState
92
+ HTML_SEL_CHANGING: HtmlSelectionState
93
+ HTML_FIND_EXACT: int
94
+ HTML_FIND_NEAREST_BEFORE: int
95
+ HTML_FIND_NEAREST_AFTER: int
96
+
97
+ @final
98
+ class HtmlScriptMode(int, metaclass=wx.siplib.enumtype):
99
+ HTML_SCRIPT_NORMAL: ClassVar[HtmlScriptMode]
100
+ HTML_SCRIPT_SUB: ClassVar[HtmlScriptMode]
101
+ HTML_SCRIPT_SUP: ClassVar[HtmlScriptMode]
102
+ HTML_SCRIPT_NORMAL: HtmlScriptMode
103
+ HTML_SCRIPT_SUB: HtmlScriptMode
104
+ HTML_SCRIPT_SUP: HtmlScriptMode
105
+
106
+ class HtmlSelection(wx.siplib.wrapper):
107
+ """
108
+ HtmlSelection() -> None
109
+ """
110
+
111
+ def __init__(self) -> None:
112
+ """
113
+ HtmlSelection() -> None
114
+ """
115
+
116
+ @overload
117
+ def Set(self, fromCell: HtmlCell, toCell: HtmlCell) -> None:
118
+ ...
119
+
120
+ @overload
121
+ def Set(self, fromPos: Union[wx.Point, _TwoInts], fromCell: HtmlCell, toPos: Union[wx.Point, _TwoInts], toCell: HtmlCell) -> None:
122
+ """
123
+ Set(fromPos, fromCell, toPos, toCell) -> None
124
+ Set(fromCell, toCell) -> None
125
+ """
126
+
127
+ def GetFromCell(self) -> HtmlCell:
128
+ """
129
+ GetFromCell() -> HtmlCell
130
+ """
131
+
132
+ def GetToCell(self) -> HtmlCell:
133
+ """
134
+ GetToCell() -> HtmlCell
135
+ """
136
+
137
+ def GetFromPos(self) -> wx.Point:
138
+ """
139
+ GetFromPos() -> wx.Point
140
+ """
141
+
142
+ def GetToPos(self) -> wx.Point:
143
+ """
144
+ GetToPos() -> wx.Point
145
+ """
146
+
147
+ def ClearFromToCharacterPos(self) -> None:
148
+ """
149
+ ClearFromToCharacterPos() -> None
150
+ """
151
+
152
+ def AreFromToCharacterPosSet(self) -> bool:
153
+ """
154
+ AreFromToCharacterPosSet() -> bool
155
+ """
156
+
157
+ def SetFromCharacterPos(self, pos: int) -> None:
158
+ """
159
+ SetFromCharacterPos(pos) -> None
160
+ """
161
+
162
+ def SetToCharacterPos(self, pos: int) -> None:
163
+ """
164
+ SetToCharacterPos(pos) -> None
165
+ """
166
+
167
+ def GetFromCharacterPos(self) -> int:
168
+ """
169
+ GetFromCharacterPos() -> int
170
+ """
171
+
172
+ def GetToCharacterPos(self) -> int:
173
+ """
174
+ GetToCharacterPos() -> int
175
+ """
176
+
177
+ def IsEmpty(self) -> bool:
178
+ """
179
+ IsEmpty() -> bool
180
+ """
181
+ @property
182
+ def FromCell(self) -> HtmlCell: ...
183
+ @property
184
+ def FromCharacterPos(self) -> int: ...
185
+ @FromCharacterPos.setter
186
+ def FromCharacterPos(self, value: int, /) -> None: ...
187
+ @property
188
+ def FromPos(self) -> wx.Point: ...
189
+ @property
190
+ def ToCell(self) -> HtmlCell: ...
191
+ @property
192
+ def ToCharacterPos(self) -> int: ...
193
+ @ToCharacterPos.setter
194
+ def ToCharacterPos(self, value: int, /) -> None: ...
195
+ @property
196
+ def ToPos(self) -> wx.Point: ...
197
+ # end of class HtmlSelection
198
+
199
+
200
+ class HtmlRenderingState(wx.siplib.wrapper):
201
+ """
202
+ HtmlRenderingState() -> None
203
+
204
+ Selection state is passed to wxHtmlCell::Draw so that it can render
205
+ itself differently e.g.
206
+ """
207
+
208
+ def __init__(self) -> None:
209
+ """
210
+ HtmlRenderingState() -> None
211
+
212
+ Selection state is passed to wxHtmlCell::Draw so that it can render
213
+ itself differently e.g.
214
+ """
215
+
216
+ def SetSelectionState(self, s: Union[HtmlSelectionState, int]) -> None:
217
+ """
218
+ SetSelectionState(s) -> None
219
+ """
220
+
221
+ def GetSelectionState(self) -> HtmlSelectionState:
222
+ """
223
+ GetSelectionState() -> HtmlSelectionState
224
+ """
225
+
226
+ def SetFgColour(self, c: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
227
+ """
228
+ SetFgColour(c) -> None
229
+ """
230
+
231
+ def GetFgColour(self) -> wx.Colour:
232
+ """
233
+ GetFgColour() -> wx.Colour
234
+ """
235
+
236
+ def SetBgColour(self, c: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
237
+ """
238
+ SetBgColour(c) -> None
239
+ """
240
+
241
+ def GetBgColour(self) -> wx.Colour:
242
+ """
243
+ GetBgColour() -> wx.Colour
244
+ """
245
+
246
+ def SetBgMode(self, m: int) -> None:
247
+ """
248
+ SetBgMode(m) -> None
249
+ """
250
+
251
+ def GetBgMode(self) -> int:
252
+ """
253
+ GetBgMode() -> int
254
+ """
255
+ @property
256
+ def BgColour(self) -> wx.Colour: ...
257
+ @BgColour.setter
258
+ def BgColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
259
+ @property
260
+ def BgMode(self) -> int: ...
261
+ @BgMode.setter
262
+ def BgMode(self, value: int, /) -> None: ...
263
+ @property
264
+ def FgColour(self) -> wx.Colour: ...
265
+ @FgColour.setter
266
+ def FgColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
267
+ @property
268
+ def SelectionState(self) -> HtmlSelectionState: ...
269
+ @SelectionState.setter
270
+ def SelectionState(self, value: Union[HtmlSelectionState, int], /) -> None: ...
271
+ # end of class HtmlRenderingState
272
+
273
+
274
+ class HtmlRenderingStyle(wx.siplib.wrapper):
275
+ """
276
+ wxHtmlSelection is data holder with information about text selection.
277
+ """
278
+
279
+ def GetSelectedTextColour(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> wx.Colour:
280
+ """
281
+ GetSelectedTextColour(clr) -> wx.Colour
282
+
283
+ Returns the colour to use for the selected text.
284
+ """
285
+
286
+ def GetSelectedTextBgColour(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> wx.Colour:
287
+ """
288
+ GetSelectedTextBgColour(clr) -> wx.Colour
289
+
290
+ Returns the colour to use for the selected text's background.
291
+ """
292
+ # end of class HtmlRenderingStyle
293
+
294
+
295
+ class HtmlRenderingInfo(wx.siplib.wrapper):
296
+ """
297
+ HtmlRenderingInfo() -> None
298
+
299
+ This class contains information given to cells when drawing them.
300
+ """
301
+
302
+ def __init__(self) -> None:
303
+ """
304
+ HtmlRenderingInfo() -> None
305
+
306
+ This class contains information given to cells when drawing them.
307
+ """
308
+
309
+ def SetSelection(self, s: HtmlSelection) -> None:
310
+ """
311
+ SetSelection(s) -> None
312
+
313
+ Accessors.
314
+ """
315
+
316
+ def GetSelection(self) -> HtmlSelection:
317
+ """
318
+ GetSelection() -> HtmlSelection
319
+ """
320
+
321
+ def SetStyle(self, style: HtmlRenderingStyle) -> None:
322
+ """
323
+ SetStyle(style) -> None
324
+ """
325
+
326
+ def GetStyle(self) -> HtmlRenderingStyle:
327
+ """
328
+ GetStyle() -> HtmlRenderingStyle
329
+ """
330
+
331
+ def GetState(self) -> HtmlRenderingState:
332
+ """
333
+ GetState() -> HtmlRenderingState
334
+ """
335
+ @property
336
+ def Selection(self) -> HtmlSelection: ...
337
+ @Selection.setter
338
+ def Selection(self, value: HtmlSelection, /) -> None: ...
339
+ @property
340
+ def State(self) -> HtmlRenderingState: ...
341
+ @property
342
+ def Style(self) -> HtmlRenderingStyle: ...
343
+ @Style.setter
344
+ def Style(self, value: HtmlRenderingStyle, /) -> None: ...
345
+ # end of class HtmlRenderingInfo
346
+
347
+
348
+ class HtmlCell(wx.Object):
349
+ """
350
+ HtmlCell() -> None
351
+
352
+ Internal data structure.
353
+ """
354
+
355
+ def __init__(self) -> None:
356
+ """
357
+ HtmlCell() -> None
358
+
359
+ Internal data structure.
360
+ """
361
+
362
+ def AdjustPagebreak(self, pagebreak: int, pageHeight: int) -> Tuple[bool, int]:
363
+ """
364
+ AdjustPagebreak(pagebreak, pageHeight) -> Tuple[bool, int]
365
+
366
+ This method is called when paginating HTML, e.g. when printing.
367
+ """
368
+
369
+ def Draw(self, dc: wx.DC, x: int, y: int, view_y1: int, view_y2: int, info: HtmlRenderingInfo) -> None:
370
+ """
371
+ Draw(dc, x, y, view_y1, view_y2, info) -> None
372
+
373
+ Renders the cell.
374
+ """
375
+
376
+ def DrawInvisible(self, dc: wx.DC, x: int, y: int, info: HtmlRenderingInfo) -> None:
377
+ """
378
+ DrawInvisible(dc, x, y, info) -> None
379
+
380
+ This method is called instead of Draw() when the cell is certainly out
381
+ of the screen (and thus invisible).
382
+ """
383
+
384
+ def Find(self, condition: int, param: str) -> HtmlCell:
385
+ """
386
+ Find(condition, param) -> HtmlCell
387
+
388
+ Returns pointer to itself if this cell matches condition (or if any of
389
+ the cells following in the list matches), nullptr otherwise.
390
+ """
391
+
392
+ def FindCellByPos(self, x: int, y: int, flags: int=HTML_FIND_EXACT) -> HtmlCell:
393
+ """
394
+ FindCellByPos(x, y, flags=HTML_FIND_EXACT) -> HtmlCell
395
+
396
+ Find a cell inside this cell positioned at the given coordinates
397
+ (relative to this's positions).
398
+ """
399
+
400
+ def GetDescent(self) -> int:
401
+ """
402
+ GetDescent() -> int
403
+
404
+ Returns descent value of the cell (m_Descent member).
405
+ """
406
+
407
+ def GetFirstChild(self) -> HtmlCell:
408
+ """
409
+ GetFirstChild() -> HtmlCell
410
+
411
+ Returns pointer to the first cell in the list.
412
+ """
413
+
414
+ def GetHeight(self) -> int:
415
+ """
416
+ GetHeight() -> int
417
+
418
+ Returns height of the cell (m_Height member).
419
+ """
420
+
421
+ def GetId(self) -> str:
422
+ """
423
+ GetId() -> str
424
+
425
+ Returns unique cell identifier if there is any, the empty string
426
+ otherwise.
427
+ """
428
+
429
+ def GetLink(self, x: int=0, y: int=0) -> HtmlLinkInfo:
430
+ """
431
+ GetLink(x=0, y=0) -> HtmlLinkInfo
432
+
433
+ Returns hypertext link if associated with this cell or nullptr
434
+ otherwise.
435
+ """
436
+
437
+ def GetMouseCursor(self, window: HtmlWindowInterface) -> wx.Cursor:
438
+ """
439
+ GetMouseCursor(window) -> wx.Cursor
440
+
441
+ Returns cursor to show when mouse pointer is over the cell.
442
+ """
443
+
444
+ def GetMouseCursorAt(self, window: HtmlWindowInterface, rePos: Union[wx.Point, _TwoInts]) -> wx.Cursor:
445
+ """
446
+ GetMouseCursorAt(window, rePos) -> wx.Cursor
447
+
448
+ Returns cursor to show when mouse pointer is over the specified point.
449
+ """
450
+
451
+ def GetNext(self) -> HtmlCell:
452
+ """
453
+ GetNext() -> HtmlCell
454
+
455
+ Returns pointer to the next cell in list (see htmlcell.h if you're
456
+ interested in details).
457
+ """
458
+
459
+ def GetParent(self) -> HtmlContainerCell:
460
+ """
461
+ GetParent() -> HtmlContainerCell
462
+
463
+ Returns pointer to parent container.
464
+ """
465
+
466
+ def GetPosX(self) -> int:
467
+ """
468
+ GetPosX() -> int
469
+
470
+ Returns X position within parent (the value is relative to parent's
471
+ upper left corner).
472
+ """
473
+
474
+ def GetPosY(self) -> int:
475
+ """
476
+ GetPosY() -> int
477
+
478
+ Returns Y position within parent (the value is relative to parent's
479
+ upper left corner).
480
+ """
481
+
482
+ def GetWidth(self) -> int:
483
+ """
484
+ GetWidth() -> int
485
+
486
+ Returns width of the cell (m_Width member).
487
+ """
488
+
489
+ def HasId(self) -> bool:
490
+ """
491
+ HasId() -> bool
492
+
493
+ Returns true if this cell has a non-empty ID.
494
+ """
495
+
496
+ def Layout(self, w: int) -> None:
497
+ """
498
+ Layout(w) -> None
499
+
500
+ Layouts the cell.
501
+ """
502
+
503
+ def ProcessMouseClick(self, window: HtmlWindowInterface, pos: Union[wx.Point, _TwoInts], event: wx.MouseEvent) -> bool:
504
+ """
505
+ ProcessMouseClick(window, pos, event) -> bool
506
+
507
+ This function is simple event handler.
508
+ """
509
+
510
+ def SetId(self, id: str) -> None:
511
+ """
512
+ SetId(id) -> None
513
+
514
+ Sets unique cell identifier.
515
+ """
516
+
517
+ def SetLink(self, link: HtmlLinkInfo) -> None:
518
+ """
519
+ SetLink(link) -> None
520
+
521
+ Sets the hypertext link associated with this cell.
522
+ """
523
+
524
+ def SetNext(self, cell: HtmlCell) -> None:
525
+ """
526
+ SetNext(cell) -> None
527
+
528
+ Sets the next cell in the list.
529
+ """
530
+
531
+ def SetParent(self, p: HtmlContainerCell) -> None:
532
+ """
533
+ SetParent(p) -> None
534
+
535
+ Sets parent container of this cell.
536
+ """
537
+
538
+ def SetPos(self, x: int, y: int) -> None:
539
+ """
540
+ SetPos(x, y) -> None
541
+
542
+ Sets the cell's position within parent container.
543
+ """
544
+
545
+ def ConvertToText(self, sel: HtmlSelection) -> str:
546
+ """
547
+ ConvertToText(sel) -> str
548
+
549
+ Converts the cell into text representation.
550
+ """
551
+
552
+ def GetAbsPos(self, rootCell: Optional[HtmlCell]=None) -> wx.Point:
553
+ """
554
+ GetAbsPos(rootCell=None) -> wx.Point
555
+ """
556
+
557
+ def GetRootCell(self) -> HtmlCell:
558
+ """
559
+ GetRootCell() -> HtmlCell
560
+ """
561
+ @property
562
+ def AbsPos(self) -> wx.Point: ...
563
+ @property
564
+ def Descent(self) -> int: ...
565
+ @property
566
+ def FirstChild(self) -> HtmlCell: ...
567
+ @property
568
+ def Height(self) -> int: ...
569
+ @property
570
+ def Id(self) -> str: ...
571
+ @Id.setter
572
+ def Id(self, value: str, /) -> None: ...
573
+ @property
574
+ def Link(self) -> HtmlLinkInfo: ...
575
+ @Link.setter
576
+ def Link(self, value: HtmlLinkInfo, /) -> None: ...
577
+ @property
578
+ def Next(self) -> HtmlCell: ...
579
+ @Next.setter
580
+ def Next(self, value: HtmlCell, /) -> None: ...
581
+ @property
582
+ def Parent(self) -> HtmlContainerCell: ...
583
+ @Parent.setter
584
+ def Parent(self, value: HtmlContainerCell, /) -> None: ...
585
+ @property
586
+ def PosX(self) -> int: ...
587
+ @property
588
+ def PosY(self) -> int: ...
589
+ @property
590
+ def RootCell(self) -> HtmlCell: ...
591
+ @property
592
+ def Width(self) -> int: ...
593
+ # end of class HtmlCell
594
+
595
+
596
+ class HtmlContainerCell(HtmlCell):
597
+ """
598
+ HtmlContainerCell(parent) -> None
599
+
600
+ The wxHtmlContainerCell class is an implementation of a cell that may
601
+ contain more cells in it.
602
+ """
603
+
604
+ def __init__(self, parent: HtmlContainerCell) -> None:
605
+ """
606
+ HtmlContainerCell(parent) -> None
607
+
608
+ The wxHtmlContainerCell class is an implementation of a cell that may
609
+ contain more cells in it.
610
+ """
611
+
612
+ def Detach(self, cell: HtmlCell) -> None:
613
+ """
614
+ Detach(cell) -> None
615
+
616
+ Detach a child cell.
617
+ """
618
+
619
+ def GetAlignHor(self) -> int:
620
+ """
621
+ GetAlignHor() -> int
622
+
623
+ Returns container's horizontal alignment.
624
+ """
625
+
626
+ def GetAlignVer(self) -> int:
627
+ """
628
+ GetAlignVer() -> int
629
+
630
+ Returns container's vertical alignment.
631
+ """
632
+
633
+ def GetBackgroundColour(self) -> wx.Colour:
634
+ """
635
+ GetBackgroundColour() -> wx.Colour
636
+
637
+ Returns the background colour of the container or wxNullColour if no
638
+ background colour is set.
639
+ """
640
+
641
+ def GetIndent(self, ind: int) -> int:
642
+ """
643
+ GetIndent(ind) -> int
644
+
645
+ Returns the indentation.
646
+ """
647
+
648
+ def GetIndentUnits(self, ind: int) -> int:
649
+ """
650
+ GetIndentUnits(ind) -> int
651
+
652
+ Returns the units of indentation for ind where ind is one of the
653
+ wxHTML_INDENT_* constants.
654
+ """
655
+
656
+ def InsertCell(self, cell: HtmlCell) -> None:
657
+ """
658
+ InsertCell(cell) -> None
659
+
660
+ Inserts a new cell into the container.
661
+ """
662
+
663
+ def SetAlign(self, tag: HtmlTag) -> None:
664
+ """
665
+ SetAlign(tag) -> None
666
+
667
+ Sets the container's alignment (both horizontal and vertical)
668
+ according to the values stored in tag.
669
+ """
670
+
671
+ def SetAlignHor(self, al: int) -> None:
672
+ """
673
+ SetAlignHor(al) -> None
674
+
675
+ Sets the container's horizontal alignment.
676
+ """
677
+
678
+ def SetAlignVer(self, al: int) -> None:
679
+ """
680
+ SetAlignVer(al) -> None
681
+
682
+ Sets the container's vertical alignment.
683
+ """
684
+
685
+ def SetBackgroundColour(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
686
+ """
687
+ SetBackgroundColour(clr) -> None
688
+
689
+ Sets the background colour for this container.
690
+ """
691
+
692
+ def SetBorder(self, clr1: Union[wx.Colour, _ThreeInts, _FourInts, str, None], clr2: Union[wx.Colour, _ThreeInts, _FourInts, str, None], border: int=1) -> None:
693
+ """
694
+ SetBorder(clr1, clr2, border=1) -> None
695
+
696
+ Sets the border (frame) colours.
697
+ """
698
+
699
+ def SetIndent(self, i: int, what: int, units: int=HTML_UNITS_PIXELS) -> None:
700
+ """
701
+ SetIndent(i, what, units=HTML_UNITS_PIXELS) -> None
702
+
703
+ Sets the indentation (free space between borders of container and
704
+ subcells).
705
+ """
706
+
707
+ def SetMinHeight(self, h: int, align: int=HTML_ALIGN_TOP) -> None:
708
+ """
709
+ SetMinHeight(h, align=HTML_ALIGN_TOP) -> None
710
+
711
+ Sets minimal height of the container.
712
+ """
713
+
714
+ @overload
715
+ def SetWidthFloat(self, tag: HtmlTag, pixel_scale: float=1.0) -> None:
716
+ ...
717
+
718
+ @overload
719
+ def SetWidthFloat(self, w: int, units: int) -> None:
720
+ """
721
+ SetWidthFloat(w, units) -> None
722
+ SetWidthFloat(tag, pixel_scale=1.0) -> None
723
+
724
+ Sets floating width adjustment.
725
+ """
726
+ @property
727
+ def AlignHor(self) -> int: ...
728
+ @AlignHor.setter
729
+ def AlignHor(self, value: int, /) -> None: ...
730
+ @property
731
+ def AlignVer(self) -> int: ...
732
+ @AlignVer.setter
733
+ def AlignVer(self, value: int, /) -> None: ...
734
+ @property
735
+ def BackgroundColour(self) -> wx.Colour: ...
736
+ @BackgroundColour.setter
737
+ def BackgroundColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
738
+ # end of class HtmlContainerCell
739
+
740
+
741
+ class HtmlLinkInfo(wx.Object):
742
+ """
743
+ HtmlLinkInfo() -> None
744
+ HtmlLinkInfo(href, target='') -> None
745
+
746
+ This class stores all necessary information about hypertext links (as
747
+ represented by <A> tag in HTML documents).
748
+ """
749
+
750
+ @overload
751
+ def __init__(self, href: str, target: str='') -> None:
752
+ ...
753
+
754
+ @overload
755
+ def __init__(self) -> None:
756
+ """
757
+ HtmlLinkInfo() -> None
758
+ HtmlLinkInfo(href, target='') -> None
759
+
760
+ This class stores all necessary information about hypertext links (as
761
+ represented by <A> tag in HTML documents).
762
+ """
763
+
764
+ def GetEvent(self) -> wx.MouseEvent:
765
+ """
766
+ GetEvent() -> wx.MouseEvent
767
+
768
+ Return pointer to event that generated OnLinkClicked() event.
769
+ """
770
+
771
+ def GetHref(self) -> str:
772
+ """
773
+ GetHref() -> str
774
+
775
+ Return HREF value of the <A> tag.
776
+ """
777
+
778
+ def GetHtmlCell(self) -> wx.html.HtmlCell:
779
+ """
780
+ GetHtmlCell() -> HtmlCell
781
+
782
+ Return pointer to the cell that was clicked.
783
+ """
784
+
785
+ def GetTarget(self) -> str:
786
+ """
787
+ GetTarget() -> str
788
+
789
+ Return TARGET value of the <A> tag (this value is used to specify in
790
+ which frame should be the page pointed by GetHref() Href opened).
791
+ """
792
+ @property
793
+ def Event(self) -> wx.MouseEvent: ...
794
+ @property
795
+ def Href(self) -> str: ...
796
+ @property
797
+ def HtmlCell(self) -> wx.html.HtmlCell: ...
798
+ @property
799
+ def Target(self) -> str: ...
800
+ # end of class HtmlLinkInfo
801
+
802
+
803
+ class HtmlColourCell(HtmlCell):
804
+ """
805
+ HtmlColourCell(clr, flags=HTML_CLR_FOREGROUND) -> None
806
+
807
+ This cell changes the colour of either the background or the
808
+ foreground.
809
+ """
810
+
811
+ def __init__(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None], flags: int=HTML_CLR_FOREGROUND) -> None:
812
+ """
813
+ HtmlColourCell(clr, flags=HTML_CLR_FOREGROUND) -> None
814
+
815
+ This cell changes the colour of either the background or the
816
+ foreground.
817
+ """
818
+ # end of class HtmlColourCell
819
+
820
+
821
+ class HtmlWidgetCell(HtmlCell):
822
+ """
823
+ HtmlWidgetCell(wnd, w=0) -> None
824
+
825
+ wxHtmlWidgetCell is a class that provides a connection between HTML
826
+ cells and widgets (an object derived from wxWindow).
827
+ """
828
+
829
+ def __init__(self, wnd: wx.Window, w: int=0) -> None:
830
+ """
831
+ HtmlWidgetCell(wnd, w=0) -> None
832
+
833
+ wxHtmlWidgetCell is a class that provides a connection between HTML
834
+ cells and widgets (an object derived from wxWindow).
835
+ """
836
+ # end of class HtmlWidgetCell
837
+
838
+
839
+ class HtmlWordCell(HtmlCell):
840
+ """
841
+ HtmlWordCell(word, dc) -> None
842
+
843
+ This html cell represents a single word or text fragment in the
844
+ document stream.
845
+ """
846
+
847
+ def __init__(self, word: str, dc: wx.DC) -> None:
848
+ """
849
+ HtmlWordCell(word, dc) -> None
850
+
851
+ This html cell represents a single word or text fragment in the
852
+ document stream.
853
+ """
854
+ # end of class HtmlWordCell
855
+
856
+
857
+ class HtmlWordWithTabsCell(HtmlWordCell):
858
+ """
859
+ HtmlWordWithTabsCell(word, wordOrig, linepos, dc) -> None
860
+
861
+ wxHtmlWordCell is a specialization for storing text fragments with
862
+ embedded tab characters.
863
+ """
864
+
865
+ def __init__(self, word: str, wordOrig: str, linepos: int, dc: wx.DC) -> None:
866
+ """
867
+ HtmlWordWithTabsCell(word, wordOrig, linepos, dc) -> None
868
+
869
+ wxHtmlWordCell is a specialization for storing text fragments with
870
+ embedded tab characters.
871
+ """
872
+ # end of class HtmlWordWithTabsCell
873
+
874
+
875
+ class HtmlFontCell(HtmlCell):
876
+ """
877
+ HtmlFontCell(font) -> None
878
+
879
+ This cell represents a font change in the document stream.
880
+ """
881
+
882
+ def __init__(self, font: wx.Font) -> None:
883
+ """
884
+ HtmlFontCell(font) -> None
885
+
886
+ This cell represents a font change in the document stream.
887
+ """
888
+ # end of class HtmlFontCell
889
+
890
+ #-- end-htmlcell --#
891
+ #-- begin-htmlfilt --#
892
+
893
+ class HtmlFilter(wx.Object):
894
+ """
895
+ HtmlFilter() -> None
896
+
897
+ This class is the parent class of input filters for wxHtmlWindow.
898
+ """
899
+
900
+ def __init__(self) -> None:
901
+ """
902
+ HtmlFilter() -> None
903
+
904
+ This class is the parent class of input filters for wxHtmlWindow.
905
+ """
906
+
907
+ def CanRead(self, file: wx.FSFile) -> bool:
908
+ """
909
+ CanRead(file) -> bool
910
+
911
+ Returns true if this filter is capable of reading file file.
912
+ """
913
+
914
+ def ReadFile(self, file: wx.FSFile) -> str:
915
+ """
916
+ ReadFile(file) -> str
917
+
918
+ Reads the file and returns string with HTML document.
919
+ """
920
+ # end of class HtmlFilter
921
+
922
+ #-- end-htmlfilt --#
923
+ #-- begin-htmltag --#
924
+ import wx.siplib
925
+
926
+ class HtmlTag(wx.siplib.wrapper):
927
+ """
928
+ This class represents a single HTML tag.
929
+ """
930
+
931
+ def GetAllParams(self) -> str:
932
+ """
933
+ GetAllParams() -> str
934
+
935
+ Returns a string containing all parameters.
936
+ """
937
+
938
+ def GetName(self) -> str:
939
+ """
940
+ GetName() -> str
941
+
942
+ Returns tag's name.
943
+ """
944
+
945
+ def GetParam(self, par: str, with_quotes: bool=False) -> str:
946
+ """
947
+ GetParam(par, with_quotes=False) -> str
948
+
949
+ Returns the value of the parameter.
950
+ """
951
+
952
+ def GetParamAsColour(self, par: str) -> Tuple[bool, wx.Colour]:
953
+ """
954
+ GetParamAsColour(par) -> Tuple[bool, wx.Colour]
955
+
956
+ Interprets tag parameter par as colour specification and saves its
957
+ value into wxColour variable pointed by clr.
958
+ """
959
+
960
+ def GetParamAsInt(self, par: str) -> Tuple[bool, int]:
961
+ """
962
+ GetParamAsInt(par) -> Tuple[bool, int]
963
+
964
+ Interprets tag parameter par as an integer and saves its value into
965
+ int variable pointed by value.
966
+ """
967
+
968
+ def GetParamAsString(self, par: str, value: str) -> bool:
969
+ """
970
+ GetParamAsString(par, value) -> bool
971
+
972
+ Get the value of the parameter.
973
+ """
974
+
975
+ def HasEnding(self) -> bool:
976
+ """
977
+ HasEnding() -> bool
978
+
979
+ Returns true if this tag is paired with ending tag, false otherwise.
980
+ """
981
+
982
+ def HasParam(self, par: str) -> bool:
983
+ """
984
+ HasParam(par) -> bool
985
+
986
+ Returns true if the tag has a parameter of the given name.
987
+ """
988
+
989
+ @staticmethod
990
+ def ParseAsColour(str: str) -> Tuple[bool, wx.Colour]:
991
+ """
992
+ ParseAsColour(str) -> Tuple[bool, wx.Colour]
993
+
994
+ Parses the given string as an HTML colour.
995
+ """
996
+ @property
997
+ def AllParams(self) -> str: ...
998
+ @property
999
+ def Name(self) -> str: ...
1000
+ # end of class HtmlTag
1001
+
1002
+ #-- end-htmltag --#
1003
+ #-- begin-htmlpars --#
1004
+ import wx.siplib
1005
+
1006
+ @final
1007
+ class HtmlURLType(int, metaclass=wx.siplib.enumtype):
1008
+ HTML_URL_PAGE: ClassVar[HtmlURLType]
1009
+ HTML_URL_IMAGE: ClassVar[HtmlURLType]
1010
+ HTML_URL_OTHER: ClassVar[HtmlURLType]
1011
+ HTML_URL_PAGE: HtmlURLType
1012
+ HTML_URL_IMAGE: HtmlURLType
1013
+ HTML_URL_OTHER: HtmlURLType
1014
+
1015
+ class HtmlTagHandler(wx.Object):
1016
+ """
1017
+ HtmlTagHandler() -> None
1018
+ """
1019
+
1020
+ def __init__(self) -> None:
1021
+ """
1022
+ HtmlTagHandler() -> None
1023
+ """
1024
+
1025
+ def GetSupportedTags(self) -> str:
1026
+ """
1027
+ GetSupportedTags() -> str
1028
+
1029
+ Returns list of supported tags.
1030
+ """
1031
+
1032
+ def HandleTag(self, tag: HtmlTag) -> bool:
1033
+ """
1034
+ HandleTag(tag) -> bool
1035
+
1036
+ This is the core method of each handler.
1037
+ """
1038
+
1039
+ def SetParser(self, parser: HtmlParser) -> None:
1040
+ """
1041
+ SetParser(parser) -> None
1042
+
1043
+ Assigns parser to this handler.
1044
+ """
1045
+
1046
+ def GetParser(self) -> HtmlParser:
1047
+ """
1048
+ GetParser() -> HtmlParser
1049
+
1050
+ Returns the parser associated with this tag handler.
1051
+ """
1052
+ @property
1053
+ def Parser(self) -> HtmlParser: ...
1054
+ @Parser.setter
1055
+ def Parser(self, value: HtmlParser, /) -> None: ...
1056
+ @property
1057
+ def SupportedTags(self) -> str: ...
1058
+
1059
+ def ParseInner(self, tag: HtmlTag) -> None:
1060
+ """
1061
+ ParseInner(tag) -> None
1062
+
1063
+ This method calls parser's wxHtmlParser::DoParsing method for the
1064
+ string between this tag and the paired ending tag:
1065
+ """
1066
+
1067
+ def ParseInnerSource(self, source: str) -> None:
1068
+ """
1069
+ ParseInnerSource(source) -> None
1070
+
1071
+ Parses given source as if it was tag's inner code (see
1072
+ wxHtmlParser::GetInnerSource).
1073
+ """
1074
+ # end of class HtmlTagHandler
1075
+
1076
+
1077
+ class HtmlParser(wx.siplib.wrapper):
1078
+ """
1079
+ HtmlParser() -> None
1080
+
1081
+ Classes derived from this handle the generic parsing of HTML
1082
+ documents: it scans the document and divide it into blocks of tags
1083
+ (where one block consists of beginning and ending tag and of text
1084
+ between these two tags).
1085
+ """
1086
+
1087
+ def __init__(self) -> None:
1088
+ """
1089
+ HtmlParser() -> None
1090
+
1091
+ Classes derived from this handle the generic parsing of HTML
1092
+ documents: it scans the document and divide it into blocks of tags
1093
+ (where one block consists of beginning and ending tag and of text
1094
+ between these two tags).
1095
+ """
1096
+
1097
+ def AddTagHandler(self, handler: HtmlTagHandler) -> None:
1098
+ """
1099
+ AddTagHandler(handler) -> None
1100
+
1101
+ Adds handler to the internal list ( hash table) of handlers.
1102
+ """
1103
+
1104
+ def DoParsing(self) -> None:
1105
+ """
1106
+ DoParsing() -> None
1107
+
1108
+ Parses the whole m_Source.
1109
+ """
1110
+
1111
+ def DoneParser(self) -> None:
1112
+ """
1113
+ DoneParser() -> None
1114
+
1115
+ This must be called after DoParsing().
1116
+ """
1117
+
1118
+ def GetFS(self) -> wx.FileSystem:
1119
+ """
1120
+ GetFS() -> wx.FileSystem
1121
+
1122
+ Returns pointer to the file system.
1123
+ """
1124
+
1125
+ def GetProduct(self) -> wx.Object:
1126
+ """
1127
+ GetProduct() -> wx.Object
1128
+
1129
+ Returns product of parsing.
1130
+ """
1131
+
1132
+ def GetSource(self) -> str:
1133
+ """
1134
+ GetSource() -> str
1135
+
1136
+ Returns pointer to the source being parsed.
1137
+ """
1138
+
1139
+ def InitParser(self, source: str) -> None:
1140
+ """
1141
+ InitParser(source) -> None
1142
+
1143
+ Setups the parser for parsing the source string.
1144
+ """
1145
+
1146
+ def OpenURL(self, type: Union[HtmlURLType, int], url: str) -> wx.FSFile:
1147
+ """
1148
+ OpenURL(type, url) -> wx.FSFile
1149
+
1150
+ Opens given URL and returns wxFSFile object that can be used to read
1151
+ data from it.
1152
+ """
1153
+
1154
+ def Parse(self, source: str) -> wx.Object:
1155
+ """
1156
+ Parse(source) -> wx.Object
1157
+
1158
+ Proceeds parsing of the document.
1159
+ """
1160
+
1161
+ def PopTagHandler(self) -> None:
1162
+ """
1163
+ PopTagHandler() -> None
1164
+
1165
+ Restores parser's state before last call to PushTagHandler().
1166
+ """
1167
+
1168
+ def PushTagHandler(self, handler: HtmlTagHandler, tags: str) -> None:
1169
+ """
1170
+ PushTagHandler(handler, tags) -> None
1171
+
1172
+ Forces the handler to handle additional tags (not returned by
1173
+ wxHtmlTagHandler::GetSupportedTags).
1174
+ """
1175
+
1176
+ def SetFS(self, fs: wx.FileSystem) -> None:
1177
+ """
1178
+ SetFS(fs) -> None
1179
+
1180
+ Sets the virtual file system that will be used to request additional
1181
+ files.
1182
+ """
1183
+
1184
+ def StopParsing(self) -> None:
1185
+ """
1186
+ StopParsing() -> None
1187
+
1188
+ Call this function to interrupt parsing from a tag handler.
1189
+ """
1190
+ @property
1191
+ def FS(self) -> wx.FileSystem: ...
1192
+ @FS.setter
1193
+ def FS(self, value: wx.FileSystem, /) -> None: ...
1194
+ @property
1195
+ def Product(self) -> wx.Object: ...
1196
+ @property
1197
+ def Source(self) -> str: ...
1198
+
1199
+ def AddTag(self, tag: HtmlTag) -> None:
1200
+ """
1201
+ AddTag(tag) -> None
1202
+
1203
+ This may (and may not) be overwritten in derived class.
1204
+ """
1205
+ # end of class HtmlParser
1206
+
1207
+ #-- end-htmlpars --#
1208
+ #-- begin-htmlwin --#
1209
+ import wx.siplib
1210
+ HW_SCROLLBAR_NEVER: int
1211
+ HW_SCROLLBAR_AUTO: int
1212
+ HW_NO_SELECTION: int
1213
+ HW_DEFAULT_STYLE: int
1214
+
1215
+ @final
1216
+ class HtmlOpeningStatus(int, metaclass=wx.siplib.enumtype):
1217
+ HTML_OPEN: ClassVar[HtmlOpeningStatus]
1218
+ HTML_BLOCK: ClassVar[HtmlOpeningStatus]
1219
+ HTML_REDIRECT: ClassVar[HtmlOpeningStatus]
1220
+ HTML_OPEN: HtmlOpeningStatus
1221
+ HTML_BLOCK: HtmlOpeningStatus
1222
+ HTML_REDIRECT: HtmlOpeningStatus
1223
+ wxEVT_HTML_CELL_CLICKED: int
1224
+ wxEVT_HTML_CELL_HOVER: int
1225
+ wxEVT_HTML_LINK_CLICKED: int
1226
+
1227
+ class HtmlWindowInterface(wx.siplib.wrapper):
1228
+ """
1229
+ HtmlWindowInterface() -> None
1230
+
1231
+ Abstract interface to a HTML rendering window (such as wxHtmlWindow or
1232
+ wxHtmlListBox) that is passed to wxHtmlWinParser.
1233
+ """
1234
+
1235
+ @final
1236
+ class HTMLCursor(int, metaclass=wx.siplib.enumtype):
1237
+ HTMLCursor_Default: ClassVar[HtmlWindowInterface.HTMLCursor]
1238
+ HTMLCursor_Link: ClassVar[HtmlWindowInterface.HTMLCursor]
1239
+ HTMLCursor_Text: ClassVar[HtmlWindowInterface.HTMLCursor]
1240
+ HTMLCursor_Default: ClassVar[HTMLCursor]
1241
+ HTMLCursor_Link: ClassVar[HTMLCursor]
1242
+ HTMLCursor_Text: ClassVar[HTMLCursor]
1243
+
1244
+ def __init__(self) -> None:
1245
+ """
1246
+ HtmlWindowInterface() -> None
1247
+
1248
+ Abstract interface to a HTML rendering window (such as wxHtmlWindow or
1249
+ wxHtmlListBox) that is passed to wxHtmlWinParser.
1250
+ """
1251
+
1252
+ def SetHTMLWindowTitle(self, title: str) -> None:
1253
+ """
1254
+ SetHTMLWindowTitle(title) -> None
1255
+
1256
+ Called by the parser to set window's title to given text.
1257
+ """
1258
+
1259
+ def OnHTMLLinkClicked(self, link: HtmlLinkInfo) -> None:
1260
+ """
1261
+ OnHTMLLinkClicked(link) -> None
1262
+
1263
+ Called when a link is clicked.
1264
+ """
1265
+
1266
+ def OnHTMLOpeningURL(self, type: Union[HtmlURLType, int], url: str) -> Tuple[HtmlOpeningStatus, str]:
1267
+ """
1268
+ OnHTMLOpeningURL(type, url) -> Tuple[HtmlOpeningStatus, str]
1269
+
1270
+ Called when the parser needs to open another URL (e.g.
1271
+ """
1272
+
1273
+ def HTMLCoordsToWindow(self, cell: HtmlCell, pos: Union[wx.Point, _TwoInts]) -> wx.Point:
1274
+ """
1275
+ HTMLCoordsToWindow(cell, pos) -> wx.Point
1276
+
1277
+ Converts coordinates pos relative to given cell to physical
1278
+ coordinates in the window.
1279
+ """
1280
+
1281
+ def GetHTMLWindow(self) -> wx.Window:
1282
+ """
1283
+ GetHTMLWindow() -> wx.Window
1284
+
1285
+ Returns the window used for rendering (may be nullptr).
1286
+ """
1287
+
1288
+ def GetHTMLBackgroundColour(self) -> wx.Colour:
1289
+ """
1290
+ GetHTMLBackgroundColour() -> wx.Colour
1291
+
1292
+ Returns background colour to use by default.
1293
+ """
1294
+
1295
+ def SetHTMLBackgroundColour(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1296
+ """
1297
+ SetHTMLBackgroundColour(clr) -> None
1298
+
1299
+ Sets window's background to colour clr.
1300
+ """
1301
+
1302
+ def SetHTMLBackgroundImage(self, bmpBg: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
1303
+ """
1304
+ SetHTMLBackgroundImage(bmpBg) -> None
1305
+
1306
+ Sets window's background to given bitmap.
1307
+ """
1308
+
1309
+ def SetHTMLStatusText(self, text: str) -> None:
1310
+ """
1311
+ SetHTMLStatusText(text) -> None
1312
+
1313
+ Sets status bar text.
1314
+ """
1315
+
1316
+ def GetHTMLCursor(self, type: Union[HtmlWindowInterface.HTMLCursor, int]) -> wx.Cursor:
1317
+ """
1318
+ GetHTMLCursor(type) -> wx.Cursor
1319
+
1320
+ Returns mouse cursor of given type.
1321
+ """
1322
+ @property
1323
+ def HTMLBackgroundColour(self) -> wx.Colour: ...
1324
+ @HTMLBackgroundColour.setter
1325
+ def HTMLBackgroundColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
1326
+ @property
1327
+ def HTMLWindow(self) -> wx.Window: ...
1328
+ # end of class HtmlWindowInterface
1329
+
1330
+
1331
+ class HtmlWindow(wx.ScrolledWindow, HtmlWindowInterface):
1332
+ """
1333
+ HtmlWindow() -> None
1334
+ HtmlWindow(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=HW_DEFAULT_STYLE, name="htmlWindow") -> None
1335
+
1336
+ wxHtmlWindow is probably the only class you will directly use unless
1337
+ you want to do something special (like adding new tag handlers or MIME
1338
+ filters).
1339
+ """
1340
+
1341
+ @overload
1342
+ def __init__(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=HW_DEFAULT_STYLE, name: str="htmlWindow") -> None:
1343
+ ...
1344
+
1345
+ @overload
1346
+ def __init__(self) -> None:
1347
+ """
1348
+ HtmlWindow() -> None
1349
+ HtmlWindow(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=HW_DEFAULT_STYLE, name="htmlWindow") -> None
1350
+
1351
+ wxHtmlWindow is probably the only class you will directly use unless
1352
+ you want to do something special (like adding new tag handlers or MIME
1353
+ filters).
1354
+ """
1355
+
1356
+ def AppendToPage(self, source: str) -> bool:
1357
+ """
1358
+ AppendToPage(source) -> bool
1359
+
1360
+ Appends HTML fragment to currently displayed text and refreshes the
1361
+ window.
1362
+ """
1363
+
1364
+ def GetInternalRepresentation(self) -> HtmlContainerCell:
1365
+ """
1366
+ GetInternalRepresentation() -> HtmlContainerCell
1367
+
1368
+ Returns pointer to the top-level container.
1369
+ """
1370
+
1371
+ def GetOpenedAnchor(self) -> str:
1372
+ """
1373
+ GetOpenedAnchor() -> str
1374
+
1375
+ Returns anchor within currently opened page (see
1376
+ wxHtmlWindow::GetOpenedPage).
1377
+ """
1378
+
1379
+ def GetOpenedPage(self) -> str:
1380
+ """
1381
+ GetOpenedPage() -> str
1382
+
1383
+ Returns full location of the opened page.
1384
+ """
1385
+
1386
+ def GetOpenedPageTitle(self) -> str:
1387
+ """
1388
+ GetOpenedPageTitle() -> str
1389
+
1390
+ Returns title of the opened page or wxEmptyString if the current page
1391
+ does not contain <TITLE> tag.
1392
+ """
1393
+
1394
+ def GetParser(self) -> HtmlWinParser:
1395
+ """
1396
+ GetParser() -> HtmlWinParser
1397
+
1398
+ Returns a pointer to the current parser.
1399
+ """
1400
+
1401
+ def GetRelatedFrame(self) -> wx.Frame:
1402
+ """
1403
+ GetRelatedFrame() -> wx.Frame
1404
+
1405
+ Returns the related frame.
1406
+ """
1407
+
1408
+ def HistoryBack(self) -> bool:
1409
+ """
1410
+ HistoryBack() -> bool
1411
+
1412
+ Moves back to the previous page.
1413
+ """
1414
+
1415
+ def HistoryCanBack(self) -> bool:
1416
+ """
1417
+ HistoryCanBack() -> bool
1418
+
1419
+ Returns true if it is possible to go back in the history i.e.
1420
+ """
1421
+
1422
+ def HistoryCanForward(self) -> bool:
1423
+ """
1424
+ HistoryCanForward() -> bool
1425
+
1426
+ Returns true if it is possible to go forward in the history i.e.
1427
+ """
1428
+
1429
+ def HistoryClear(self) -> None:
1430
+ """
1431
+ HistoryClear() -> None
1432
+
1433
+ Clears history.
1434
+ """
1435
+
1436
+ def HistoryForward(self) -> bool:
1437
+ """
1438
+ HistoryForward() -> bool
1439
+
1440
+ Moves to next page in history.
1441
+ """
1442
+
1443
+ def LoadFile(self, filename: str) -> bool:
1444
+ """
1445
+ LoadFile(filename) -> bool
1446
+
1447
+ Loads an HTML page from a file and displays it.
1448
+ """
1449
+
1450
+ def LoadPage(self, location: str) -> bool:
1451
+ """
1452
+ LoadPage(location) -> bool
1453
+
1454
+ Unlike SetPage() this function first loads the HTML page from location
1455
+ and then displays it.
1456
+ """
1457
+
1458
+ def OnLinkClicked(self, link: HtmlLinkInfo) -> None:
1459
+ """
1460
+ OnLinkClicked(link) -> None
1461
+
1462
+ Called when user clicks on hypertext link.
1463
+ """
1464
+
1465
+ def OnOpeningURL(self, type: Union[HtmlURLType, int], url: str) -> Tuple[HtmlOpeningStatus, str]:
1466
+ """
1467
+ OnOpeningURL(type, url) -> Tuple[HtmlOpeningStatus, str]
1468
+
1469
+ Called when an URL is being opened (either when the user clicks on a
1470
+ link or an image is loaded).
1471
+ """
1472
+
1473
+ def OnSetTitle(self, title: str) -> None:
1474
+ """
1475
+ OnSetTitle(title) -> None
1476
+
1477
+ Called on parsing <TITLE> tag.
1478
+ """
1479
+
1480
+ def ReadCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
1481
+ """
1482
+ ReadCustomization(cfg, path='') -> None
1483
+
1484
+ This reads custom settings from wxConfig.
1485
+ """
1486
+
1487
+ def SelectAll(self) -> None:
1488
+ """
1489
+ SelectAll() -> None
1490
+
1491
+ Selects all text in the window.
1492
+ """
1493
+
1494
+ def SelectLine(self, pos: Union[wx.Point, _TwoInts]) -> None:
1495
+ """
1496
+ SelectLine(pos) -> None
1497
+
1498
+ Selects the line of text that pos points at.
1499
+ """
1500
+
1501
+ def SelectWord(self, pos: Union[wx.Point, _TwoInts]) -> None:
1502
+ """
1503
+ SelectWord(pos) -> None
1504
+
1505
+ Selects the word at position pos.
1506
+ """
1507
+
1508
+ def SelectionToText(self) -> str:
1509
+ """
1510
+ SelectionToText() -> str
1511
+
1512
+ Returns the current selection as plain text.
1513
+ """
1514
+
1515
+ def SetBorders(self, b: int) -> None:
1516
+ """
1517
+ SetBorders(b) -> None
1518
+
1519
+ This function sets the space between border of window and HTML
1520
+ contents.
1521
+ """
1522
+
1523
+ def SetFonts(self, normal_face: str, fixed_face: str, sizes: List[int]) -> None:
1524
+ """
1525
+ SetFonts(normal_face, fixed_face, sizes) -> None
1526
+
1527
+ This function sets font sizes and faces.
1528
+ """
1529
+
1530
+ def SetStandardFonts(self, size: int=-1, normal_face: str='', fixed_face: str='') -> None:
1531
+ """
1532
+ SetStandardFonts(size=-1, normal_face='', fixed_face='') -> None
1533
+
1534
+ Sets default font sizes and/or default font size.
1535
+ """
1536
+
1537
+ def SetPage(self, source: str) -> bool:
1538
+ """
1539
+ SetPage(source) -> bool
1540
+
1541
+ Sets the source of a page and displays it, for example:
1542
+ """
1543
+
1544
+ def SetRelatedFrame(self, frame: wx.Frame, format: str) -> None:
1545
+ """
1546
+ SetRelatedFrame(frame, format) -> None
1547
+
1548
+ Sets the frame in which page title will be displayed.
1549
+ """
1550
+
1551
+ @overload
1552
+ def SetRelatedStatusBar(self, statusbar: wx.StatusBar, index: int=0) -> None:
1553
+ ...
1554
+
1555
+ @overload
1556
+ def SetRelatedStatusBar(self, index: int) -> None:
1557
+ """
1558
+ SetRelatedStatusBar(index) -> None
1559
+ SetRelatedStatusBar(statusbar, index=0) -> None
1560
+
1561
+ After calling SetRelatedFrame(), this sets statusbar slot where
1562
+ messages will be displayed.
1563
+ """
1564
+
1565
+ def ToText(self) -> str:
1566
+ """
1567
+ ToText() -> str
1568
+
1569
+ Returns content of currently displayed page as plain text.
1570
+ """
1571
+
1572
+ def WriteCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
1573
+ """
1574
+ WriteCustomization(cfg, path='') -> None
1575
+
1576
+ Saves custom settings into wxConfig.
1577
+ """
1578
+
1579
+ @staticmethod
1580
+ def AddFilter(filter: HtmlFilter) -> None:
1581
+ """
1582
+ AddFilter(filter) -> None
1583
+
1584
+ Adds an input filter to the static list of available filters.
1585
+ """
1586
+
1587
+ @staticmethod
1588
+ def GetDefaultHTMLCursor(type: HTMLCursor, window: Optional[wx.Window]=None) -> wx.Cursor:
1589
+ """
1590
+ GetDefaultHTMLCursor(type, window=None) -> wx.Cursor
1591
+
1592
+ Retrieves the default cursor for a given HTMLCursor type.
1593
+ """
1594
+
1595
+ @staticmethod
1596
+ def SetDefaultHTMLCursor(type: HTMLCursor, cursor: wx.Cursor) -> None:
1597
+ """
1598
+ SetDefaultHTMLCursor(type, cursor) -> None
1599
+
1600
+ Sets the default cursor for a given HTMLCursor type.
1601
+ """
1602
+
1603
+ @staticmethod
1604
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
1605
+ """
1606
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
1607
+ """
1608
+ @property
1609
+ def InternalRepresentation(self) -> HtmlContainerCell: ...
1610
+ @property
1611
+ def OpenedAnchor(self) -> str: ...
1612
+ @property
1613
+ def OpenedPage(self) -> str: ...
1614
+ @property
1615
+ def OpenedPageTitle(self) -> str: ...
1616
+ @property
1617
+ def Parser(self) -> HtmlWinParser: ...
1618
+ @property
1619
+ def RelatedFrame(self) -> wx.Frame: ...
1620
+ @RelatedFrame.setter
1621
+ def RelatedFrame(self, value: wx.Frame, /) -> None: ...
1622
+
1623
+ def OnCellClicked(self, cell: HtmlCell, x: int, y: int, event: wx.MouseEvent) -> bool:
1624
+ """
1625
+ OnCellClicked(cell, x, y, event) -> bool
1626
+
1627
+ This method is called when a mouse button is clicked inside
1628
+ wxHtmlWindow.
1629
+ """
1630
+
1631
+ def OnCellMouseHover(self, cell: HtmlCell, x: int, y: int) -> None:
1632
+ """
1633
+ OnCellMouseHover(cell, x, y) -> None
1634
+
1635
+ This method is called when a mouse moves over an HTML cell.
1636
+ """
1637
+
1638
+ def ScrollToAnchor(self, anchor: str) -> bool:
1639
+ """
1640
+ ScrollToAnchor(anchor) -> bool
1641
+ """
1642
+ # end of class HtmlWindow
1643
+
1644
+
1645
+ class HtmlLinkEvent(wx.CommandEvent):
1646
+ """
1647
+ HtmlLinkEvent(id, linkinfo) -> None
1648
+
1649
+ This event class is used for the events generated by wxHtmlWindow.
1650
+ """
1651
+
1652
+ def __init__(self, id: int, linkinfo: HtmlLinkInfo) -> None:
1653
+ """
1654
+ HtmlLinkEvent(id, linkinfo) -> None
1655
+
1656
+ This event class is used for the events generated by wxHtmlWindow.
1657
+ """
1658
+
1659
+ def GetLinkInfo(self) -> HtmlLinkInfo:
1660
+ """
1661
+ GetLinkInfo() -> HtmlLinkInfo
1662
+
1663
+ Returns the wxHtmlLinkInfo which contains info about the cell clicked
1664
+ and the hyperlink it contains.
1665
+ """
1666
+ @property
1667
+ def LinkInfo(self) -> HtmlLinkInfo: ...
1668
+ # end of class HtmlLinkEvent
1669
+
1670
+
1671
+ class HtmlCellEvent(wx.CommandEvent):
1672
+ """
1673
+ HtmlCellEvent(commandType, id, cell, point, ev) -> None
1674
+
1675
+ This event class is used for the events generated by wxHtmlWindow.
1676
+ """
1677
+
1678
+ def __init__(self, commandType: int, id: int, cell: HtmlCell, point: Union[wx.Point, _TwoInts], ev: wx.MouseEvent) -> None:
1679
+ """
1680
+ HtmlCellEvent(commandType, id, cell, point, ev) -> None
1681
+
1682
+ This event class is used for the events generated by wxHtmlWindow.
1683
+ """
1684
+
1685
+ def GetCell(self) -> HtmlCell:
1686
+ """
1687
+ GetCell() -> HtmlCell
1688
+
1689
+ Returns the wxHtmlCellEvent associated with the event.
1690
+ """
1691
+
1692
+ def GetLinkClicked(self) -> bool:
1693
+ """
1694
+ GetLinkClicked() -> bool
1695
+
1696
+ Returns true if SetLinkClicked(true) has previously been called; false
1697
+ otherwise.
1698
+ """
1699
+
1700
+ def GetPoint(self) -> wx.Point:
1701
+ """
1702
+ GetPoint() -> wx.Point
1703
+
1704
+ Returns the wxPoint associated with the event.
1705
+ """
1706
+
1707
+ def GetMouseEvent(self) -> wx.MouseEvent:
1708
+ """
1709
+ GetMouseEvent() -> wx.MouseEvent
1710
+
1711
+ Returns the wxMouseEvent associated with the event.
1712
+ """
1713
+
1714
+ def SetLinkClicked(self, linkclicked: bool) -> None:
1715
+ """
1716
+ SetLinkClicked(linkclicked) -> None
1717
+
1718
+ Call this function with linkclicked set to true if the cell which has
1719
+ been clicked contained a link or false otherwise (which is the
1720
+ default).
1721
+ """
1722
+ @property
1723
+ def Cell(self) -> HtmlCell: ...
1724
+ @property
1725
+ def LinkClicked(self) -> bool: ...
1726
+ @LinkClicked.setter
1727
+ def LinkClicked(self, value: bool, /) -> None: ...
1728
+ @property
1729
+ def MouseEvent(self) -> wx.MouseEvent: ...
1730
+ @property
1731
+ def Point(self) -> wx.Point: ...
1732
+ # end of class HtmlCellEvent
1733
+
1734
+
1735
+ EVT_HTML_CELL_CLICKED: wx.PyEventBinder[HtmlCellEvent]
1736
+ EVT_HTML_CELL_HOVER: wx.PyEventBinder[HtmlCellEvent]
1737
+ EVT_HTML_LINK_CLICKED: wx.PyEventBinder[HtmlLinkEvent]
1738
+
1739
+ # deprecated wxEVT aliases
1740
+ wxEVT_COMMAND_HTML_CELL_CLICKED = wxEVT_HTML_CELL_CLICKED
1741
+ wxEVT_COMMAND_HTML_CELL_HOVER = wxEVT_HTML_CELL_HOVER
1742
+ wxEVT_COMMAND_HTML_LINK_CLICKED = wxEVT_HTML_LINK_CLICKED
1743
+ #-- end-htmlwin --#
1744
+ #-- begin-htmlprint --#
1745
+ import wx.siplib
1746
+ PAGE_ODD: int
1747
+ PAGE_EVEN: int
1748
+ PAGE_ALL: int
1749
+
1750
+ class HtmlDCRenderer(wx.Object):
1751
+ """
1752
+ HtmlDCRenderer() -> None
1753
+
1754
+ This class can render HTML document into a specified area of a DC.
1755
+ """
1756
+
1757
+ def __init__(self) -> None:
1758
+ """
1759
+ HtmlDCRenderer() -> None
1760
+
1761
+ This class can render HTML document into a specified area of a DC.
1762
+ """
1763
+
1764
+ def GetTotalWidth(self) -> int:
1765
+ """
1766
+ GetTotalWidth() -> int
1767
+
1768
+ Returns the width of the HTML text in pixels.
1769
+ """
1770
+
1771
+ def GetTotalHeight(self) -> int:
1772
+ """
1773
+ GetTotalHeight() -> int
1774
+
1775
+ Returns the height of the HTML text in pixels.
1776
+ """
1777
+
1778
+ def FindNextPageBreak(self, pos: int) -> int:
1779
+ """
1780
+ FindNextPageBreak(pos) -> int
1781
+
1782
+ Finds the next page break after the specified (vertical) position.
1783
+ """
1784
+
1785
+ def Render(self, x: int, y: int, from_: int=0, to_: int=INT_MAX) -> None:
1786
+ """
1787
+ Render(x, y, from_=0, to_=INT_MAX) -> None
1788
+
1789
+ Renders HTML text to the DC.
1790
+ """
1791
+
1792
+ def SetDC(self, dc: wx.DC, pixel_scale: float=1.0) -> None:
1793
+ """
1794
+ SetDC(dc, pixel_scale=1.0) -> None
1795
+
1796
+ Assign DC instance to the renderer.
1797
+ """
1798
+
1799
+ def SetFonts(self, normal_face: str, fixed_face: str, sizes: List[int]) -> None:
1800
+ """
1801
+ SetFonts(normal_face, fixed_face, sizes) -> None
1802
+
1803
+ This function sets font sizes and faces.
1804
+ """
1805
+
1806
+ def SetStandardFonts(self, size: int=-1, normal_face: str='', fixed_face: str='') -> None:
1807
+ """
1808
+ SetStandardFonts(size=-1, normal_face='', fixed_face='') -> None
1809
+
1810
+ Sets font sizes to be relative to the given size or the system default
1811
+ size; use either specified or default font.
1812
+ """
1813
+
1814
+ def SetHtmlText(self, html: str, basepath: str='', isdir: bool=True) -> None:
1815
+ """
1816
+ SetHtmlText(html, basepath='', isdir=True) -> None
1817
+
1818
+ Assign text to the renderer.
1819
+ """
1820
+
1821
+ def SetHtmlCell(self, cell: HtmlContainerCell) -> None:
1822
+ """
1823
+ SetHtmlCell(cell) -> None
1824
+
1825
+ Associate the given HTML contents to the renderer.
1826
+ """
1827
+
1828
+ def SetSize(self, width: int, height: int) -> None:
1829
+ """
1830
+ SetSize(width, height) -> None
1831
+
1832
+ Set size of output rectangle, in pixels.
1833
+ """
1834
+ @property
1835
+ def TotalHeight(self) -> int: ...
1836
+ @property
1837
+ def TotalWidth(self) -> int: ...
1838
+ # end of class HtmlDCRenderer
1839
+
1840
+
1841
+ class HtmlEasyPrinting(wx.Object):
1842
+ """
1843
+ HtmlEasyPrinting(name="Printing", parentWindow=None) -> None
1844
+
1845
+ This class provides very simple interface to printing architecture.
1846
+ """
1847
+
1848
+ @final
1849
+ class PromptMode(int, metaclass=wx.siplib.enumtype):
1850
+ Prompt_Never: ClassVar[HtmlEasyPrinting.PromptMode]
1851
+ Prompt_Once: ClassVar[HtmlEasyPrinting.PromptMode]
1852
+ Prompt_Always: ClassVar[HtmlEasyPrinting.PromptMode]
1853
+ Prompt_Never: ClassVar[PromptMode]
1854
+ Prompt_Once: ClassVar[PromptMode]
1855
+ Prompt_Always: ClassVar[PromptMode]
1856
+
1857
+ def __init__(self, name: str="Printing", parentWindow: Optional[wx.Window]=None) -> None:
1858
+ """
1859
+ HtmlEasyPrinting(name="Printing", parentWindow=None) -> None
1860
+
1861
+ This class provides very simple interface to printing architecture.
1862
+ """
1863
+
1864
+ def GetName(self) -> str:
1865
+ """
1866
+ GetName() -> str
1867
+
1868
+ Returns the current name being used for preview frames and setup
1869
+ dialogs.
1870
+ """
1871
+
1872
+ def GetPageSetupData(self) -> wx.PageSetupDialogData:
1873
+ """
1874
+ GetPageSetupData() -> wx.PageSetupDialogData
1875
+
1876
+ Returns a pointer to wxPageSetupDialogData instance used by this
1877
+ class.
1878
+ """
1879
+
1880
+ def GetParentWindow(self) -> wx.Window:
1881
+ """
1882
+ GetParentWindow() -> wx.Window
1883
+
1884
+ Gets the parent window for dialogs.
1885
+ """
1886
+
1887
+ def GetPrintData(self) -> wx.PrintData:
1888
+ """
1889
+ GetPrintData() -> wx.PrintData
1890
+
1891
+ Returns pointer to wxPrintData instance used by this class.
1892
+ """
1893
+
1894
+ def PageSetup(self) -> None:
1895
+ """
1896
+ PageSetup() -> None
1897
+
1898
+ Display page setup dialog and allows the user to modify settings.
1899
+ """
1900
+
1901
+ def PreviewFile(self, htmlfile: str) -> bool:
1902
+ """
1903
+ PreviewFile(htmlfile) -> bool
1904
+
1905
+ Preview HTML file.
1906
+ """
1907
+
1908
+ def PreviewText(self, htmltext: str, basepath: str='') -> bool:
1909
+ """
1910
+ PreviewText(htmltext, basepath='') -> bool
1911
+
1912
+ Preview HTML text (not file!).
1913
+ """
1914
+
1915
+ def PrintFile(self, htmlfile: str) -> bool:
1916
+ """
1917
+ PrintFile(htmlfile) -> bool
1918
+
1919
+ Print HTML file.
1920
+ """
1921
+
1922
+ def PrintText(self, htmltext: str, basepath: str='') -> bool:
1923
+ """
1924
+ PrintText(htmltext, basepath='') -> bool
1925
+
1926
+ Print HTML text (not file!).
1927
+ """
1928
+
1929
+ def SetFonts(self, normal_face: str, fixed_face: str, sizes: List[int]) -> None:
1930
+ """
1931
+ SetFonts(normal_face, fixed_face, sizes) -> None
1932
+
1933
+ Sets fonts.
1934
+ """
1935
+
1936
+ def SetName(self, name: str) -> None:
1937
+ """
1938
+ SetName(name) -> None
1939
+
1940
+ Sets the name used for preview frames and setup dialogs.
1941
+ """
1942
+
1943
+ def SetStandardFonts(self, size: int=-1, normal_face: str='', fixed_face: str='') -> None:
1944
+ """
1945
+ SetStandardFonts(size=-1, normal_face='', fixed_face='') -> None
1946
+
1947
+ Sets default font sizes and/or default font size.
1948
+ """
1949
+
1950
+ def SetFooter(self, footer: str, pg: int=PAGE_ALL) -> None:
1951
+ """
1952
+ SetFooter(footer, pg=PAGE_ALL) -> None
1953
+
1954
+ Set page footer.
1955
+ """
1956
+
1957
+ def SetHeader(self, header: str, pg: int=PAGE_ALL) -> None:
1958
+ """
1959
+ SetHeader(header, pg=PAGE_ALL) -> None
1960
+
1961
+ Set page header.
1962
+ """
1963
+
1964
+ def SetParentWindow(self, window: wx.Window) -> None:
1965
+ """
1966
+ SetParentWindow(window) -> None
1967
+
1968
+ Sets the parent window for dialogs.
1969
+ """
1970
+
1971
+ def SetPromptMode(self, promptMode: PromptMode) -> None:
1972
+ """
1973
+ SetPromptMode(promptMode) -> None
1974
+
1975
+ Enable or disable showing the dialog before printing.
1976
+ """
1977
+ @property
1978
+ def Name(self) -> str: ...
1979
+ @Name.setter
1980
+ def Name(self, value: str, /) -> None: ...
1981
+ @property
1982
+ def PageSetupData(self) -> wx.PageSetupDialogData: ...
1983
+ @property
1984
+ def ParentWindow(self) -> wx.Window: ...
1985
+ @ParentWindow.setter
1986
+ def ParentWindow(self, value: wx.Window, /) -> None: ...
1987
+ @property
1988
+ def PrintData(self) -> wx.PrintData: ...
1989
+ # end of class HtmlEasyPrinting
1990
+
1991
+
1992
+ class HtmlPrintout(wx.Printout):
1993
+ """
1994
+ HtmlPrintout(title="Printout") -> None
1995
+
1996
+ This class serves as printout class for HTML documents.
1997
+ """
1998
+
1999
+ def __init__(self, title: str="Printout") -> None:
2000
+ """
2001
+ HtmlPrintout(title="Printout") -> None
2002
+
2003
+ This class serves as printout class for HTML documents.
2004
+ """
2005
+
2006
+ def SetFonts(self, normal_face: str, fixed_face: str, sizes: List[int]) -> None:
2007
+ """
2008
+ SetFonts(normal_face, fixed_face, sizes) -> None
2009
+
2010
+ This function sets font sizes and faces.
2011
+ """
2012
+
2013
+ def SetFooter(self, footer: str, pg: int=PAGE_ALL) -> None:
2014
+ """
2015
+ SetFooter(footer, pg=PAGE_ALL) -> None
2016
+
2017
+ Set page footer.
2018
+ """
2019
+
2020
+ def SetHeader(self, header: str, pg: int=PAGE_ALL) -> None:
2021
+ """
2022
+ SetHeader(header, pg=PAGE_ALL) -> None
2023
+
2024
+ Set page header.
2025
+ """
2026
+
2027
+ def SetHtmlFile(self, htmlfile: str) -> None:
2028
+ """
2029
+ SetHtmlFile(htmlfile) -> None
2030
+
2031
+ Prepare the class for printing this HTML file.
2032
+ """
2033
+
2034
+ def SetHtmlText(self, html: str, basepath: str='', isdir: bool=True) -> None:
2035
+ """
2036
+ SetHtmlText(html, basepath='', isdir=True) -> None
2037
+
2038
+ Prepare the class for printing this HTML text.
2039
+ """
2040
+
2041
+ @overload
2042
+ def SetMargins(self, pageSetupData: wx.PageSetupDialogData) -> None:
2043
+ ...
2044
+
2045
+ @overload
2046
+ def SetMargins(self, top: float=25.2, bottom: float=25.2, left: float=25.2, right: float=25.2, spaces: float=5) -> None:
2047
+ """
2048
+ SetMargins(top=25.2, bottom=25.2, left=25.2, right=25.2, spaces=5) -> None
2049
+ SetMargins(pageSetupData) -> None
2050
+
2051
+ Sets margins in millimeters.
2052
+ """
2053
+
2054
+ @staticmethod
2055
+ def AddFilter(filter: HtmlFilter) -> None:
2056
+ """
2057
+ AddFilter(filter) -> None
2058
+
2059
+ Adds a filter to the static list of filters for wxHtmlPrintout.
2060
+ """
2061
+ # end of class HtmlPrintout
2062
+
2063
+ #-- end-htmlprint --#
2064
+ #-- begin-htmlwinpars --#
2065
+
2066
+ class HtmlWinTagHandler(HtmlTagHandler):
2067
+ """
2068
+ HtmlWinTagHandler() -> None
2069
+
2070
+ This is basically wxHtmlTagHandler except that it is extended with
2071
+ protected member m_WParser pointing to the wxHtmlWinParser object
2072
+ (value of this member is identical to wxHtmlParser's m_Parser).
2073
+ """
2074
+
2075
+ def __init__(self) -> None:
2076
+ """
2077
+ HtmlWinTagHandler() -> None
2078
+
2079
+ This is basically wxHtmlTagHandler except that it is extended with
2080
+ protected member m_WParser pointing to the wxHtmlWinParser object
2081
+ (value of this member is identical to wxHtmlParser's m_Parser).
2082
+ """
2083
+
2084
+ def SetParser(self, parser: HtmlParser) -> None:
2085
+ """
2086
+ SetParser(parser) -> None
2087
+
2088
+ Assigns parser to this handler.
2089
+ """
2090
+
2091
+ def GetParser(self) -> HtmlWinParser:
2092
+ """
2093
+ GetParser() -> HtmlWinParser
2094
+ """
2095
+ @property
2096
+ def Parser(self) -> HtmlWinParser: ...
2097
+ @Parser.setter
2098
+ def Parser(self, value: HtmlParser, /) -> None: ...
2099
+ # end of class HtmlWinTagHandler
2100
+
2101
+
2102
+ class HtmlWinParser(HtmlParser):
2103
+ """
2104
+ HtmlWinParser(wndIface=None) -> None
2105
+
2106
+ This class is derived from wxHtmlParser and its main goal is to parse
2107
+ HTML input so that it can be displayed in wxHtmlWindow.
2108
+ """
2109
+
2110
+ def __init__(self, wndIface: Optional[HtmlWindowInterface]=None) -> None:
2111
+ """
2112
+ HtmlWinParser(wndIface=None) -> None
2113
+
2114
+ This class is derived from wxHtmlParser and its main goal is to parse
2115
+ HTML input so that it can be displayed in wxHtmlWindow.
2116
+ """
2117
+
2118
+ def CloseContainer(self) -> HtmlContainerCell:
2119
+ """
2120
+ CloseContainer() -> HtmlContainerCell
2121
+
2122
+ Closes the container, sets actual container to the parent one and
2123
+ returns pointer to it (see Cells and Containers).
2124
+ """
2125
+
2126
+ def CreateCurrentFont(self) -> wx.Font:
2127
+ """
2128
+ CreateCurrentFont() -> wx.Font
2129
+
2130
+ Creates font based on current setting (see SetFontSize(),
2131
+ SetFontBold(), SetFontItalic(), SetFontFixed(),
2132
+ wxHtmlWinParser::SetFontUnderlined) and returns pointer to it.
2133
+ """
2134
+
2135
+ def GetActualColor(self) -> wx.Colour:
2136
+ """
2137
+ GetActualColor() -> wx.Colour
2138
+
2139
+ Returns actual text colour.
2140
+ """
2141
+
2142
+ def GetAlign(self) -> int:
2143
+ """
2144
+ GetAlign() -> int
2145
+
2146
+ Returns default horizontal alignment.
2147
+ """
2148
+
2149
+ def GetCharHeight(self) -> int:
2150
+ """
2151
+ GetCharHeight() -> int
2152
+
2153
+ Returns (average) char height in standard font.
2154
+ """
2155
+
2156
+ def GetCharWidth(self) -> int:
2157
+ """
2158
+ GetCharWidth() -> int
2159
+
2160
+ Returns average char width in standard font.
2161
+ """
2162
+
2163
+ def GetContainer(self) -> HtmlContainerCell:
2164
+ """
2165
+ GetContainer() -> HtmlContainerCell
2166
+
2167
+ Returns pointer to the currently opened container (see Cells and
2168
+ Containers).
2169
+ """
2170
+
2171
+ def GetDC(self) -> wx.DC:
2172
+ """
2173
+ GetDC() -> wx.DC
2174
+
2175
+ Returns pointer to the DC used during parsing.
2176
+ """
2177
+
2178
+ def GetFontBold(self) -> int:
2179
+ """
2180
+ GetFontBold() -> int
2181
+
2182
+ Returns true if actual font is bold, false otherwise.
2183
+ """
2184
+
2185
+ def GetFontFace(self) -> str:
2186
+ """
2187
+ GetFontFace() -> str
2188
+
2189
+ Returns actual font face name.
2190
+ """
2191
+
2192
+ def GetFontFixed(self) -> int:
2193
+ """
2194
+ GetFontFixed() -> int
2195
+
2196
+ Returns true if actual font is fixed face, false otherwise.
2197
+ """
2198
+
2199
+ def GetFontItalic(self) -> int:
2200
+ """
2201
+ GetFontItalic() -> int
2202
+
2203
+ Returns true if actual font is italic, false otherwise.
2204
+ """
2205
+
2206
+ def GetFontSize(self) -> int:
2207
+ """
2208
+ GetFontSize() -> int
2209
+
2210
+ Returns actual font size (HTML size varies from -2 to +4)
2211
+ """
2212
+
2213
+ def GetFontUnderlined(self) -> int:
2214
+ """
2215
+ GetFontUnderlined() -> int
2216
+
2217
+ Returns true if actual font is underlined, false otherwise.
2218
+ """
2219
+
2220
+ def GetLink(self) -> HtmlLinkInfo:
2221
+ """
2222
+ GetLink() -> HtmlLinkInfo
2223
+
2224
+ Returns actual hypertext link.
2225
+ """
2226
+
2227
+ def GetLinkColor(self) -> wx.Colour:
2228
+ """
2229
+ GetLinkColor() -> wx.Colour
2230
+
2231
+ Returns the colour of hypertext link text.
2232
+ """
2233
+
2234
+ def GetWindowInterface(self) -> HtmlWindowInterface:
2235
+ """
2236
+ GetWindowInterface() -> HtmlWindowInterface
2237
+
2238
+ Returns associated window (wxHtmlWindow).
2239
+ """
2240
+
2241
+ def OpenContainer(self) -> HtmlContainerCell:
2242
+ """
2243
+ OpenContainer() -> HtmlContainerCell
2244
+
2245
+ Opens new container and returns pointer to it (see Cells and
2246
+ Containers).
2247
+ """
2248
+
2249
+ def SetActualColor(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
2250
+ """
2251
+ SetActualColor(clr) -> None
2252
+
2253
+ Sets actual text colour.
2254
+ """
2255
+
2256
+ def SetAlign(self, a: int) -> None:
2257
+ """
2258
+ SetAlign(a) -> None
2259
+
2260
+ Sets default horizontal alignment (see
2261
+ wxHtmlContainerCell::SetAlignHor).
2262
+ """
2263
+
2264
+ def SetContainer(self, c: HtmlContainerCell) -> HtmlContainerCell:
2265
+ """
2266
+ SetContainer(c) -> HtmlContainerCell
2267
+
2268
+ Allows you to directly set opened container.
2269
+ """
2270
+
2271
+ def SetDC(self, dc: wx.DC, pixel_scale: float=1.0e+0) -> None:
2272
+ """
2273
+ SetDC(dc, pixel_scale=1.0e+0) -> None
2274
+
2275
+ Sets the DC.
2276
+ """
2277
+
2278
+ def SetFontBold(self, x: int) -> None:
2279
+ """
2280
+ SetFontBold(x) -> None
2281
+
2282
+ Sets bold flag of actualfont.
2283
+ """
2284
+
2285
+ def SetFontFace(self, face: str) -> None:
2286
+ """
2287
+ SetFontFace(face) -> None
2288
+
2289
+ Sets current font face to face.
2290
+ """
2291
+
2292
+ def SetFontFixed(self, x: int) -> None:
2293
+ """
2294
+ SetFontFixed(x) -> None
2295
+
2296
+ Sets fixed face flag of actualfont.
2297
+ """
2298
+
2299
+ def SetFontItalic(self, x: int) -> None:
2300
+ """
2301
+ SetFontItalic(x) -> None
2302
+
2303
+ Sets italic flag of actualfont.
2304
+ """
2305
+
2306
+ def SetFontSize(self, s: int) -> None:
2307
+ """
2308
+ SetFontSize(s) -> None
2309
+
2310
+ Sets actual font size (HTML size varies from 1 to 7).
2311
+ """
2312
+
2313
+ def SetFontUnderlined(self, x: int) -> None:
2314
+ """
2315
+ SetFontUnderlined(x) -> None
2316
+
2317
+ Sets underlined flag of actualfont.
2318
+ """
2319
+
2320
+ def SetFonts(self, normal_face: str, fixed_face: str, sizes: List[int]) -> None:
2321
+ """
2322
+ SetFonts(normal_face, fixed_face, sizes) -> None
2323
+
2324
+ Sets fonts.
2325
+ """
2326
+
2327
+ def SetLink(self, link: HtmlLinkInfo) -> None:
2328
+ """
2329
+ SetLink(link) -> None
2330
+
2331
+ Sets actual hypertext link.
2332
+ """
2333
+
2334
+ def SetLinkColor(self, clr: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
2335
+ """
2336
+ SetLinkColor(clr) -> None
2337
+
2338
+ Sets colour of hypertext link.
2339
+ """
2340
+ @property
2341
+ def ActualColor(self) -> wx.Colour: ...
2342
+ @ActualColor.setter
2343
+ def ActualColor(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
2344
+ @property
2345
+ def Align(self) -> int: ...
2346
+ @Align.setter
2347
+ def Align(self, value: int, /) -> None: ...
2348
+ @property
2349
+ def CharHeight(self) -> int: ...
2350
+ @property
2351
+ def CharWidth(self) -> int: ...
2352
+ @property
2353
+ def Container(self) -> HtmlContainerCell: ...
2354
+ @Container.setter
2355
+ def Container(self, value: HtmlContainerCell, /) -> None: ...
2356
+ @property
2357
+ def DC(self) -> wx.DC: ...
2358
+ @DC.setter
2359
+ def DC(self, value: wx.DC, /) -> None: ...
2360
+ @property
2361
+ def FontBold(self) -> int: ...
2362
+ @FontBold.setter
2363
+ def FontBold(self, value: int, /) -> None: ...
2364
+ @property
2365
+ def FontFace(self) -> str: ...
2366
+ @FontFace.setter
2367
+ def FontFace(self, value: str, /) -> None: ...
2368
+ @property
2369
+ def FontFixed(self) -> int: ...
2370
+ @FontFixed.setter
2371
+ def FontFixed(self, value: int, /) -> None: ...
2372
+ @property
2373
+ def FontItalic(self) -> int: ...
2374
+ @FontItalic.setter
2375
+ def FontItalic(self, value: int, /) -> None: ...
2376
+ @property
2377
+ def FontSize(self) -> int: ...
2378
+ @FontSize.setter
2379
+ def FontSize(self, value: int, /) -> None: ...
2380
+ @property
2381
+ def FontUnderlined(self) -> int: ...
2382
+ @FontUnderlined.setter
2383
+ def FontUnderlined(self, value: int, /) -> None: ...
2384
+ @property
2385
+ def Link(self) -> HtmlLinkInfo: ...
2386
+ @Link.setter
2387
+ def Link(self, value: HtmlLinkInfo, /) -> None: ...
2388
+ @property
2389
+ def LinkColor(self) -> wx.Colour: ...
2390
+ @LinkColor.setter
2391
+ def LinkColor(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
2392
+ @property
2393
+ def WindowInterface(self) -> HtmlWindowInterface: ...
2394
+ # end of class HtmlWinParser
2395
+
2396
+
2397
+ def HtmlWinParser_AddTagHandler(tagHandlerClass: Any) -> None:
2398
+ """
2399
+ HtmlWinParser_AddTagHandler(tagHandlerClass) -> None
2400
+ """
2401
+ #-- end-htmlwinpars --#
2402
+ #-- begin-helpdata --#
2403
+ import wx.siplib
2404
+
2405
+ class HtmlBookRecord(wx.siplib.wrapper):
2406
+ """
2407
+ HtmlBookRecord(bookfile, basepath, title, start) -> None
2408
+
2409
+ Helper class for wxHtmlHelpData.
2410
+ """
2411
+
2412
+ def __init__(self, bookfile: str, basepath: str, title: str, start: str) -> None:
2413
+ """
2414
+ HtmlBookRecord(bookfile, basepath, title, start) -> None
2415
+
2416
+ Helper class for wxHtmlHelpData.
2417
+ """
2418
+
2419
+ def GetBookFile(self) -> str:
2420
+ """
2421
+ GetBookFile() -> str
2422
+ """
2423
+
2424
+ def GetTitle(self) -> str:
2425
+ """
2426
+ GetTitle() -> str
2427
+ """
2428
+
2429
+ def GetStart(self) -> str:
2430
+ """
2431
+ GetStart() -> str
2432
+ """
2433
+
2434
+ def GetBasePath(self) -> str:
2435
+ """
2436
+ GetBasePath() -> str
2437
+ """
2438
+
2439
+ def SetContentsRange(self, start: int, end: int) -> None:
2440
+ """
2441
+ SetContentsRange(start, end) -> None
2442
+ """
2443
+
2444
+ def GetContentsStart(self) -> int:
2445
+ """
2446
+ GetContentsStart() -> int
2447
+ """
2448
+
2449
+ def GetContentsEnd(self) -> int:
2450
+ """
2451
+ GetContentsEnd() -> int
2452
+ """
2453
+
2454
+ def SetTitle(self, title: str) -> None:
2455
+ """
2456
+ SetTitle(title) -> None
2457
+ """
2458
+
2459
+ def SetBasePath(self, path: str) -> None:
2460
+ """
2461
+ SetBasePath(path) -> None
2462
+ """
2463
+
2464
+ def SetStart(self, start: str) -> None:
2465
+ """
2466
+ SetStart(start) -> None
2467
+ """
2468
+
2469
+ def GetFullPath(self, page: str) -> str:
2470
+ """
2471
+ GetFullPath(page) -> str
2472
+ """
2473
+ @property
2474
+ def BasePath(self) -> str: ...
2475
+ @BasePath.setter
2476
+ def BasePath(self, value: str, /) -> None: ...
2477
+ @property
2478
+ def BookFile(self) -> str: ...
2479
+ @property
2480
+ def ContentsEnd(self) -> int: ...
2481
+ @property
2482
+ def ContentsStart(self) -> int: ...
2483
+ @property
2484
+ def Start(self) -> str: ...
2485
+ @Start.setter
2486
+ def Start(self, value: str, /) -> None: ...
2487
+ @property
2488
+ def Title(self) -> str: ...
2489
+ @Title.setter
2490
+ def Title(self, value: str, /) -> None: ...
2491
+ # end of class HtmlBookRecord
2492
+
2493
+
2494
+ class HtmlHelpDataItem(wx.siplib.wrapper):
2495
+ """
2496
+ HtmlHelpDataItem() -> None
2497
+
2498
+ Helper class for wxHtmlHelpData.
2499
+ """
2500
+
2501
+ def __init__(self) -> None:
2502
+ """
2503
+ HtmlHelpDataItem() -> None
2504
+
2505
+ Helper class for wxHtmlHelpData.
2506
+ """
2507
+ level: int
2508
+ parent: HtmlHelpDataItem
2509
+ id: int
2510
+ name: str
2511
+ page: str
2512
+ book: HtmlBookRecord
2513
+
2514
+ def GetFullPath(self) -> str:
2515
+ """
2516
+ GetFullPath() -> str
2517
+ """
2518
+
2519
+ def GetIndentedName(self) -> str:
2520
+ """
2521
+ GetIndentedName() -> str
2522
+ """
2523
+ @property
2524
+ def FullPath(self) -> str: ...
2525
+ @property
2526
+ def IndentedName(self) -> str: ...
2527
+ # end of class HtmlHelpDataItem
2528
+
2529
+
2530
+ class HtmlHelpData(wx.Object):
2531
+ """
2532
+ HtmlHelpData() -> None
2533
+
2534
+ This class is used by wxHtmlHelpController and wxHtmlHelpFrame to
2535
+ access HTML help items.
2536
+ """
2537
+
2538
+ def __init__(self) -> None:
2539
+ """
2540
+ HtmlHelpData() -> None
2541
+
2542
+ This class is used by wxHtmlHelpController and wxHtmlHelpFrame to
2543
+ access HTML help items.
2544
+ """
2545
+
2546
+ def AddBook(self, book_url: str) -> bool:
2547
+ """
2548
+ AddBook(book_url) -> bool
2549
+
2550
+ Adds new book.
2551
+ """
2552
+
2553
+ def FindPageById(self, id: int) -> str:
2554
+ """
2555
+ FindPageById(id) -> str
2556
+
2557
+ Returns page's URL based on integer ID stored in project.
2558
+ """
2559
+
2560
+ def FindPageByName(self, page: str) -> str:
2561
+ """
2562
+ FindPageByName(page) -> str
2563
+
2564
+ Returns page's URL based on its (file)name.
2565
+ """
2566
+
2567
+ def GetBookRecArray(self) -> HtmlBookRecArray:
2568
+ """
2569
+ GetBookRecArray() -> HtmlBookRecArray
2570
+
2571
+ Returns array with help books info.
2572
+ """
2573
+
2574
+ def GetContentsArray(self) -> HtmlHelpDataItems:
2575
+ """
2576
+ GetContentsArray() -> HtmlHelpDataItems
2577
+
2578
+ Returns reference to array with contents entries.
2579
+ """
2580
+
2581
+ def GetIndexArray(self) -> HtmlHelpDataItems:
2582
+ """
2583
+ GetIndexArray() -> HtmlHelpDataItems
2584
+
2585
+ Returns reference to array with index entries.
2586
+ """
2587
+
2588
+ def SetTempDir(self, path: str) -> None:
2589
+ """
2590
+ SetTempDir(path) -> None
2591
+
2592
+ Sets the temporary directory where binary cached versions of MS HTML
2593
+ Workshop files will be stored.
2594
+ """
2595
+ @property
2596
+ def BookRecArray(self) -> HtmlBookRecArray: ...
2597
+ @property
2598
+ def ContentsArray(self) -> HtmlHelpDataItems: ...
2599
+ @property
2600
+ def IndexArray(self) -> HtmlHelpDataItems: ...
2601
+ # end of class HtmlHelpData
2602
+
2603
+
2604
+ class HtmlBookRecArray(wx.siplib.wrapper):
2605
+ def __len__(self) -> int: ...
2606
+ def __getitem__(self, index: int, /) -> HtmlBookRecord: ...
2607
+ def __contains__(self, obj: HtmlBookRecord, /) -> bool: ...
2608
+ def __iter__(self) -> Iterator[HtmlBookRecord]: ...
2609
+ def index(self, obj: HtmlBookRecord) -> int: ...
2610
+ def append(self, obj: HtmlBookRecord) -> None: ...
2611
+
2612
+ class HtmlHelpDataItems(wx.siplib.wrapper):
2613
+ def __len__(self) -> int: ...
2614
+ def __getitem__(self, index: int, /) -> HtmlHelpDataItem: ...
2615
+ def __contains__(self, obj: HtmlHelpDataItem, /) -> bool: ...
2616
+ def __iter__(self) -> Iterator[HtmlHelpDataItem]: ...
2617
+ def index(self, obj: HtmlHelpDataItem) -> int: ...
2618
+ def append(self, obj: HtmlHelpDataItem) -> None: ...
2619
+ #-- end-helpdata --#
2620
+ #-- begin-helpfrm --#
2621
+ HF_TOOLBAR: int
2622
+ HF_CONTENTS: int
2623
+ HF_INDEX: int
2624
+ HF_SEARCH: int
2625
+ HF_BOOKMARKS: int
2626
+ HF_OPEN_FILES: int
2627
+ HF_PRINT: int
2628
+ HF_FLAT_TOOLBAR: int
2629
+ HF_MERGE_BOOKS: int
2630
+ HF_ICONS_BOOK: int
2631
+ HF_ICONS_BOOK_CHAPTER: int
2632
+ HF_ICONS_FOLDER: int
2633
+ HF_DEFAULT_STYLE: int
2634
+
2635
+ class HtmlHelpFrame(wx.Frame):
2636
+ """
2637
+ HtmlHelpFrame(data=None) -> None
2638
+ HtmlHelpFrame(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE, data=None, config=None, rootpath='') -> None
2639
+
2640
+ This class is used by wxHtmlHelpController to display help.
2641
+ """
2642
+
2643
+ @overload
2644
+ def __init__(self, parent: Optional[wx.Window], id: int=wx.ID_ANY, title: str='', style: int=HF_DEFAULT_STYLE, data: Optional[HtmlHelpData]=None, config: Optional[wx.ConfigBase]=None, rootpath: str='') -> None:
2645
+ ...
2646
+
2647
+ @overload
2648
+ def __init__(self, data: Optional[HtmlHelpData]=None) -> None:
2649
+ """
2650
+ HtmlHelpFrame(data=None) -> None
2651
+ HtmlHelpFrame(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE, data=None, config=None, rootpath='') -> None
2652
+
2653
+ This class is used by wxHtmlHelpController to display help.
2654
+ """
2655
+
2656
+ def AddToolbarButtons(self, toolBar: wx.ToolBar, style: int) -> None:
2657
+ """
2658
+ AddToolbarButtons(toolBar, style) -> None
2659
+
2660
+ You may override this virtual method to add more buttons to the help
2661
+ window's toolbar.
2662
+ """
2663
+
2664
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, title: str='', style: int=HF_DEFAULT_STYLE, config: Optional[wx.ConfigBase]=None, rootpath: str='') -> bool:
2665
+ """
2666
+ Create(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE, config=None, rootpath='') -> bool
2667
+
2668
+ Creates the frame.
2669
+ """
2670
+
2671
+ def GetController(self) -> HtmlHelpController:
2672
+ """
2673
+ GetController() -> HtmlHelpController
2674
+
2675
+ Returns the help controller associated with the frame.
2676
+ """
2677
+
2678
+ def SetController(self, controller: HtmlHelpController) -> None:
2679
+ """
2680
+ SetController(controller) -> None
2681
+
2682
+ Sets the help controller associated with the frame.
2683
+ """
2684
+
2685
+ def SetTitleFormat(self, format: str) -> None:
2686
+ """
2687
+ SetTitleFormat(format) -> None
2688
+
2689
+ Sets the frame's title format.
2690
+ """
2691
+
2692
+ @staticmethod
2693
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2694
+ """
2695
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2696
+ """
2697
+ @property
2698
+ def Controller(self) -> HtmlHelpController: ...
2699
+ @Controller.setter
2700
+ def Controller(self, value: HtmlHelpController, /) -> None: ...
2701
+ # end of class HtmlHelpFrame
2702
+
2703
+ #-- end-helpfrm --#
2704
+ #-- begin-helpdlg --#
2705
+
2706
+ class HtmlHelpDialog(wx.Dialog):
2707
+ """
2708
+ HtmlHelpDialog(data=None) -> None
2709
+ HtmlHelpDialog(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE, data=None) -> None
2710
+
2711
+ This class is used by wxHtmlHelpController to display help.
2712
+ """
2713
+
2714
+ @overload
2715
+ def __init__(self, parent: Optional[wx.Window], id: int=wx.ID_ANY, title: str='', style: int=HF_DEFAULT_STYLE, data: Optional[HtmlHelpData]=None) -> None:
2716
+ ...
2717
+
2718
+ @overload
2719
+ def __init__(self, data: Optional[HtmlHelpData]=None) -> None:
2720
+ """
2721
+ HtmlHelpDialog(data=None) -> None
2722
+ HtmlHelpDialog(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE, data=None) -> None
2723
+
2724
+ This class is used by wxHtmlHelpController to display help.
2725
+ """
2726
+
2727
+ def AddToolbarButtons(self, toolBar: wx.ToolBar, style: int) -> None:
2728
+ """
2729
+ AddToolbarButtons(toolBar, style) -> None
2730
+
2731
+ You may override this virtual method to add more buttons to the help
2732
+ window's toolbar.
2733
+ """
2734
+
2735
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, title: str='', style: int=HF_DEFAULT_STYLE) -> bool:
2736
+ """
2737
+ Create(parent, id=wx.ID_ANY, title='', style=HF_DEFAULT_STYLE) -> bool
2738
+
2739
+ Creates the dialog.
2740
+ """
2741
+
2742
+ def GetController(self) -> HtmlHelpController:
2743
+ """
2744
+ GetController() -> HtmlHelpController
2745
+
2746
+ Returns the help controller associated with the dialog.
2747
+ """
2748
+
2749
+ def SetController(self, controller: HtmlHelpController) -> None:
2750
+ """
2751
+ SetController(controller) -> None
2752
+
2753
+ Sets the help controller associated with the dialog.
2754
+ """
2755
+
2756
+ def SetTitleFormat(self, format: str) -> None:
2757
+ """
2758
+ SetTitleFormat(format) -> None
2759
+
2760
+ Sets the dialog's title format.
2761
+ """
2762
+
2763
+ @staticmethod
2764
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2765
+ """
2766
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2767
+ """
2768
+ @property
2769
+ def Controller(self) -> HtmlHelpController: ...
2770
+ @Controller.setter
2771
+ def Controller(self, value: HtmlHelpController, /) -> None: ...
2772
+ # end of class HtmlHelpDialog
2773
+
2774
+ #-- end-helpdlg --#
2775
+ #-- begin-helpwnd --#
2776
+ ID_HTML_PANEL: int
2777
+ ID_HTML_BACK: int
2778
+ ID_HTML_FORWARD: int
2779
+ ID_HTML_UPNODE: int
2780
+ ID_HTML_UP: int
2781
+ ID_HTML_DOWN: int
2782
+ ID_HTML_PRINT: int
2783
+ ID_HTML_OPENFILE: int
2784
+ ID_HTML_OPTIONS: int
2785
+ ID_HTML_BOOKMARKSLIST: int
2786
+ ID_HTML_BOOKMARKSADD: int
2787
+ ID_HTML_BOOKMARKSREMOVE: int
2788
+ ID_HTML_TREECTRL: int
2789
+ ID_HTML_INDEXPAGE: int
2790
+ ID_HTML_INDEXLIST: int
2791
+ ID_HTML_INDEXTEXT: int
2792
+ ID_HTML_INDEXBUTTON: int
2793
+ ID_HTML_INDEXBUTTONALL: int
2794
+ ID_HTML_NOTEBOOK: int
2795
+ ID_HTML_SEARCHPAGE: int
2796
+ ID_HTML_SEARCHTEXT: int
2797
+ ID_HTML_SEARCHLIST: int
2798
+ ID_HTML_SEARCHBUTTON: int
2799
+ ID_HTML_SEARCHCHOICE: int
2800
+ ID_HTML_COUNTINFO: int
2801
+
2802
+ class HtmlHelpWindow(wx.Window):
2803
+ """
2804
+ HtmlHelpWindow(data=None) -> None
2805
+ HtmlHelpWindow(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.TAB_TRAVERSAL|wx.BORDER_NONE, helpStyle=HF_DEFAULT_STYLE, data=None) -> None
2806
+
2807
+ This class is used by wxHtmlHelpController to display help within a
2808
+ frame or dialog, but you can use it yourself to create an embedded
2809
+ HTML help window.
2810
+ """
2811
+
2812
+ @overload
2813
+ def __init__(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=wx.TAB_TRAVERSAL|wx.BORDER_NONE, helpStyle: int=HF_DEFAULT_STYLE, data: Optional[HtmlHelpData]=None) -> None:
2814
+ ...
2815
+
2816
+ @overload
2817
+ def __init__(self, data: Optional[HtmlHelpData]=None) -> None:
2818
+ """
2819
+ HtmlHelpWindow(data=None) -> None
2820
+ HtmlHelpWindow(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.TAB_TRAVERSAL|wx.BORDER_NONE, helpStyle=HF_DEFAULT_STYLE, data=None) -> None
2821
+
2822
+ This class is used by wxHtmlHelpController to display help within a
2823
+ frame or dialog, but you can use it yourself to create an embedded
2824
+ HTML help window.
2825
+ """
2826
+
2827
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=wx.TAB_TRAVERSAL|wx.BORDER_NONE, helpStyle: int=HF_DEFAULT_STYLE) -> bool:
2828
+ """
2829
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.TAB_TRAVERSAL|wx.BORDER_NONE, helpStyle=HF_DEFAULT_STYLE) -> bool
2830
+
2831
+ Creates the help window.
2832
+ """
2833
+
2834
+ @overload
2835
+ def Display(self, id: int) -> bool:
2836
+ ...
2837
+
2838
+ @overload
2839
+ def Display(self, x: str) -> bool:
2840
+ """
2841
+ Display(x) -> bool
2842
+ Display(id) -> bool
2843
+
2844
+ Displays page x.
2845
+ """
2846
+
2847
+ def DisplayContents(self) -> bool:
2848
+ """
2849
+ DisplayContents() -> bool
2850
+
2851
+ Displays contents panel.
2852
+ """
2853
+
2854
+ def DisplayIndex(self) -> bool:
2855
+ """
2856
+ DisplayIndex() -> bool
2857
+
2858
+ Displays index panel.
2859
+ """
2860
+
2861
+ def GetData(self) -> HtmlHelpData:
2862
+ """
2863
+ GetData() -> HtmlHelpData
2864
+
2865
+ Returns the wxHtmlHelpData object, which is usually a pointer to the
2866
+ controller's data.
2867
+ """
2868
+
2869
+ def KeywordSearch(self, keyword: str, mode: Union[wx.HelpSearchMode, int]=wx.HELP_SEARCH_ALL) -> bool:
2870
+ """
2871
+ KeywordSearch(keyword, mode=wx.HELP_SEARCH_ALL) -> bool
2872
+
2873
+ Search for given keyword.
2874
+ """
2875
+
2876
+ def ReadCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
2877
+ """
2878
+ ReadCustomization(cfg, path='') -> None
2879
+
2880
+ Reads the user's settings for this window.
2881
+ """
2882
+
2883
+ def UseConfig(self, config: wx.ConfigBase, rootpath: str='') -> None:
2884
+ """
2885
+ UseConfig(config, rootpath='') -> None
2886
+
2887
+ Associates a wxConfig object with the help window.
2888
+ """
2889
+
2890
+ def WriteCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
2891
+ """
2892
+ WriteCustomization(cfg, path='') -> None
2893
+
2894
+ Saves the user's settings for this window.
2895
+ """
2896
+
2897
+ def RefreshLists(self) -> None:
2898
+ """
2899
+ RefreshLists() -> None
2900
+
2901
+ Refresh all panels.
2902
+ """
2903
+
2904
+ def GetController(self) -> HtmlHelpController:
2905
+ """
2906
+ GetController() -> HtmlHelpController
2907
+ """
2908
+
2909
+ def SetController(self, controller: HtmlHelpController) -> None:
2910
+ """
2911
+ SetController(controller) -> None
2912
+ """
2913
+
2914
+ @staticmethod
2915
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2916
+ """
2917
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2918
+ """
2919
+ @property
2920
+ def Controller(self) -> HtmlHelpController: ...
2921
+ @Controller.setter
2922
+ def Controller(self, value: HtmlHelpController, /) -> None: ...
2923
+ @property
2924
+ def Data(self) -> HtmlHelpData: ...
2925
+
2926
+ def CreateSearch(self) -> None:
2927
+ """
2928
+ CreateSearch() -> None
2929
+
2930
+ Creates search panel.
2931
+ """
2932
+
2933
+ def AddToolbarButtons(self, toolBar: wx.ToolBar, style: int) -> None:
2934
+ """
2935
+ AddToolbarButtons(toolBar, style) -> None
2936
+
2937
+ You may override this virtual method to add more buttons to the help
2938
+ window's toolbar.
2939
+ """
2940
+
2941
+ def CreateContents(self) -> None:
2942
+ """
2943
+ CreateContents() -> None
2944
+
2945
+ Creates contents panel.
2946
+ """
2947
+
2948
+ def CreateIndex(self) -> None:
2949
+ """
2950
+ CreateIndex() -> None
2951
+
2952
+ Creates index panel.
2953
+ """
2954
+ # end of class HtmlHelpWindow
2955
+
2956
+ #-- end-helpwnd --#
2957
+ #-- begin-helpctrl --#
2958
+ import wx.siplib
2959
+ ID_HTML_HELPFRAME: int
2960
+ HF_EMBEDDED: int
2961
+ HF_DIALOG: int
2962
+ HF_FRAME: int
2963
+ HF_MODAL: int
2964
+
2965
+ class HtmlHelpController(wx.HelpControllerBase):
2966
+ """
2967
+ HtmlHelpController(style=HF_DEFAULT_STYLE, parentWindow=None) -> None
2968
+ HtmlHelpController(parentWindow, style=HF_DEFAULT_STYLE) -> None
2969
+
2970
+ This help controller provides an easy way of displaying HTML help in
2971
+ your application (see HTML Sample, test example).
2972
+ """
2973
+
2974
+ @overload
2975
+ def __init__(self, parentWindow: wx.Window, style: int=HF_DEFAULT_STYLE) -> None:
2976
+ ...
2977
+
2978
+ @overload
2979
+ def __init__(self, style: int=HF_DEFAULT_STYLE, parentWindow: Optional[wx.Window]=None) -> None:
2980
+ """
2981
+ HtmlHelpController(style=HF_DEFAULT_STYLE, parentWindow=None) -> None
2982
+ HtmlHelpController(parentWindow, style=HF_DEFAULT_STYLE) -> None
2983
+
2984
+ This help controller provides an easy way of displaying HTML help in
2985
+ your application (see HTML Sample, test example).
2986
+ """
2987
+
2988
+ @overload
2989
+ def AddBook(self, bookUrl: str, showWaitMsg: bool=False) -> bool:
2990
+ ...
2991
+
2992
+ @overload
2993
+ def AddBook(self, bookFile: str, showWaitMsg: bool=False) -> bool:
2994
+ """
2995
+ AddBook(bookFile, showWaitMsg=False) -> bool
2996
+ AddBook(bookUrl, showWaitMsg=False) -> bool
2997
+
2998
+ Adds a book (i.e.
2999
+ """
3000
+
3001
+ @overload
3002
+ def Display(self, id: int) -> bool:
3003
+ ...
3004
+
3005
+ @overload
3006
+ def Display(self, x: str) -> bool:
3007
+ """
3008
+ Display(x) -> bool
3009
+ Display(id) -> bool
3010
+
3011
+ Displays page x.
3012
+ """
3013
+
3014
+ def DisplayContents(self) -> bool:
3015
+ """
3016
+ DisplayContents() -> bool
3017
+
3018
+ Displays help window and focuses contents panel.
3019
+ """
3020
+
3021
+ def DisplayIndex(self) -> bool:
3022
+ """
3023
+ DisplayIndex() -> bool
3024
+
3025
+ Displays help window and focuses index panel.
3026
+ """
3027
+
3028
+ def KeywordSearch(self, keyword: str, mode: Union[wx.HelpSearchMode, int]=wx.HELP_SEARCH_ALL) -> bool:
3029
+ """
3030
+ KeywordSearch(keyword, mode=wx.HELP_SEARCH_ALL) -> bool
3031
+
3032
+ Displays the help window, focuses search panel and starts searching.
3033
+ """
3034
+
3035
+ def ReadCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
3036
+ """
3037
+ ReadCustomization(cfg, path='') -> None
3038
+
3039
+ Reads the controller's setting (position of window, etc.)
3040
+ """
3041
+
3042
+ def SetShouldPreventAppExit(self, enable: bool) -> None:
3043
+ """
3044
+ SetShouldPreventAppExit(enable) -> None
3045
+
3046
+ Sets whether the help frame should prevent application from exiting if
3047
+ it's the only remaining top level window.
3048
+ """
3049
+
3050
+ def SetTempDir(self, path: str) -> None:
3051
+ """
3052
+ SetTempDir(path) -> None
3053
+
3054
+ Sets the path for storing temporary files - cached binary versions of
3055
+ index and contents files.
3056
+ """
3057
+
3058
+ def SetTitleFormat(self, format: str) -> None:
3059
+ """
3060
+ SetTitleFormat(format) -> None
3061
+
3062
+ Sets format of title of the frame.
3063
+ """
3064
+
3065
+ def UseConfig(self, config: wx.ConfigBase, rootpath: str='') -> None:
3066
+ """
3067
+ UseConfig(config, rootpath='') -> None
3068
+
3069
+ Associates the config object with the controller.
3070
+ """
3071
+
3072
+ def WriteCustomization(self, cfg: wx.ConfigBase, path: str='') -> None:
3073
+ """
3074
+ WriteCustomization(cfg, path='') -> None
3075
+
3076
+ Stores controllers setting (position of window etc.)
3077
+ """
3078
+
3079
+ def GetHelpWindow(self) -> HtmlHelpWindow:
3080
+ """
3081
+ GetHelpWindow() -> HtmlHelpWindow
3082
+
3083
+ Get the current help window.
3084
+ """
3085
+
3086
+ def SetHelpWindow(self, helpWindow: HtmlHelpWindow) -> None:
3087
+ """
3088
+ SetHelpWindow(helpWindow) -> None
3089
+
3090
+ Set the help window to be managed by this controller.
3091
+ """
3092
+
3093
+ def GetFrame(self) -> HtmlHelpFrame:
3094
+ """
3095
+ GetFrame() -> HtmlHelpFrame
3096
+
3097
+ Returns the current help frame.
3098
+ """
3099
+
3100
+ def GetDialog(self) -> HtmlHelpDialog:
3101
+ """
3102
+ GetDialog() -> HtmlHelpDialog
3103
+
3104
+ Returns the current help dialog.
3105
+ """
3106
+ @property
3107
+ def Dialog(self) -> HtmlHelpDialog: ...
3108
+ @property
3109
+ def Frame(self) -> HtmlHelpFrame: ...
3110
+ @property
3111
+ def HelpWindow(self) -> HtmlHelpWindow: ...
3112
+ @HelpWindow.setter
3113
+ def HelpWindow(self, value: HtmlHelpWindow, /) -> None: ...
3114
+
3115
+ def CreateHelpDialog(self, data: HtmlHelpData) -> HtmlHelpDialog:
3116
+ """
3117
+ CreateHelpDialog(data) -> HtmlHelpDialog
3118
+
3119
+ This protected virtual method may be overridden so that when
3120
+ specifying the wxHF_DIALOG style, the controller uses a different
3121
+ dialog.
3122
+ """
3123
+
3124
+ def CreateHelpFrame(self, data: HtmlHelpData) -> HtmlHelpFrame:
3125
+ """
3126
+ CreateHelpFrame(data) -> HtmlHelpFrame
3127
+
3128
+ This protected virtual method may be overridden so that the controller
3129
+ uses a different frame.
3130
+ """
3131
+ # end of class HtmlHelpController
3132
+
3133
+
3134
+ class HtmlModalHelp(wx.siplib.wrapper):
3135
+ """
3136
+ HtmlModalHelp(parent, helpFile, topic='', style=HF_DEFAULT_STYLE|HF_DIALOG|HF_MODAL) -> None
3137
+
3138
+ This class uses wxHtmlHelpController to display help in a modal
3139
+ dialog.
3140
+ """
3141
+
3142
+ def __init__(self, parent: wx.Window, helpFile: str, topic: str='', style: int=HF_DEFAULT_STYLE|HF_DIALOG|HF_MODAL) -> None:
3143
+ """
3144
+ HtmlModalHelp(parent, helpFile, topic='', style=HF_DEFAULT_STYLE|HF_DIALOG|HF_MODAL) -> None
3145
+
3146
+ This class uses wxHtmlHelpController to display help in a modal
3147
+ dialog.
3148
+ """
3149
+ # end of class HtmlModalHelp
3150
+
3151
+ #-- end-helpctrl --#
3152
+ #-- begin-htmllbox --#
3153
+ HLB_DEFAULT_STYLE: int
3154
+ HLB_MULTIPLE: int
3155
+ HtmlListBoxNameStr: bytes
3156
+
3157
+ class HtmlListBox(wx.VListBox):
3158
+ """
3159
+ HtmlListBox(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name=HtmlListBoxNameStr) -> None
3160
+ HtmlListBox() -> None
3161
+
3162
+ wxHtmlListBox is an implementation of wxVListBox which shows HTML
3163
+ content in the listbox rows.
3164
+ """
3165
+
3166
+ @overload
3167
+ def __init__(self) -> None:
3168
+ ...
3169
+
3170
+ @overload
3171
+ def __init__(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=0, name: str=...) -> None:
3172
+ """
3173
+ HtmlListBox(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name=HtmlListBoxNameStr) -> None
3174
+ HtmlListBox() -> None
3175
+
3176
+ wxHtmlListBox is an implementation of wxVListBox which shows HTML
3177
+ content in the listbox rows.
3178
+ """
3179
+
3180
+ def GetFileSystem(self) -> wx.FileSystem:
3181
+ """
3182
+ GetFileSystem() -> wx.FileSystem
3183
+
3184
+ Returns the wxFileSystem used by the HTML parser of this object.
3185
+ """
3186
+
3187
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=0, name: str=...) -> bool:
3188
+ """
3189
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, name=HtmlListBoxNameStr) -> bool
3190
+
3191
+ Creates the control and optionally sets the initial number of items in it (it may also be set or changed later with wxVListBox::SetItemCount).
3192
+ """
3193
+
3194
+ @staticmethod
3195
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
3196
+ """
3197
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
3198
+ """
3199
+ @property
3200
+ def FileSystem(self) -> wx.FileSystem: ...
3201
+
3202
+ def OnLinkClicked(self, n: int, link: HtmlLinkInfo) -> None:
3203
+ """
3204
+ OnLinkClicked(n, link) -> None
3205
+
3206
+ Called when the user clicks on hypertext link.
3207
+ """
3208
+
3209
+ def GetSelectedTextBgColour(self, colBg: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> wx.Colour:
3210
+ """
3211
+ GetSelectedTextBgColour(colBg) -> wx.Colour
3212
+
3213
+ This virtual function may be overridden to change the appearance of
3214
+ the background of the selected cells in the same way as
3215
+ GetSelectedTextColour().
3216
+ """
3217
+
3218
+ def GetSelectedTextColour(self, colFg: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> wx.Colour:
3219
+ """
3220
+ GetSelectedTextColour(colFg) -> wx.Colour
3221
+
3222
+ This virtual function may be overridden to customize the appearance of
3223
+ the selected cells.
3224
+ """
3225
+
3226
+ def OnGetItemMarkup(self, n: int) -> str:
3227
+ """
3228
+ OnGetItemMarkup(n) -> str
3229
+
3230
+ This function may be overridden to decorate HTML returned by
3231
+ OnGetItem().
3232
+ """
3233
+
3234
+ def OnGetItem(self, n: int) -> str:
3235
+ """
3236
+ OnGetItem(n) -> str
3237
+
3238
+ This method must be implemented in the derived class and should return
3239
+ the body (i.e. without html nor body tags) of the HTML fragment for
3240
+ the given item.
3241
+ """
3242
+ # end of class HtmlListBox
3243
+
3244
+ SimpleHtmlListBoxNameStr: bytes
3245
+
3246
+ class SimpleHtmlListBox(HtmlListBox, wx.ItemContainer):
3247
+ """
3248
+ SimpleHtmlListBox(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, choices=[], style=HLB_DEFAULT_STYLE, validator=wx.DefaultValidator, name=SimpleHtmlListBoxNameStr) -> None
3249
+ SimpleHtmlListBox() -> None
3250
+
3251
+ wxSimpleHtmlListBox is an implementation of wxHtmlListBox which shows
3252
+ HTML content in the listbox rows.
3253
+ """
3254
+
3255
+ @overload
3256
+ def __init__(self) -> None:
3257
+ ...
3258
+
3259
+ @overload
3260
+ def __init__(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, choices: List[str]=[], style: int=HLB_DEFAULT_STYLE, validator: wx.Validator=wx.DefaultValidator, name: str=...) -> None:
3261
+ """
3262
+ SimpleHtmlListBox(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, choices=[], style=HLB_DEFAULT_STYLE, validator=wx.DefaultValidator, name=SimpleHtmlListBoxNameStr) -> None
3263
+ SimpleHtmlListBox() -> None
3264
+
3265
+ wxSimpleHtmlListBox is an implementation of wxHtmlListBox which shows
3266
+ HTML content in the listbox rows.
3267
+ """
3268
+
3269
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, choices: List[str]=[], style: int=HLB_DEFAULT_STYLE, validator: wx.Validator=wx.DefaultValidator, name: str=...) -> bool:
3270
+ """
3271
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, choices=[], style=HLB_DEFAULT_STYLE, validator=wx.DefaultValidator, name=SimpleHtmlListBoxNameStr) -> bool
3272
+
3273
+ Creates the HTML listbox for two-step construction.
3274
+ """
3275
+
3276
+ @staticmethod
3277
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
3278
+ """
3279
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
3280
+ """
3281
+ # end of class SimpleHtmlListBox
3282
+
3283
+ #-- end-htmllbox --#