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/dataview.pyi ADDED
@@ -0,0 +1,3828 @@
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
+ The classes in this module provide views and data models for viewing tabular
44
+ or hierarchical data in a more advanced way than what is provided by classes
45
+ such as :ref:`wx.ListCtrl`, :ref:`wx.TreeCtrl`, etc.
46
+ """
47
+ #-- begin-_dataview --#
48
+
49
+ import wx
50
+ #-- end-_dataview --#
51
+ #-- begin-dataview --#
52
+ import wx.dataview
53
+ import wx.siplib
54
+ DVC_DEFAULT_RENDERER_SIZE: int
55
+ DVC_DEFAULT_WIDTH: int
56
+ DVC_TOGGLE_DEFAULT_WIDTH: int
57
+ DVC_DEFAULT_MINWIDTH: int
58
+ DVR_DEFAULT_ALIGNMENT: int
59
+ DV_SINGLE: int
60
+ DV_MULTIPLE: int
61
+ DV_NO_HEADER: int
62
+ DV_HORIZ_RULES: int
63
+ DV_VERT_RULES: int
64
+ DV_ROW_LINES: int
65
+ DV_VARIABLE_LINE_HEIGHT: int
66
+
67
+ @final
68
+ class DataViewCellMode(int, metaclass=wx.siplib.enumtype):
69
+ DATAVIEW_CELL_INERT: ClassVar[DataViewCellMode]
70
+ DATAVIEW_CELL_ACTIVATABLE: ClassVar[DataViewCellMode]
71
+ DATAVIEW_CELL_EDITABLE: ClassVar[DataViewCellMode]
72
+ DATAVIEW_CELL_INERT: DataViewCellMode
73
+ DATAVIEW_CELL_ACTIVATABLE: DataViewCellMode
74
+ DATAVIEW_CELL_EDITABLE: DataViewCellMode
75
+
76
+ @final
77
+ class DataViewCellRenderState(int, metaclass=wx.siplib.enumtype):
78
+ DATAVIEW_CELL_SELECTED: ClassVar[DataViewCellRenderState]
79
+ DATAVIEW_CELL_PRELIT: ClassVar[DataViewCellRenderState]
80
+ DATAVIEW_CELL_INSENSITIVE: ClassVar[DataViewCellRenderState]
81
+ DATAVIEW_CELL_FOCUSED: ClassVar[DataViewCellRenderState]
82
+ DATAVIEW_CELL_SELECTED: DataViewCellRenderState
83
+ DATAVIEW_CELL_PRELIT: DataViewCellRenderState
84
+ DATAVIEW_CELL_INSENSITIVE: DataViewCellRenderState
85
+ DATAVIEW_CELL_FOCUSED: DataViewCellRenderState
86
+
87
+ @final
88
+ class DataViewColumnFlags(int, metaclass=wx.siplib.enumtype):
89
+ DATAVIEW_COL_RESIZABLE: ClassVar[DataViewColumnFlags]
90
+ DATAVIEW_COL_SORTABLE: ClassVar[DataViewColumnFlags]
91
+ DATAVIEW_COL_REORDERABLE: ClassVar[DataViewColumnFlags]
92
+ DATAVIEW_COL_HIDDEN: ClassVar[DataViewColumnFlags]
93
+ DATAVIEW_COL_RESIZABLE: DataViewColumnFlags
94
+ DATAVIEW_COL_SORTABLE: DataViewColumnFlags
95
+ DATAVIEW_COL_REORDERABLE: DataViewColumnFlags
96
+ DATAVIEW_COL_HIDDEN: DataViewColumnFlags
97
+ wxEVT_DATAVIEW_SELECTION_CHANGED: int
98
+ wxEVT_DATAVIEW_ITEM_ACTIVATED: int
99
+ wxEVT_DATAVIEW_ITEM_COLLAPSING: int
100
+ wxEVT_DATAVIEW_ITEM_COLLAPSED: int
101
+ wxEVT_DATAVIEW_ITEM_EXPANDING: int
102
+ wxEVT_DATAVIEW_ITEM_EXPANDED: int
103
+ wxEVT_DATAVIEW_ITEM_START_EDITING: int
104
+ wxEVT_DATAVIEW_ITEM_EDITING_STARTED: int
105
+ wxEVT_DATAVIEW_ITEM_EDITING_DONE: int
106
+ wxEVT_DATAVIEW_ITEM_VALUE_CHANGED: int
107
+ wxEVT_DATAVIEW_ITEM_CONTEXT_MENU: int
108
+ wxEVT_DATAVIEW_COLUMN_HEADER_CLICK: int
109
+ wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK: int
110
+ wxEVT_DATAVIEW_COLUMN_SORTED: int
111
+ wxEVT_DATAVIEW_COLUMN_REORDERED: int
112
+ wxEVT_DATAVIEW_CACHE_HINT: int
113
+ wxEVT_DATAVIEW_ITEM_BEGIN_DRAG: int
114
+ wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE: int
115
+ wxEVT_DATAVIEW_ITEM_DROP: int
116
+
117
+ class DataViewItem(wx.siplib.wrapper):
118
+ """
119
+ DataViewItem() -> None
120
+ DataViewItem(item) -> None
121
+ DataViewItem(id) -> None
122
+
123
+ wxDataViewItem is a small opaque class that represents an item in a
124
+ wxDataViewCtrl in a persistent way, i.e.
125
+ """
126
+
127
+ @overload
128
+ def __init__(self, item: DataViewItem) -> None:
129
+ ...
130
+
131
+ @overload
132
+ def __init__(self, id: Any) -> None:
133
+ ...
134
+
135
+ @overload
136
+ def __init__(self) -> None:
137
+ """
138
+ DataViewItem() -> None
139
+ DataViewItem(item) -> None
140
+ DataViewItem(id) -> None
141
+
142
+ wxDataViewItem is a small opaque class that represents an item in a
143
+ wxDataViewCtrl in a persistent way, i.e.
144
+ """
145
+
146
+ def GetID(self) -> Any:
147
+ """
148
+ GetID() -> Any
149
+
150
+ Returns the ID as an opaque void pointer.
151
+ """
152
+
153
+ def IsOk(self) -> bool:
154
+ """
155
+ IsOk() -> bool
156
+
157
+ Returns true if the ID is not nullptr.
158
+ """
159
+
160
+ def Unset(self) -> None:
161
+ """
162
+ Unset() -> None
163
+
164
+ Sets the ID to nullptr and thus makes this item invalid.
165
+ """
166
+
167
+ def __nonzero__(self) -> bool:
168
+ """
169
+ __nonzero__() -> bool
170
+ """
171
+
172
+ def __bool__(self) -> bool:
173
+ """
174
+ __bool__() -> bool
175
+ """
176
+
177
+ def __hash__(self) -> int:
178
+ """
179
+ __hash__() -> int
180
+ """
181
+
182
+ def __eq__(self, other: DataViewItem, /) -> bool:
183
+ """
184
+ __eq__(other) -> bool
185
+ """
186
+
187
+ def __ne__(self, other: DataViewItem, /) -> bool:
188
+ """
189
+ __ne__(other) -> bool
190
+ """
191
+ @property
192
+ def ID(self) -> Any: ...
193
+ # end of class DataViewItem
194
+
195
+
196
+ class DataViewItemAttr(wx.siplib.wrapper):
197
+ """
198
+ DataViewItemAttr() -> None
199
+
200
+ This class is used to indicate to a wxDataViewCtrl that a certain item
201
+ (see wxDataViewItem) has extra font attributes for its renderer.
202
+ """
203
+
204
+ def __init__(self) -> None:
205
+ """
206
+ DataViewItemAttr() -> None
207
+
208
+ This class is used to indicate to a wxDataViewCtrl that a certain item
209
+ (see wxDataViewItem) has extra font attributes for its renderer.
210
+ """
211
+
212
+ def SetBold(self, set: bool) -> None:
213
+ """
214
+ SetBold(set) -> None
215
+
216
+ Call this to indicate that the item shall be displayed in bold text.
217
+ """
218
+
219
+ def SetColour(self, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
220
+ """
221
+ SetColour(colour) -> None
222
+
223
+ Call this to indicate that the item shall be displayed with that
224
+ colour.
225
+ """
226
+
227
+ def SetBackgroundColour(self, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
228
+ """
229
+ SetBackgroundColour(colour) -> None
230
+
231
+ Call this to set the background colour to use.
232
+ """
233
+
234
+ def SetItalic(self, set: bool) -> None:
235
+ """
236
+ SetItalic(set) -> None
237
+
238
+ Call this to indicate that the item shall be displayed in italic text.
239
+ """
240
+
241
+ def SetStrikethrough(self, set: bool) -> None:
242
+ """
243
+ SetStrikethrough(set) -> None
244
+
245
+ Call this to indicate that the item shall be displayed in
246
+ strikethrough text.
247
+ """
248
+
249
+ def HasColour(self) -> bool:
250
+ """
251
+ HasColour() -> bool
252
+
253
+ Returns true if the colour property has been set.
254
+ """
255
+
256
+ def GetColour(self) -> wx.Colour:
257
+ """
258
+ GetColour() -> wx.Colour
259
+
260
+ Returns this attribute's colour.
261
+ """
262
+
263
+ def HasFont(self) -> bool:
264
+ """
265
+ HasFont() -> bool
266
+
267
+ Returns true if any property affecting the font has been set.
268
+ """
269
+
270
+ def GetBold(self) -> bool:
271
+ """
272
+ GetBold() -> bool
273
+
274
+ Returns value of the bold property.
275
+ """
276
+
277
+ def GetItalic(self) -> bool:
278
+ """
279
+ GetItalic() -> bool
280
+
281
+ Returns value of the italics property.
282
+ """
283
+
284
+ def HasBackgroundColour(self) -> bool:
285
+ """
286
+ HasBackgroundColour() -> bool
287
+
288
+ Returns true if the background colour property has been set.
289
+ """
290
+
291
+ def GetBackgroundColour(self) -> wx.Colour:
292
+ """
293
+ GetBackgroundColour() -> wx.Colour
294
+
295
+ Returns the colour to be used for the background.
296
+ """
297
+
298
+ def IsDefault(self) -> bool:
299
+ """
300
+ IsDefault() -> bool
301
+
302
+ Returns true if none of the properties have been set.
303
+ """
304
+
305
+ def GetEffectiveFont(self, font: wx.Font) -> wx.Font:
306
+ """
307
+ GetEffectiveFont(font) -> wx.Font
308
+
309
+ Return the font based on the given one with this attribute applied to
310
+ it.
311
+ """
312
+ @property
313
+ def BackgroundColour(self) -> wx.Colour: ...
314
+ @BackgroundColour.setter
315
+ def BackgroundColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
316
+ @property
317
+ def Bold(self) -> bool: ...
318
+ @Bold.setter
319
+ def Bold(self, value: bool, /) -> None: ...
320
+ @property
321
+ def Colour(self) -> wx.Colour: ...
322
+ @Colour.setter
323
+ def Colour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
324
+ @property
325
+ def Italic(self) -> bool: ...
326
+ @Italic.setter
327
+ def Italic(self, value: bool, /) -> None: ...
328
+ # end of class DataViewItemAttr
329
+
330
+
331
+ class DataViewIconText(wx.Object):
332
+ """
333
+ DataViewIconText(text='', bitmap=wx.BitmapBundle()) -> None
334
+ DataViewIconText(other) -> None
335
+
336
+ wxDataViewIconText is used by wxDataViewIconTextRenderer for data
337
+ transfer.
338
+ """
339
+
340
+ @overload
341
+ def __init__(self, other: DataViewIconText) -> None:
342
+ ...
343
+
344
+ @overload
345
+ def __init__(self, text: str='', bitmap: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle()) -> None:
346
+ """
347
+ DataViewIconText(text='', bitmap=wx.BitmapBundle()) -> None
348
+ DataViewIconText(other) -> None
349
+
350
+ wxDataViewIconText is used by wxDataViewIconTextRenderer for data
351
+ transfer.
352
+ """
353
+
354
+ def GetBitmapBundle(self) -> wx.BitmapBundle:
355
+ """
356
+ GetBitmapBundle() -> wx.BitmapBundle
357
+
358
+ Gets the associated image.
359
+ """
360
+
361
+ def GetIcon(self) -> wx.Icon:
362
+ """
363
+ GetIcon() -> wx.Icon
364
+
365
+ Gets the icon.
366
+ """
367
+
368
+ def GetText(self) -> str:
369
+ """
370
+ GetText() -> str
371
+
372
+ Gets the text.
373
+ """
374
+
375
+ def SetBitmapBundle(self, bitmap: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
376
+ """
377
+ SetBitmapBundle(bitmap) -> None
378
+
379
+ Sets the associated image.
380
+ """
381
+
382
+ def SetIcon(self, icon: wx.Icon) -> None:
383
+ """
384
+ SetIcon(icon) -> None
385
+
386
+ Set the icon.
387
+ """
388
+
389
+ def SetText(self, text: str) -> None:
390
+ """
391
+ SetText(text) -> None
392
+
393
+ Set the text.
394
+ """
395
+ @property
396
+ def BitmapBundle(self) -> wx.BitmapBundle: ...
397
+ @BitmapBundle.setter
398
+ def BitmapBundle(self, value: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image], /) -> None: ...
399
+ @property
400
+ def Icon(self) -> wx.Icon: ...
401
+ @Icon.setter
402
+ def Icon(self, value: wx.Icon, /) -> None: ...
403
+ @property
404
+ def Text(self) -> str: ...
405
+ @Text.setter
406
+ def Text(self, value: str, /) -> None: ...
407
+ # end of class DataViewIconText
408
+
409
+
410
+ class DataViewCheckIconText(DataViewIconText):
411
+ """
412
+ DataViewCheckIconText(text='', icon=wx.BitmapBundle(), checkedState=wx.CHK_UNDETERMINED) -> None
413
+ DataViewCheckIconText(other) -> None
414
+
415
+ wxDataViewCheckIconText is used by wxDataViewCheckIconTextRenderer for
416
+ data transfer.
417
+ """
418
+
419
+ @overload
420
+ def __init__(self, other: DataViewCheckIconText) -> None:
421
+ ...
422
+
423
+ @overload
424
+ def __init__(self, text: str='', icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), checkedState: Union[wx.CheckBoxState, int]=wx.CHK_UNDETERMINED) -> None:
425
+ """
426
+ DataViewCheckIconText(text='', icon=wx.BitmapBundle(), checkedState=wx.CHK_UNDETERMINED) -> None
427
+ DataViewCheckIconText(other) -> None
428
+
429
+ wxDataViewCheckIconText is used by wxDataViewCheckIconTextRenderer for
430
+ data transfer.
431
+ """
432
+
433
+ def SetCheckedState(self, state: Union[wx.CheckBoxState, int]) -> None:
434
+ """
435
+ SetCheckedState(state) -> None
436
+
437
+ Sets the checked state.
438
+ """
439
+
440
+ def GetCheckedState(self) -> wx.CheckBoxState:
441
+ """
442
+ GetCheckedState() -> wx.CheckBoxState
443
+
444
+ Gets the checked state.
445
+ """
446
+ @property
447
+ def CheckedState(self) -> wx.CheckBoxState: ...
448
+ @CheckedState.setter
449
+ def CheckedState(self, value: Union[wx.CheckBoxState, int], /) -> None: ...
450
+ # end of class DataViewCheckIconText
451
+
452
+
453
+ class DataViewModelNotifier(wx.siplib.wrapper):
454
+ """
455
+ DataViewModelNotifier() -> None
456
+
457
+ A wxDataViewModelNotifier instance is owned by a wxDataViewModel and
458
+ mirrors its notification interface.
459
+ """
460
+
461
+ def __init__(self) -> None:
462
+ """
463
+ DataViewModelNotifier() -> None
464
+
465
+ A wxDataViewModelNotifier instance is owned by a wxDataViewModel and
466
+ mirrors its notification interface.
467
+ """
468
+
469
+ def Cleared(self) -> bool:
470
+ """
471
+ Cleared() -> bool
472
+
473
+ Called by owning model.
474
+ """
475
+
476
+ def GetOwner(self) -> DataViewModel:
477
+ """
478
+ GetOwner() -> DataViewModel
479
+
480
+ Get owning wxDataViewModel.
481
+ """
482
+
483
+ def ItemAdded(self, parent: DataViewItem, item: DataViewItem) -> bool:
484
+ """
485
+ ItemAdded(parent, item) -> bool
486
+
487
+ Called by owning model.
488
+ """
489
+
490
+ def ItemChanged(self, item: DataViewItem) -> bool:
491
+ """
492
+ ItemChanged(item) -> bool
493
+
494
+ Called by owning model.
495
+ """
496
+
497
+ def ItemDeleted(self, parent: DataViewItem, item: DataViewItem) -> bool:
498
+ """
499
+ ItemDeleted(parent, item) -> bool
500
+
501
+ Called by owning model.
502
+ """
503
+
504
+ def ItemsAdded(self, parent: DataViewItem, items: DataViewItemArray) -> bool:
505
+ """
506
+ ItemsAdded(parent, items) -> bool
507
+
508
+ Called by owning model.
509
+ """
510
+
511
+ def ItemsChanged(self, items: DataViewItemArray) -> bool:
512
+ """
513
+ ItemsChanged(items) -> bool
514
+
515
+ Called by owning model.
516
+ """
517
+
518
+ def ItemsDeleted(self, parent: DataViewItem, items: DataViewItemArray) -> bool:
519
+ """
520
+ ItemsDeleted(parent, items) -> bool
521
+
522
+ Called by owning model.
523
+ """
524
+
525
+ def Resort(self) -> None:
526
+ """
527
+ Resort() -> None
528
+
529
+ Called by owning model.
530
+ """
531
+
532
+ def SetOwner(self, owner: DataViewModel) -> None:
533
+ """
534
+ SetOwner(owner) -> None
535
+
536
+ Set owner of this notifier.
537
+ """
538
+
539
+ def ValueChanged(self, item: DataViewItem, col: int) -> bool:
540
+ """
541
+ ValueChanged(item, col) -> bool
542
+
543
+ Called by owning model.
544
+ """
545
+ @property
546
+ def Owner(self) -> DataViewModel: ...
547
+ @Owner.setter
548
+ def Owner(self, value: DataViewModel, /) -> None: ...
549
+ # end of class DataViewModelNotifier
550
+
551
+
552
+ class DataViewModel(wx.RefCounter):
553
+ """
554
+ DataViewModel() -> None
555
+
556
+ wxDataViewModel is the base class for all data model to be displayed
557
+ by a wxDataViewCtrl.
558
+ """
559
+
560
+ def __init__(self) -> None:
561
+ """
562
+ DataViewModel() -> None
563
+
564
+ wxDataViewModel is the base class for all data model to be displayed
565
+ by a wxDataViewCtrl.
566
+ """
567
+
568
+ def AddNotifier(self, notifier: DataViewModelNotifier) -> None:
569
+ """
570
+ AddNotifier(notifier) -> None
571
+
572
+ Adds a wxDataViewModelNotifier to the model.
573
+ """
574
+
575
+ def ChangeValue(self, variant: Any, item: DataViewItem, col: int) -> bool:
576
+ """
577
+ ChangeValue(variant, item, col) -> bool
578
+
579
+ Change the value of the given item and update the control to reflect
580
+ it.
581
+ """
582
+
583
+ def Cleared(self) -> bool:
584
+ """
585
+ Cleared() -> bool
586
+
587
+ Called to inform the model that all of its data has been changed.
588
+ """
589
+
590
+ def Compare(self, item1: DataViewItem, item2: DataViewItem, column: int, ascending: bool) -> int:
591
+ """
592
+ Compare(item1, item2, column, ascending) -> int
593
+
594
+ The compare function to be used by the control.
595
+ """
596
+
597
+ def GetAttr(self, item: DataViewItem, col: int, attr: DataViewItemAttr) -> bool:
598
+ """
599
+ GetAttr(item, col, attr) -> bool
600
+
601
+ Override this to indicate that the item has special font attributes.
602
+ """
603
+
604
+ def IsEnabled(self, item: DataViewItem, col: int) -> bool:
605
+ """
606
+ IsEnabled(item, col) -> bool
607
+
608
+ Override this to indicate that the item should be disabled.
609
+ """
610
+
611
+ def GetChildren(self, item: DataViewItem, children: DataViewItemArray) -> int:
612
+ """
613
+ GetChildren(item, children) -> int
614
+
615
+ Override this so the control can query the child items of an item.
616
+ """
617
+
618
+ def GetParent(self, item: DataViewItem) -> DataViewItem:
619
+ """
620
+ GetParent(item) -> DataViewItem
621
+
622
+ Override this to indicate which wxDataViewItem representing the parent
623
+ of item or an invalid wxDataViewItem if the root item is the parent
624
+ item.
625
+ """
626
+
627
+ def GetValue(self, item: DataViewItem, col: int) -> Any:
628
+ """
629
+ GetValue(item, col) -> Any
630
+
631
+ Override this to indicate the value of item.
632
+ """
633
+
634
+ def HasContainerColumns(self, item: DataViewItem) -> bool:
635
+ """
636
+ HasContainerColumns(item) -> bool
637
+
638
+ Override this method to indicate if a container item merely acts as a
639
+ headline (or for categorisation) or if it also acts a normal item with
640
+ entries for further columns.
641
+ """
642
+
643
+ def HasDefaultCompare(self) -> bool:
644
+ """
645
+ HasDefaultCompare() -> bool
646
+
647
+ Override this to indicate that the model provides a default compare
648
+ function that the control should use if no wxDataViewColumn has been
649
+ chosen for sorting.
650
+ """
651
+
652
+ def HasValue(self, item: DataViewItem, col: int) -> bool:
653
+ """
654
+ HasValue(item, col) -> bool
655
+
656
+ Return true if there is a value in the given column of this item.
657
+ """
658
+
659
+ def IsContainer(self, item: DataViewItem) -> bool:
660
+ """
661
+ IsContainer(item) -> bool
662
+
663
+ Override this to indicate if item is a container, i.e. if it can have
664
+ child items.
665
+ """
666
+
667
+ def ItemAdded(self, parent: DataViewItem, item: DataViewItem) -> bool:
668
+ """
669
+ ItemAdded(parent, item) -> bool
670
+
671
+ Call this to inform the model that an item has been added to the data.
672
+ """
673
+
674
+ def ItemChanged(self, item: DataViewItem) -> bool:
675
+ """
676
+ ItemChanged(item) -> bool
677
+
678
+ Call this to inform the model that an item has changed.
679
+ """
680
+
681
+ def ItemDeleted(self, parent: DataViewItem, item: DataViewItem) -> bool:
682
+ """
683
+ ItemDeleted(parent, item) -> bool
684
+
685
+ Call this to inform the model that an item has been deleted from the
686
+ data.
687
+ """
688
+
689
+ def ItemsAdded(self, parent: DataViewItem, items: DataViewItemArray) -> bool:
690
+ """
691
+ ItemsAdded(parent, items) -> bool
692
+
693
+ Call this to inform the model that several items have been added to
694
+ the data.
695
+ """
696
+
697
+ def ItemsChanged(self, items: DataViewItemArray) -> bool:
698
+ """
699
+ ItemsChanged(items) -> bool
700
+
701
+ Call this to inform the model that several items have changed.
702
+ """
703
+
704
+ def ItemsDeleted(self, parent: DataViewItem, items: DataViewItemArray) -> bool:
705
+ """
706
+ ItemsDeleted(parent, items) -> bool
707
+
708
+ Call this to inform the model that several items have been deleted.
709
+ """
710
+
711
+ def RemoveNotifier(self, notifier: DataViewModelNotifier) -> None:
712
+ """
713
+ RemoveNotifier(notifier) -> None
714
+
715
+ Remove the notifier from the list of notifiers.
716
+ """
717
+
718
+ def Resort(self) -> None:
719
+ """
720
+ Resort() -> None
721
+
722
+ Call this to initiate a resort after the sort function has been
723
+ changed.
724
+ """
725
+
726
+ def SetValue(self, variant: Any, item: DataViewItem, col: int) -> bool:
727
+ """
728
+ SetValue(variant, item, col) -> bool
729
+
730
+ This gets called in order to set a value in the data model.
731
+ """
732
+
733
+ def ValueChanged(self, item: DataViewItem, col: int) -> bool:
734
+ """
735
+ ValueChanged(item, col) -> bool
736
+
737
+ Call this to inform this model that a value in the model has been
738
+ changed.
739
+ """
740
+
741
+ def IsListModel(self) -> bool:
742
+ """
743
+ IsListModel() -> bool
744
+ """
745
+
746
+ def IsVirtualListModel(self) -> bool:
747
+ """
748
+ IsVirtualListModel() -> bool
749
+ """
750
+ # end of class DataViewModel
751
+
752
+
753
+ class DataViewListModel(DataViewModel):
754
+ """
755
+ Base class with abstract API for wxDataViewIndexListModel and
756
+ wxDataViewVirtualListModel.
757
+ """
758
+
759
+ def Compare(self, item1: DataViewItem, item2: DataViewItem, column: int, ascending: bool) -> int:
760
+ """
761
+ Compare(item1, item2, column, ascending) -> int
762
+
763
+ Compare method that sorts the items by their index.
764
+ """
765
+
766
+ def GetAttrByRow(self, row: int, col: int, attr: DataViewItemAttr) -> bool:
767
+ """
768
+ GetAttrByRow(row, col, attr) -> bool
769
+
770
+ Override this to indicate that the row has special font attributes.
771
+ """
772
+
773
+ def IsEnabledByRow(self, row: int, col: int) -> bool:
774
+ """
775
+ IsEnabledByRow(row, col) -> bool
776
+
777
+ Override this if you want to disable specific items.
778
+ """
779
+
780
+ def GetCount(self) -> int:
781
+ """
782
+ GetCount() -> int
783
+
784
+ Returns the number of items (or rows) in the list.
785
+ """
786
+
787
+ def GetRow(self, item: DataViewItem) -> int:
788
+ """
789
+ GetRow(item) -> int
790
+
791
+ Returns the position of given item.
792
+ """
793
+
794
+ def GetValueByRow(self, row: int, col: int) -> Any:
795
+ """
796
+ GetValueByRow(row, col) -> Any
797
+
798
+ Override this to allow getting values from the model.
799
+ """
800
+
801
+ def SetValueByRow(self, variant: Any, row: int, col: int) -> bool:
802
+ """
803
+ SetValueByRow(variant, row, col) -> bool
804
+
805
+ Called in order to set a value in the model.
806
+ """
807
+ @property
808
+ def Count(self) -> int: ...
809
+ # end of class DataViewListModel
810
+
811
+
812
+ class DataViewIndexListModel(DataViewListModel):
813
+ """
814
+ DataViewIndexListModel(initial_size=0) -> None
815
+
816
+ wxDataViewIndexListModel is a specialized data model which lets you
817
+ address an item by its position (row) rather than its wxDataViewItem
818
+ (which you can obtain from this class).
819
+ """
820
+
821
+ def __init__(self, initial_size: int=0) -> None:
822
+ """
823
+ DataViewIndexListModel(initial_size=0) -> None
824
+
825
+ wxDataViewIndexListModel is a specialized data model which lets you
826
+ address an item by its position (row) rather than its wxDataViewItem
827
+ (which you can obtain from this class).
828
+ """
829
+
830
+ def GetItem(self, row: int) -> DataViewItem:
831
+ """
832
+ GetItem(row) -> DataViewItem
833
+
834
+ Returns the wxDataViewItem at the given row.
835
+ """
836
+
837
+ def Reset(self, new_size: int) -> None:
838
+ """
839
+ Reset(new_size) -> None
840
+
841
+ Call this after if the data has to be read again from the model.
842
+ """
843
+
844
+ def RowAppended(self) -> None:
845
+ """
846
+ RowAppended() -> None
847
+
848
+ Call this after a row has been appended to the model.
849
+ """
850
+
851
+ def RowChanged(self, row: int) -> None:
852
+ """
853
+ RowChanged(row) -> None
854
+
855
+ Call this after a row has been changed.
856
+ """
857
+
858
+ def RowDeleted(self, row: int) -> None:
859
+ """
860
+ RowDeleted(row) -> None
861
+
862
+ Call this after a row has been deleted.
863
+ """
864
+
865
+ def RowInserted(self, before: int) -> None:
866
+ """
867
+ RowInserted(before) -> None
868
+
869
+ Call this after a row has been inserted at the given position.
870
+ """
871
+
872
+ def RowPrepended(self) -> None:
873
+ """
874
+ RowPrepended() -> None
875
+
876
+ Call this after a row has been prepended to the model.
877
+ """
878
+
879
+ def RowValueChanged(self, row: int, col: int) -> None:
880
+ """
881
+ RowValueChanged(row, col) -> None
882
+
883
+ Call this after a value has been changed.
884
+ """
885
+
886
+ def RowsDeleted(self, rows: List[int]) -> None:
887
+ """
888
+ RowsDeleted(rows) -> None
889
+
890
+ Call this after rows have been deleted.
891
+ """
892
+ # end of class DataViewIndexListModel
893
+
894
+
895
+ class DataViewVirtualListModel(DataViewListModel):
896
+ """
897
+ DataViewVirtualListModel(initial_size=0) -> None
898
+
899
+ wxDataViewVirtualListModel is a specialized data model which lets you
900
+ address an item by its position (row) rather than its wxDataViewItem
901
+ and as such offers the exact same interface as
902
+ wxDataViewIndexListModel.
903
+ """
904
+
905
+ def __init__(self, initial_size: int=0) -> None:
906
+ """
907
+ DataViewVirtualListModel(initial_size=0) -> None
908
+
909
+ wxDataViewVirtualListModel is a specialized data model which lets you
910
+ address an item by its position (row) rather than its wxDataViewItem
911
+ and as such offers the exact same interface as
912
+ wxDataViewIndexListModel.
913
+ """
914
+
915
+ def GetItem(self, row: int) -> DataViewItem:
916
+ """
917
+ GetItem(row) -> DataViewItem
918
+
919
+ Returns the wxDataViewItem at the given row.
920
+ """
921
+
922
+ def Reset(self, new_size: int) -> None:
923
+ """
924
+ Reset(new_size) -> None
925
+
926
+ Call this after if the data has to be read again from the model.
927
+ """
928
+
929
+ def RowAppended(self) -> None:
930
+ """
931
+ RowAppended() -> None
932
+
933
+ Call this after a row has been appended to the model.
934
+ """
935
+
936
+ def RowChanged(self, row: int) -> None:
937
+ """
938
+ RowChanged(row) -> None
939
+
940
+ Call this after a row has been changed.
941
+ """
942
+
943
+ def RowDeleted(self, row: int) -> None:
944
+ """
945
+ RowDeleted(row) -> None
946
+
947
+ Call this after a row has been deleted.
948
+ """
949
+
950
+ def RowInserted(self, before: int) -> None:
951
+ """
952
+ RowInserted(before) -> None
953
+
954
+ Call this after a row has been inserted at the given position.
955
+ """
956
+
957
+ def RowPrepended(self) -> None:
958
+ """
959
+ RowPrepended() -> None
960
+
961
+ Call this after a row has been prepended to the model.
962
+ """
963
+
964
+ def RowValueChanged(self, row: int, col: int) -> None:
965
+ """
966
+ RowValueChanged(row, col) -> None
967
+
968
+ Call this after a value has been changed.
969
+ """
970
+
971
+ def RowsDeleted(self, rows: List[int]) -> None:
972
+ """
973
+ RowsDeleted(rows) -> None
974
+
975
+ Call this after rows have been deleted.
976
+ """
977
+ # end of class DataViewVirtualListModel
978
+
979
+
980
+ class DataViewRenderer(wx.Object):
981
+ """
982
+ DataViewRenderer(varianttype, mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
983
+
984
+ This class is used by wxDataViewCtrl to render the individual cells.
985
+ """
986
+
987
+ def __init__(self, varianttype: str, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
988
+ """
989
+ DataViewRenderer(varianttype, mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
990
+
991
+ This class is used by wxDataViewCtrl to render the individual cells.
992
+ """
993
+
994
+ def EnableEllipsize(self, mode: Union[wx.EllipsizeMode, int]=wx.ELLIPSIZE_MIDDLE) -> None:
995
+ """
996
+ EnableEllipsize(mode=wx.ELLIPSIZE_MIDDLE) -> None
997
+
998
+ Enable or disable replacing parts of the item text with ellipsis to
999
+ make it fit the column width.
1000
+ """
1001
+
1002
+ def DisableEllipsize(self) -> None:
1003
+ """
1004
+ DisableEllipsize() -> None
1005
+
1006
+ Disable replacing parts of the item text with ellipsis.
1007
+ """
1008
+
1009
+ def GetAlignment(self) -> int:
1010
+ """
1011
+ GetAlignment() -> int
1012
+
1013
+ Returns the alignment.
1014
+ """
1015
+
1016
+ def GetEllipsizeMode(self) -> wx.EllipsizeMode:
1017
+ """
1018
+ GetEllipsizeMode() -> wx.EllipsizeMode
1019
+
1020
+ Returns the ellipsize mode used by the renderer.
1021
+ """
1022
+
1023
+ def GetMode(self) -> DataViewCellMode:
1024
+ """
1025
+ GetMode() -> DataViewCellMode
1026
+
1027
+ Returns the cell mode.
1028
+ """
1029
+
1030
+ def GetOwner(self) -> DataViewColumn:
1031
+ """
1032
+ GetOwner() -> DataViewColumn
1033
+
1034
+ Returns pointer to the owning wxDataViewColumn.
1035
+ """
1036
+
1037
+ def GetValue(self) -> Any:
1038
+ """
1039
+ GetValue() -> Any
1040
+
1041
+ This method retrieves the value from the renderer in order to transfer
1042
+ the value back to the data model.
1043
+ """
1044
+
1045
+ def GetVariantType(self) -> str:
1046
+ """
1047
+ GetVariantType() -> str
1048
+
1049
+ Returns a string with the type of the wxVariant supported by this
1050
+ renderer.
1051
+ """
1052
+
1053
+ def IsCompatibleVariantType(self, variantType: str) -> bool:
1054
+ """
1055
+ IsCompatibleVariantType(variantType) -> bool
1056
+
1057
+ Check if the given variant type is compatible with the type expected
1058
+ by this renderer.
1059
+ """
1060
+
1061
+ def SetAlignment(self, align: int) -> None:
1062
+ """
1063
+ SetAlignment(align) -> None
1064
+
1065
+ Sets the alignment of the renderer's content.
1066
+ """
1067
+
1068
+ def SetOwner(self, owner: DataViewColumn) -> None:
1069
+ """
1070
+ SetOwner(owner) -> None
1071
+
1072
+ Sets the owning wxDataViewColumn.
1073
+ """
1074
+
1075
+ def SetValue(self, value: Any) -> bool:
1076
+ """
1077
+ SetValue(value) -> bool
1078
+
1079
+ Set the value of the renderer (and thus its cell) to value.
1080
+ """
1081
+
1082
+ def SetValueAdjuster(self, transformer: DataViewValueAdjuster) -> None:
1083
+ """
1084
+ SetValueAdjuster(transformer) -> None
1085
+
1086
+ Set the transformer object to be used to customize values before they
1087
+ are rendered.
1088
+ """
1089
+
1090
+ def Validate(self, value: Any) -> bool:
1091
+ """
1092
+ Validate(value) -> bool
1093
+
1094
+ Before data is committed to the data model, it is passed to this
1095
+ method where it can be checked for validity.
1096
+ """
1097
+
1098
+ def HasEditorCtrl(self) -> bool:
1099
+ """
1100
+ HasEditorCtrl() -> bool
1101
+ """
1102
+
1103
+ def CreateEditorCtrl(self, parent: wx.Window, labelRect: Union[wx.Rect, _FourInts], value: Any) -> wx.Window:
1104
+ """
1105
+ CreateEditorCtrl(parent, labelRect, value) -> wx.Window
1106
+ """
1107
+
1108
+ def GetValueFromEditorCtrl(self, editor: wx.Window) -> Any:
1109
+ """
1110
+ GetValueFromEditorCtrl(editor) -> Any
1111
+ """
1112
+
1113
+ def StartEditing(self, item: DataViewItem, labelRect: Union[wx.Rect, _FourInts]) -> bool:
1114
+ """
1115
+ StartEditing(item, labelRect) -> bool
1116
+ """
1117
+
1118
+ def CancelEditing(self) -> None:
1119
+ """
1120
+ CancelEditing() -> None
1121
+ """
1122
+
1123
+ def FinishEditing(self) -> bool:
1124
+ """
1125
+ FinishEditing() -> bool
1126
+ """
1127
+
1128
+ def GetEditorCtrl(self) -> wx.Window:
1129
+ """
1130
+ GetEditorCtrl() -> wx.Window
1131
+ """
1132
+ @property
1133
+ def Alignment(self) -> int: ...
1134
+ @Alignment.setter
1135
+ def Alignment(self, value: int, /) -> None: ...
1136
+ @property
1137
+ def EditorCtrl(self) -> wx.Window: ...
1138
+ @property
1139
+ def EllipsizeMode(self) -> wx.EllipsizeMode: ...
1140
+ @property
1141
+ def Mode(self) -> DataViewCellMode: ...
1142
+ @property
1143
+ def Owner(self) -> DataViewColumn: ...
1144
+ @Owner.setter
1145
+ def Owner(self, value: DataViewColumn, /) -> None: ...
1146
+ @property
1147
+ def VariantType(self) -> str: ...
1148
+ @property
1149
+ def View(self) -> DataViewCtrl: ...
1150
+
1151
+ def GetView(self) -> DataViewCtrl:
1152
+ """
1153
+ GetView() -> DataViewCtrl
1154
+ """
1155
+ # end of class DataViewRenderer
1156
+
1157
+
1158
+ class DataViewCustomRenderer(DataViewRenderer):
1159
+ """
1160
+ DataViewCustomRenderer(varianttype=DataViewCustomRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1161
+
1162
+ You need to derive a new class from wxDataViewCustomRenderer in order
1163
+ to write a new renderer.
1164
+ """
1165
+
1166
+ def __init__(self, varianttype: str=DataViewCustomRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1167
+ """
1168
+ DataViewCustomRenderer(varianttype=DataViewCustomRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1169
+
1170
+ You need to derive a new class from wxDataViewCustomRenderer in order
1171
+ to write a new renderer.
1172
+ """
1173
+
1174
+ @staticmethod
1175
+ def GetDefaultType() -> str:
1176
+ """
1177
+ GetDefaultType() -> str
1178
+
1179
+ Returns the wxVariant type used with this renderer.
1180
+ """
1181
+
1182
+ def ActivateCell(self, cell: Union[wx.Rect, _FourInts], model: DataViewModel, item: DataViewItem, col: int, mouseEvent: wx.MouseEvent) -> bool:
1183
+ """
1184
+ ActivateCell(cell, model, item, col, mouseEvent) -> bool
1185
+
1186
+ Override this to react to cell activation.
1187
+ """
1188
+
1189
+ def CreateEditorCtrl(self, parent: wx.Window, labelRect: Union[wx.Rect, _FourInts], value: Any) -> wx.Window:
1190
+ """
1191
+ CreateEditorCtrl(parent, labelRect, value) -> wx.Window
1192
+
1193
+ Override this to create the actual editor control once editing is
1194
+ about to start.
1195
+ """
1196
+
1197
+ def GetAttr(self) -> DataViewItemAttr:
1198
+ """
1199
+ GetAttr() -> DataViewItemAttr
1200
+
1201
+ Return the attribute to be used for rendering.
1202
+ """
1203
+
1204
+ def GetSize(self) -> wx.Size:
1205
+ """
1206
+ GetSize() -> wx.Size
1207
+
1208
+ Return size required to show content.
1209
+ """
1210
+
1211
+ def GetValueFromEditorCtrl(self, editor: wx.Window) -> Any:
1212
+ """
1213
+ GetValueFromEditorCtrl(editor) -> Any
1214
+
1215
+ Override this so that the renderer can get the value from the editor
1216
+ control (pointed to by editor):
1217
+ """
1218
+
1219
+ def HasEditorCtrl(self) -> bool:
1220
+ """
1221
+ HasEditorCtrl() -> bool
1222
+
1223
+ Override this and make it return true in order to indicate that this
1224
+ renderer supports in-place editing.
1225
+ """
1226
+
1227
+ def LeftClick(self, cursor: Union[wx.Point, _TwoInts], cell: Union[wx.Rect, _FourInts], model: DataViewModel, item: DataViewItem, col: int) -> bool:
1228
+ """
1229
+ LeftClick(cursor, cell, model, item, col) -> bool
1230
+
1231
+ Override this to react to a left click.
1232
+ """
1233
+
1234
+ def Activate(self, cell: Union[wx.Rect, _FourInts], model: DataViewModel, item: DataViewItem, col: int) -> bool:
1235
+ """
1236
+ Activate(cell, model, item, col) -> bool
1237
+
1238
+ Override this to react to the activation of a cell.
1239
+ """
1240
+
1241
+ def Render(self, cell: Union[wx.Rect, _FourInts], dc: wx.DC, state: int) -> bool:
1242
+ """
1243
+ Render(cell, dc, state) -> bool
1244
+
1245
+ Override this to render the cell.
1246
+ """
1247
+
1248
+ def RenderText(self, text: str, xoffset: int, cell: Union[wx.Rect, _FourInts], dc: wx.DC, state: int) -> None:
1249
+ """
1250
+ RenderText(text, xoffset, cell, dc, state) -> None
1251
+
1252
+ This method should be called from within Render() whenever you need to
1253
+ render simple text.
1254
+ """
1255
+
1256
+ def StartDrag(self, cursor: Union[wx.Point, _TwoInts], cell: Union[wx.Rect, _FourInts], model: DataViewModel, item: DataViewItem, col: int) -> bool:
1257
+ """
1258
+ StartDrag(cursor, cell, model, item, col) -> bool
1259
+
1260
+ Override this to start a drag operation.
1261
+ """
1262
+ @property
1263
+ def Attr(self) -> DataViewItemAttr: ...
1264
+ @property
1265
+ def Size(self) -> wx.Size: ...
1266
+
1267
+ def GetTextExtent(self, str: str) -> wx.Size:
1268
+ """
1269
+ GetTextExtent(str) -> wx.Size
1270
+
1271
+ Helper for GetSize() implementations, respects attributes.
1272
+ """
1273
+ # end of class DataViewCustomRenderer
1274
+
1275
+
1276
+ class DataViewTextRenderer(DataViewRenderer):
1277
+ """
1278
+ DataViewTextRenderer(varianttype=DataViewTextRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1279
+
1280
+ wxDataViewTextRenderer is used for rendering text.
1281
+ """
1282
+
1283
+ def __init__(self, varianttype: str=DataViewTextRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1284
+ """
1285
+ DataViewTextRenderer(varianttype=DataViewTextRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1286
+
1287
+ wxDataViewTextRenderer is used for rendering text.
1288
+ """
1289
+
1290
+ @staticmethod
1291
+ def GetDefaultType() -> str:
1292
+ """
1293
+ GetDefaultType() -> str
1294
+
1295
+ Returns the wxVariant type used with this renderer.
1296
+ """
1297
+
1298
+ def EnableMarkup(self, enable: bool=True) -> None:
1299
+ """
1300
+ EnableMarkup(enable=True) -> None
1301
+
1302
+ Enable interpretation of markup in the item data.
1303
+ """
1304
+ # end of class DataViewTextRenderer
1305
+
1306
+
1307
+ class DataViewIconTextRenderer(DataViewRenderer):
1308
+ """
1309
+ DataViewIconTextRenderer(varianttype=DataViewIconTextRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1310
+
1311
+ The wxDataViewIconTextRenderer class is used to display text with a
1312
+ small icon next to it as it is typically done in a file manager.
1313
+ """
1314
+
1315
+ def __init__(self, varianttype: str=DataViewIconTextRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1316
+ """
1317
+ DataViewIconTextRenderer(varianttype=DataViewIconTextRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1318
+
1319
+ The wxDataViewIconTextRenderer class is used to display text with a
1320
+ small icon next to it as it is typically done in a file manager.
1321
+ """
1322
+
1323
+ @staticmethod
1324
+ def GetDefaultType() -> str:
1325
+ """
1326
+ GetDefaultType() -> str
1327
+
1328
+ Returns the wxVariant type used with this renderer.
1329
+ """
1330
+ # end of class DataViewIconTextRenderer
1331
+
1332
+
1333
+ class DataViewCheckIconTextRenderer(DataViewRenderer):
1334
+ """
1335
+ DataViewCheckIconTextRenderer(mode=DATAVIEW_CELL_ACTIVATABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1336
+
1337
+ This renderer class shows a checkbox in addition to the icon and text
1338
+ shown by the base class and also allows the user to toggle this
1339
+ checkbox.
1340
+ """
1341
+
1342
+ def __init__(self, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1343
+ """
1344
+ DataViewCheckIconTextRenderer(mode=DATAVIEW_CELL_ACTIVATABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1345
+
1346
+ This renderer class shows a checkbox in addition to the icon and text
1347
+ shown by the base class and also allows the user to toggle this
1348
+ checkbox.
1349
+ """
1350
+
1351
+ @staticmethod
1352
+ def GetDefaultType() -> str:
1353
+ """
1354
+ GetDefaultType() -> str
1355
+ """
1356
+
1357
+ def Allow3rdStateForUser(self, allow: bool=True) -> None:
1358
+ """
1359
+ Allow3rdStateForUser(allow=True) -> None
1360
+
1361
+ Allow the user to interactively select the 3rd state for the items
1362
+ rendered by this object.
1363
+ """
1364
+ # end of class DataViewCheckIconTextRenderer
1365
+
1366
+
1367
+ class DataViewProgressRenderer(DataViewRenderer):
1368
+ """
1369
+ DataViewProgressRenderer(label='', varianttype=DataViewProgressRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1370
+
1371
+ This class is used by wxDataViewCtrl to render progress bars.
1372
+ """
1373
+
1374
+ def __init__(self, label: str='', varianttype: str=DataViewProgressRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1375
+ """
1376
+ DataViewProgressRenderer(label='', varianttype=DataViewProgressRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1377
+
1378
+ This class is used by wxDataViewCtrl to render progress bars.
1379
+ """
1380
+
1381
+ @staticmethod
1382
+ def GetDefaultType() -> str:
1383
+ """
1384
+ GetDefaultType() -> str
1385
+
1386
+ Returns the wxVariant type used with this renderer.
1387
+ """
1388
+ # end of class DataViewProgressRenderer
1389
+
1390
+
1391
+ class DataViewSpinRenderer(DataViewCustomRenderer):
1392
+ """
1393
+ DataViewSpinRenderer(min, max, mode=DATAVIEW_CELL_EDITABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1394
+
1395
+ This is a specialized renderer for rendering integer values.
1396
+ """
1397
+
1398
+ def __init__(self, min: int, max: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_EDITABLE, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1399
+ """
1400
+ DataViewSpinRenderer(min, max, mode=DATAVIEW_CELL_EDITABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1401
+
1402
+ This is a specialized renderer for rendering integer values.
1403
+ """
1404
+ # end of class DataViewSpinRenderer
1405
+
1406
+
1407
+ class DataViewToggleRenderer(DataViewRenderer):
1408
+ """
1409
+ DataViewToggleRenderer(varianttype=DataViewToggleRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1410
+
1411
+ This class is used by wxDataViewCtrl to render toggle controls.
1412
+ """
1413
+
1414
+ def __init__(self, varianttype: str=DataViewToggleRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1415
+ """
1416
+ DataViewToggleRenderer(varianttype=DataViewToggleRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1417
+
1418
+ This class is used by wxDataViewCtrl to render toggle controls.
1419
+ """
1420
+
1421
+ @staticmethod
1422
+ def GetDefaultType() -> str:
1423
+ """
1424
+ GetDefaultType() -> str
1425
+
1426
+ Returns the wxVariant type used with this renderer.
1427
+ """
1428
+
1429
+ def ShowAsRadio(self) -> None:
1430
+ """
1431
+ ShowAsRadio() -> None
1432
+
1433
+ Switch to using radiobutton-like appearance instead of the default
1434
+ checkbox-like one.
1435
+ """
1436
+ # end of class DataViewToggleRenderer
1437
+
1438
+
1439
+ class DataViewChoiceRenderer(DataViewRenderer):
1440
+ """
1441
+ DataViewChoiceRenderer(choices, mode=DATAVIEW_CELL_EDITABLE, alignment=DVR_DEFAULT_ALIGNMENT) -> None
1442
+
1443
+ A wxDataViewCtrl renderer using wxChoice control and values of strings
1444
+ in it.
1445
+ """
1446
+
1447
+ def __init__(self, choices: List[str], mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_EDITABLE, alignment: int=DVR_DEFAULT_ALIGNMENT) -> None:
1448
+ """
1449
+ DataViewChoiceRenderer(choices, mode=DATAVIEW_CELL_EDITABLE, alignment=DVR_DEFAULT_ALIGNMENT) -> None
1450
+
1451
+ A wxDataViewCtrl renderer using wxChoice control and values of strings
1452
+ in it.
1453
+ """
1454
+
1455
+ def GetChoice(self, index: int) -> str:
1456
+ """
1457
+ GetChoice(index) -> str
1458
+
1459
+ Returns the choice referred to by index.
1460
+ """
1461
+
1462
+ def GetChoices(self) -> List[str]:
1463
+ """
1464
+ GetChoices() -> List[str]
1465
+
1466
+ Returns all choices.
1467
+ """
1468
+ @property
1469
+ def Choices(self) -> List[str]: ...
1470
+ # end of class DataViewChoiceRenderer
1471
+
1472
+
1473
+ class DataViewDateRenderer(DataViewRenderer):
1474
+ """
1475
+ DataViewDateRenderer(varianttype=DataViewDateRenderer.GetDefaultType(), mode=DATAVIEW_CELL_ACTIVATABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1476
+
1477
+ This class is used by wxDataViewCtrl to render calendar controls.
1478
+ """
1479
+
1480
+ def __init__(self, varianttype: str=DataViewDateRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1481
+ """
1482
+ DataViewDateRenderer(varianttype=DataViewDateRenderer.GetDefaultType(), mode=DATAVIEW_CELL_ACTIVATABLE, align=DVR_DEFAULT_ALIGNMENT) -> None
1483
+
1484
+ This class is used by wxDataViewCtrl to render calendar controls.
1485
+ """
1486
+
1487
+ @staticmethod
1488
+ def GetDefaultType() -> str:
1489
+ """
1490
+ GetDefaultType() -> str
1491
+
1492
+ Returns the wxVariant type used with this renderer.
1493
+ """
1494
+ # end of class DataViewDateRenderer
1495
+
1496
+
1497
+ class DataViewBitmapRenderer(DataViewRenderer):
1498
+ """
1499
+ DataViewBitmapRenderer(varianttype=DataViewBitmapRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1500
+
1501
+ This class is used by wxDataViewCtrl to render bitmaps.
1502
+ """
1503
+
1504
+ def __init__(self, varianttype: str=DataViewBitmapRenderer.GetDefaultType(), mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, align: int=DVR_DEFAULT_ALIGNMENT) -> None:
1505
+ """
1506
+ DataViewBitmapRenderer(varianttype=DataViewBitmapRenderer.GetDefaultType(), mode=DATAVIEW_CELL_INERT, align=DVR_DEFAULT_ALIGNMENT) -> None
1507
+
1508
+ This class is used by wxDataViewCtrl to render bitmaps.
1509
+ """
1510
+
1511
+ @staticmethod
1512
+ def GetDefaultType() -> str:
1513
+ """
1514
+ GetDefaultType() -> str
1515
+
1516
+ Returns the wxVariant type used with this renderer.
1517
+ """
1518
+ # end of class DataViewBitmapRenderer
1519
+
1520
+
1521
+ class DataViewColumn(wx.SettableHeaderColumn):
1522
+ """
1523
+ DataViewColumn(title, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> None
1524
+ DataViewColumn(bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> None
1525
+
1526
+ This class represents a column in a wxDataViewCtrl.
1527
+ """
1528
+
1529
+ @overload
1530
+ def __init__(self, bitmap: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image], renderer: DataViewRenderer, model_column: int, width: int=DVC_DEFAULT_WIDTH, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> None:
1531
+ ...
1532
+
1533
+ @overload
1534
+ def __init__(self, title: str, renderer: DataViewRenderer, model_column: int, width: int=DVC_DEFAULT_WIDTH, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> None:
1535
+ """
1536
+ DataViewColumn(title, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> None
1537
+ DataViewColumn(bitmap, renderer, model_column, width=DVC_DEFAULT_WIDTH, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> None
1538
+
1539
+ This class represents a column in a wxDataViewCtrl.
1540
+ """
1541
+
1542
+ def GetModelColumn(self) -> int:
1543
+ """
1544
+ GetModelColumn() -> int
1545
+
1546
+ Returns the index of the column of the model, which this
1547
+ wxDataViewColumn is displaying.
1548
+ """
1549
+
1550
+ def GetOwner(self) -> DataViewCtrl:
1551
+ """
1552
+ GetOwner() -> DataViewCtrl
1553
+
1554
+ Returns the owning wxDataViewCtrl.
1555
+ """
1556
+
1557
+ def GetRenderer(self) -> DataViewRenderer:
1558
+ """
1559
+ GetRenderer() -> DataViewRenderer
1560
+
1561
+ Returns the renderer of this wxDataViewColumn.
1562
+ """
1563
+ @property
1564
+ def ModelColumn(self) -> int: ...
1565
+ @property
1566
+ def Owner(self) -> DataViewCtrl: ...
1567
+ @property
1568
+ def Renderer(self) -> DataViewRenderer: ...
1569
+ Title = property(GetTitle, SetTitle)
1570
+ Bitmap = property(GetBitmap, SetBitmap)
1571
+ Width = property(GetWidth, SetWidth)
1572
+ MinWidth = property(GetMinWidth, SetMinWidth)
1573
+ Alignment = property(GetAlignment, SetAlignment)
1574
+ Flags = property(GetFlags, SetFlags)
1575
+ SortOrder = property(IsSortOrderAscending, SetSortOrder)
1576
+ # end of class DataViewColumn
1577
+
1578
+ DataViewCtrlNameStr: bytes
1579
+
1580
+ class DataViewCtrl(wx.Control):
1581
+ """
1582
+ DataViewCtrl() -> None
1583
+ DataViewCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=DataViewCtrlNameStr) -> None
1584
+
1585
+ wxDataViewCtrl is a control to display data either in a tree like
1586
+ fashion or in a tabular form or both.
1587
+ """
1588
+
1589
+ @overload
1590
+ 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, validator: wx.Validator=wx.DefaultValidator, name: str=...) -> None:
1591
+ ...
1592
+
1593
+ @overload
1594
+ def __init__(self) -> None:
1595
+ """
1596
+ DataViewCtrl() -> None
1597
+ DataViewCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=DataViewCtrlNameStr) -> None
1598
+
1599
+ wxDataViewCtrl is a control to display data either in a tree like
1600
+ fashion or in a tabular form or both.
1601
+ """
1602
+
1603
+ @overload
1604
+ def AppendBitmapColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1605
+ ...
1606
+
1607
+ @overload
1608
+ def AppendBitmapColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1609
+ """
1610
+ AppendBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1611
+ AppendBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1612
+
1613
+ Appends a column for rendering a bitmap.
1614
+ """
1615
+
1616
+ @overload
1617
+ def PrependBitmapColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1618
+ ...
1619
+
1620
+ @overload
1621
+ def PrependBitmapColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1622
+ """
1623
+ PrependBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1624
+ PrependBitmapColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1625
+
1626
+ Prepends a column for rendering a bitmap.
1627
+ """
1628
+
1629
+ @overload
1630
+ def AppendDateColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1631
+ ...
1632
+
1633
+ @overload
1634
+ def AppendDateColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1635
+ """
1636
+ AppendDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1637
+ AppendDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1638
+
1639
+ Appends a column for rendering a date.
1640
+ """
1641
+
1642
+ @overload
1643
+ def PrependDateColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1644
+ ...
1645
+
1646
+ @overload
1647
+ def PrependDateColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1648
+ """
1649
+ PrependDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1650
+ PrependDateColumn(label, model_column, mode=DATAVIEW_CELL_ACTIVATABLE, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1651
+
1652
+ Prepends a column for rendering a date.
1653
+ """
1654
+
1655
+ @overload
1656
+ def AppendIconTextColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1657
+ ...
1658
+
1659
+ @overload
1660
+ def AppendIconTextColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1661
+ """
1662
+ AppendIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1663
+ AppendIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1664
+
1665
+ Appends a column for rendering text with an icon.
1666
+ """
1667
+
1668
+ @overload
1669
+ def PrependIconTextColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1670
+ ...
1671
+
1672
+ @overload
1673
+ def PrependIconTextColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1674
+ """
1675
+ PrependIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1676
+ PrependIconTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1677
+
1678
+ Prepends a column for rendering text with an icon.
1679
+ """
1680
+
1681
+ @overload
1682
+ def AppendProgressColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=80, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1683
+ ...
1684
+
1685
+ @overload
1686
+ def AppendProgressColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=80, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1687
+ """
1688
+ AppendProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1689
+ AppendProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1690
+
1691
+ Appends a column for rendering a progress indicator.
1692
+ """
1693
+
1694
+ @overload
1695
+ def PrependProgressColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=80, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1696
+ ...
1697
+
1698
+ @overload
1699
+ def PrependProgressColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=80, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1700
+ """
1701
+ PrependProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1702
+ PrependProgressColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=80, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1703
+
1704
+ Prepends a column for rendering a progress indicator.
1705
+ """
1706
+
1707
+ @overload
1708
+ def AppendTextColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1709
+ ...
1710
+
1711
+ @overload
1712
+ def AppendTextColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1713
+ """
1714
+ AppendTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1715
+ AppendTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1716
+
1717
+ Appends a column for rendering text.
1718
+ """
1719
+
1720
+ @overload
1721
+ def PrependTextColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1722
+ ...
1723
+
1724
+ @overload
1725
+ def PrependTextColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_NOT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1726
+ """
1727
+ PrependTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1728
+ PrependTextColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_NOT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1729
+
1730
+ Prepends a column for rendering text.
1731
+ """
1732
+
1733
+ @overload
1734
+ def AppendToggleColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=30, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1735
+ ...
1736
+
1737
+ @overload
1738
+ def AppendToggleColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=30, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1739
+ """
1740
+ AppendToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1741
+ AppendToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1742
+
1743
+ Appends a column for rendering a toggle.
1744
+ """
1745
+
1746
+ @overload
1747
+ def PrependToggleColumn(self, label: wx.Bitmap, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=30, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1748
+ ...
1749
+
1750
+ @overload
1751
+ def PrependToggleColumn(self, label: str, model_column: int, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=30, align: Union[wx.Alignment, int]=wx.ALIGN_CENTER, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
1752
+ """
1753
+ PrependToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1754
+ PrependToggleColumn(label, model_column, mode=DATAVIEW_CELL_INERT, width=30, align=wx.ALIGN_CENTER, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
1755
+
1756
+ Prepends a column for rendering a toggle.
1757
+ """
1758
+
1759
+ def AllowMultiColumnSort(self, allow: bool) -> bool:
1760
+ """
1761
+ AllowMultiColumnSort(allow) -> bool
1762
+
1763
+ Call to allow using multiple columns for sorting.
1764
+ """
1765
+
1766
+ 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, validator: wx.Validator=wx.DefaultValidator, name: str=...) -> bool:
1767
+ """
1768
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=DataViewCtrlNameStr) -> bool
1769
+
1770
+ Create the control.
1771
+ """
1772
+
1773
+ def AppendColumn(self, col: DataViewColumn) -> bool:
1774
+ """
1775
+ AppendColumn(col) -> bool
1776
+
1777
+ Appends a wxDataViewColumn to the control.
1778
+ """
1779
+
1780
+ def PrependColumn(self, col: DataViewColumn) -> bool:
1781
+ """
1782
+ PrependColumn(col) -> bool
1783
+
1784
+ Prepends a wxDataViewColumn to the control.
1785
+ """
1786
+
1787
+ def InsertColumn(self, pos: int, col: DataViewColumn) -> bool:
1788
+ """
1789
+ InsertColumn(pos, col) -> bool
1790
+
1791
+ Inserts a wxDataViewColumn to the control.
1792
+ """
1793
+
1794
+ def _AssociateModel(self, model: DataViewModel) -> bool:
1795
+ """
1796
+ _AssociateModel(model) -> bool
1797
+
1798
+ Associates a wxDataViewModel with the control.
1799
+ """
1800
+
1801
+ def ClearColumns(self) -> bool:
1802
+ """
1803
+ ClearColumns() -> bool
1804
+
1805
+ Removes all columns.
1806
+ """
1807
+
1808
+ def Collapse(self, item: DataViewItem) -> None:
1809
+ """
1810
+ Collapse(item) -> None
1811
+
1812
+ Collapses the item.
1813
+ """
1814
+
1815
+ def DeleteColumn(self, column: DataViewColumn) -> bool:
1816
+ """
1817
+ DeleteColumn(column) -> bool
1818
+
1819
+ Deletes given column.
1820
+ """
1821
+
1822
+ def EditItem(self, item: DataViewItem, column: DataViewColumn) -> None:
1823
+ """
1824
+ EditItem(item, column) -> None
1825
+
1826
+ Programmatically starts editing given cell of item.
1827
+ """
1828
+
1829
+ def EnableDragSource(self, format: wx.DataFormat) -> bool:
1830
+ """
1831
+ EnableDragSource(format) -> bool
1832
+
1833
+ Enable drag operations using the given format.
1834
+ """
1835
+
1836
+ def EnableDropTargets(self, formats: List[wx.DataFormat]) -> bool:
1837
+ """
1838
+ EnableDropTargets(formats) -> bool
1839
+
1840
+ Enable drop operations using any of the specified formats.
1841
+ """
1842
+
1843
+ def EnableDropTarget(self, format: wx.DataFormat) -> bool:
1844
+ """
1845
+ EnableDropTarget(format) -> bool
1846
+
1847
+ Enable drop operations using the given format.
1848
+ """
1849
+
1850
+ def EnsureVisible(self, item: DataViewItem, column: Optional[DataViewColumn]=None) -> None:
1851
+ """
1852
+ EnsureVisible(item, column=None) -> None
1853
+
1854
+ Call this to ensure that the given item is visible.
1855
+ """
1856
+
1857
+ def Expand(self, item: DataViewItem) -> None:
1858
+ """
1859
+ Expand(item) -> None
1860
+
1861
+ Expands the item.
1862
+ """
1863
+
1864
+ def ExpandAncestors(self, item: DataViewItem) -> None:
1865
+ """
1866
+ ExpandAncestors(item) -> None
1867
+
1868
+ Expands all ancestors of the item.
1869
+ """
1870
+
1871
+ def ExpandChildren(self, item: DataViewItem) -> None:
1872
+ """
1873
+ ExpandChildren(item) -> None
1874
+
1875
+ Expand all children of the given item recursively.
1876
+ """
1877
+
1878
+ def GetColumn(self, pos: int) -> DataViewColumn:
1879
+ """
1880
+ GetColumn(pos) -> DataViewColumn
1881
+
1882
+ Returns pointer to the column.
1883
+ """
1884
+
1885
+ def GetColumnCount(self) -> int:
1886
+ """
1887
+ GetColumnCount() -> int
1888
+
1889
+ Returns the number of columns.
1890
+ """
1891
+
1892
+ def GetColumnPosition(self, column: DataViewColumn) -> int:
1893
+ """
1894
+ GetColumnPosition(column) -> int
1895
+
1896
+ Returns the position of the column or -1 if not found in the control.
1897
+ """
1898
+
1899
+ def GetExpanderColumn(self) -> DataViewColumn:
1900
+ """
1901
+ GetExpanderColumn() -> DataViewColumn
1902
+
1903
+ Returns column containing the expanders.
1904
+ """
1905
+
1906
+ def GetCurrentItem(self) -> DataViewItem:
1907
+ """
1908
+ GetCurrentItem() -> DataViewItem
1909
+
1910
+ Returns the currently focused item.
1911
+ """
1912
+
1913
+ def GetCurrentColumn(self) -> DataViewColumn:
1914
+ """
1915
+ GetCurrentColumn() -> DataViewColumn
1916
+
1917
+ Returns the column that currently has focus.
1918
+ """
1919
+
1920
+ def GetIndent(self) -> int:
1921
+ """
1922
+ GetIndent() -> int
1923
+
1924
+ Returns indentation.
1925
+ """
1926
+
1927
+ def GetItemRect(self, item: DataViewItem, col: Optional[DataViewColumn]=None) -> wx.Rect:
1928
+ """
1929
+ GetItemRect(item, col=None) -> wx.Rect
1930
+
1931
+ Returns item rectangle.
1932
+ """
1933
+
1934
+ def GetMainWindow(self) -> wx.Window:
1935
+ """
1936
+ GetMainWindow() -> wx.Window
1937
+
1938
+ Returns the window corresponding to the main area of the control.
1939
+ """
1940
+
1941
+ def GetModel(self) -> DataViewModel:
1942
+ """
1943
+ GetModel() -> DataViewModel
1944
+
1945
+ Returns pointer to the data model associated with the control (if
1946
+ any).
1947
+ """
1948
+
1949
+ def GetSelectedItemsCount(self) -> int:
1950
+ """
1951
+ GetSelectedItemsCount() -> int
1952
+
1953
+ Returns the number of currently selected items.
1954
+ """
1955
+
1956
+ def GetSelection(self) -> DataViewItem:
1957
+ """
1958
+ GetSelection() -> DataViewItem
1959
+
1960
+ Returns first selected item or an invalid item if none is selected.
1961
+ """
1962
+
1963
+ def GetSelections(self) -> DataViewItemArray:
1964
+ """
1965
+ GetSelections() -> DataViewItemArray
1966
+
1967
+ Returns a list of the currently selected items.
1968
+ """
1969
+
1970
+ def GetSortingColumn(self) -> DataViewColumn:
1971
+ """
1972
+ GetSortingColumn() -> DataViewColumn
1973
+
1974
+ Returns the wxDataViewColumn currently responsible for sorting or
1975
+ nullptr if none has been selected.
1976
+ """
1977
+
1978
+ def HasSelection(self) -> bool:
1979
+ """
1980
+ HasSelection() -> bool
1981
+
1982
+ Returns true if any items are currently selected.
1983
+ """
1984
+
1985
+ def HitTest(self, point: Union[wx.Point, _TwoInts]) -> Any:
1986
+ """
1987
+ HitTest(point) -> Any
1988
+
1989
+ HitTest(point) -> (item, col)
1990
+
1991
+ Returns the item and column located at point, as a 2 element tuple.
1992
+ """
1993
+
1994
+ def IsExpanded(self, item: DataViewItem) -> bool:
1995
+ """
1996
+ IsExpanded(item) -> bool
1997
+
1998
+ Return true if the item is expanded.
1999
+ """
2000
+
2001
+ def IsMultiColumnSortAllowed(self) -> bool:
2002
+ """
2003
+ IsMultiColumnSortAllowed() -> bool
2004
+
2005
+ Return true if using more than one column for sorting is allowed.
2006
+ """
2007
+
2008
+ def IsSelected(self, item: DataViewItem) -> bool:
2009
+ """
2010
+ IsSelected(item) -> bool
2011
+
2012
+ Return true if the item is selected.
2013
+ """
2014
+
2015
+ def Select(self, item: DataViewItem) -> None:
2016
+ """
2017
+ Select(item) -> None
2018
+
2019
+ Select the given item.
2020
+ """
2021
+
2022
+ def SelectAll(self) -> None:
2023
+ """
2024
+ SelectAll() -> None
2025
+
2026
+ Select all items.
2027
+ """
2028
+
2029
+ def SetAlternateRowColour(self, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> bool:
2030
+ """
2031
+ SetAlternateRowColour(colour) -> bool
2032
+
2033
+ Set custom colour for the alternate rows used with wxDV_ROW_LINES
2034
+ style.
2035
+ """
2036
+
2037
+ def SetExpanderColumn(self, col: DataViewColumn) -> None:
2038
+ """
2039
+ SetExpanderColumn(col) -> None
2040
+
2041
+ Set which column shall contain the tree-like expanders.
2042
+ """
2043
+
2044
+ def SetCurrentItem(self, item: DataViewItem) -> None:
2045
+ """
2046
+ SetCurrentItem(item) -> None
2047
+
2048
+ Changes the currently focused item.
2049
+ """
2050
+
2051
+ def SetHeaderAttr(self, attr: wx.ItemAttr) -> bool:
2052
+ """
2053
+ SetHeaderAttr(attr) -> bool
2054
+
2055
+ Set custom colours and/or font to use for the header.
2056
+ """
2057
+
2058
+ def SetIndent(self, indent: int) -> None:
2059
+ """
2060
+ SetIndent(indent) -> None
2061
+
2062
+ Sets the indentation.
2063
+ """
2064
+
2065
+ def SetSelections(self, sel: DataViewItemArray) -> None:
2066
+ """
2067
+ SetSelections(sel) -> None
2068
+
2069
+ Sets the selection to the array of wxDataViewItems.
2070
+ """
2071
+
2072
+ def Unselect(self, item: DataViewItem) -> None:
2073
+ """
2074
+ Unselect(item) -> None
2075
+
2076
+ Unselect the given item.
2077
+ """
2078
+
2079
+ def UnselectAll(self) -> None:
2080
+ """
2081
+ UnselectAll() -> None
2082
+
2083
+ Unselect all item.
2084
+ """
2085
+
2086
+ def SetRowHeight(self, rowHeight: int) -> bool:
2087
+ """
2088
+ SetRowHeight(rowHeight) -> bool
2089
+
2090
+ Sets the row height.
2091
+ """
2092
+
2093
+ def ToggleSortByColumn(self, column: int) -> None:
2094
+ """
2095
+ ToggleSortByColumn(column) -> None
2096
+
2097
+ Toggle sorting by the given column.
2098
+ """
2099
+
2100
+ def GetCountPerPage(self) -> int:
2101
+ """
2102
+ GetCountPerPage() -> int
2103
+
2104
+ Return the number of items that can fit vertically in the visible area
2105
+ of the control.
2106
+ """
2107
+
2108
+ def GetTopItem(self) -> DataViewItem:
2109
+ """
2110
+ GetTopItem() -> DataViewItem
2111
+
2112
+ Return the topmost visible item.
2113
+ """
2114
+
2115
+ @staticmethod
2116
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2117
+ """
2118
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2119
+ """
2120
+
2121
+ def EnableSystemTheme(self, enable: bool=True) -> None:
2122
+ """
2123
+ EnableSystemTheme(enable=True) -> None
2124
+
2125
+ Can be used to disable the system theme of controls using it by
2126
+ default.
2127
+ """
2128
+
2129
+ def AssociateModel(self, model):
2130
+ """
2131
+ Associates a :class:`DataViewModel` with the control.
2132
+ Ownership of the model object is passed to C++, however it
2133
+ is reference counted so it can be shared with other views.
2134
+ """
2135
+
2136
+ def GetColumns(self):
2137
+ """
2138
+ Returns a list of column objects.
2139
+ """
2140
+ @property
2141
+ def ColumnCount(self) -> int: ...
2142
+ Columns = property(GetColumns)
2143
+ @property
2144
+ def CountPerPage(self) -> int: ...
2145
+ @property
2146
+ def CurrentColumn(self) -> DataViewColumn: ...
2147
+ @property
2148
+ def CurrentItem(self) -> DataViewItem: ...
2149
+ @CurrentItem.setter
2150
+ def CurrentItem(self, value: DataViewItem, /) -> None: ...
2151
+ @property
2152
+ def ExpanderColumn(self) -> DataViewColumn: ...
2153
+ @ExpanderColumn.setter
2154
+ def ExpanderColumn(self, value: DataViewColumn, /) -> None: ...
2155
+ @property
2156
+ def Indent(self) -> int: ...
2157
+ @Indent.setter
2158
+ def Indent(self, value: int, /) -> None: ...
2159
+ @property
2160
+ def MainWindow(self) -> wx.Window: ...
2161
+ @property
2162
+ def Model(self) -> DataViewModel: ...
2163
+ @property
2164
+ def SelectedItemsCount(self) -> int: ...
2165
+ @property
2166
+ def Selection(self) -> DataViewItem: ...
2167
+ @property
2168
+ def Selections(self) -> DataViewItemArray: ...
2169
+ @Selections.setter
2170
+ def Selections(self, value: DataViewItemArray, /) -> None: ...
2171
+ @property
2172
+ def SortingColumn(self) -> DataViewColumn: ...
2173
+ @property
2174
+ def TopItem(self) -> DataViewItem: ...
2175
+ # end of class DataViewCtrl
2176
+
2177
+
2178
+ class DataViewEvent(wx.NotifyEvent):
2179
+ """
2180
+ DataViewEvent() -> None
2181
+ DataViewEvent(evtType, dvc, column, item=DataViewItem()) -> None
2182
+ DataViewEvent(evtType, dvc, item) -> None
2183
+ DataViewEvent(event) -> None
2184
+
2185
+ This is the event class for the wxDataViewCtrl notifications.
2186
+ """
2187
+
2188
+ @overload
2189
+ def __init__(self, evtType: int, dvc: DataViewCtrl, column: wx.dataview.DataViewColumn, item: DataViewItem=DataViewItem()) -> None:
2190
+ ...
2191
+
2192
+ @overload
2193
+ def __init__(self, evtType: int, dvc: DataViewCtrl, item: DataViewItem) -> None:
2194
+ ...
2195
+
2196
+ @overload
2197
+ def __init__(self, event: DataViewEvent) -> None:
2198
+ ...
2199
+
2200
+ @overload
2201
+ def __init__(self) -> None:
2202
+ """
2203
+ DataViewEvent() -> None
2204
+ DataViewEvent(evtType, dvc, column, item=DataViewItem()) -> None
2205
+ DataViewEvent(evtType, dvc, item) -> None
2206
+ DataViewEvent(event) -> None
2207
+
2208
+ This is the event class for the wxDataViewCtrl notifications.
2209
+ """
2210
+
2211
+ def GetColumn(self) -> int:
2212
+ """
2213
+ GetColumn() -> int
2214
+
2215
+ Returns the position of the column in the control or -1 if column
2216
+ field is unavailable for this event.
2217
+ """
2218
+
2219
+ def GetDataViewColumn(self) -> wx.dataview.DataViewColumn:
2220
+ """
2221
+ GetDataViewColumn() -> DataViewColumn
2222
+
2223
+ Returns a pointer to the wxDataViewColumn from which the event was
2224
+ emitted or nullptr.
2225
+ """
2226
+
2227
+ def GetModel(self) -> DataViewModel:
2228
+ """
2229
+ GetModel() -> DataViewModel
2230
+
2231
+ Returns the wxDataViewModel associated with the event.
2232
+ """
2233
+
2234
+ def GetPosition(self) -> wx.Point:
2235
+ """
2236
+ GetPosition() -> wx.Point
2237
+
2238
+ Returns the position of a context menu event in client coordinates.
2239
+ """
2240
+
2241
+ def GetValue(self) -> Any:
2242
+ """
2243
+ GetValue() -> Any
2244
+
2245
+ Returns a reference to a value.
2246
+ """
2247
+
2248
+ def IsEditCancelled(self) -> bool:
2249
+ """
2250
+ IsEditCancelled() -> bool
2251
+
2252
+ Can be used to determine whether the new value is going to be accepted
2253
+ in wxEVT_DATAVIEW_ITEM_EDITING_DONE handler.
2254
+ """
2255
+
2256
+ def SetColumn(self, col: int) -> None:
2257
+ """
2258
+ SetColumn(col) -> None
2259
+
2260
+ Sets the column index associated with this event.
2261
+ """
2262
+
2263
+ def SetValue(self, value: Any) -> None:
2264
+ """
2265
+ SetValue(value) -> None
2266
+
2267
+ Sets the value associated with this event.
2268
+ """
2269
+
2270
+ def SetDataObject(self, obj: wx.DataObject) -> None:
2271
+ """
2272
+ SetDataObject(obj) -> None
2273
+
2274
+ Set wxDataObject for data transfer within a drag operation.
2275
+ """
2276
+
2277
+ def GetDataFormat(self) -> wx.DataFormat:
2278
+ """
2279
+ GetDataFormat() -> wx.DataFormat
2280
+
2281
+ Gets the wxDataFormat during a drop operation.
2282
+ """
2283
+
2284
+ def GetDataSize(self) -> int:
2285
+ """
2286
+ GetDataSize() -> int
2287
+
2288
+ Gets the data size for a drop data transfer.
2289
+ """
2290
+
2291
+ def GetDataBuffer(self) -> Any:
2292
+ """
2293
+ GetDataBuffer() -> Any
2294
+
2295
+ Gets the data buffer for a drop data transfer
2296
+ """
2297
+
2298
+ def SetDragFlags(self, flags: int) -> None:
2299
+ """
2300
+ SetDragFlags(flags) -> None
2301
+
2302
+ Specify the kind of the drag operation to perform.
2303
+ """
2304
+
2305
+ def GetDropEffect(self) -> wx.DragResult:
2306
+ """
2307
+ GetDropEffect() -> wx.DragResult
2308
+
2309
+ Returns the effect the user requested to happen to the dropped data.
2310
+ """
2311
+
2312
+ def GetCacheFrom(self) -> int:
2313
+ """
2314
+ GetCacheFrom() -> int
2315
+
2316
+ Return the first row that will be displayed.
2317
+ """
2318
+
2319
+ def GetCacheTo(self) -> int:
2320
+ """
2321
+ GetCacheTo() -> int
2322
+
2323
+ Return the last row that will be displayed.
2324
+ """
2325
+
2326
+ def GetProposedDropIndex(self) -> int:
2327
+ """
2328
+ GetProposedDropIndex() -> int
2329
+
2330
+ Returns the index of the child item at which an item currently being
2331
+ dragged would be dropped.
2332
+ """
2333
+
2334
+ def GetItem(self) -> DataViewItem:
2335
+ """
2336
+ GetItem() -> DataViewItem
2337
+
2338
+ Returns the item affected by the event.
2339
+ """
2340
+
2341
+ def SetPosition(self, x: int, y: int) -> None:
2342
+ """
2343
+ SetPosition(x, y) -> None
2344
+ """
2345
+
2346
+ def SetCache(self, from_: int, to_: int) -> None:
2347
+ """
2348
+ SetCache(from_, to_) -> None
2349
+ """
2350
+
2351
+ def GetDataObject(self) -> wx.DataObject:
2352
+ """
2353
+ GetDataObject() -> wx.DataObject
2354
+ """
2355
+
2356
+ def SetDataFormat(self, format: wx.DataFormat) -> None:
2357
+ """
2358
+ SetDataFormat(format) -> None
2359
+ """
2360
+
2361
+ def SetDataSize(self, size: int) -> None:
2362
+ """
2363
+ SetDataSize(size) -> None
2364
+ """
2365
+
2366
+ def SetDataBuffer(self, buf: Any) -> None:
2367
+ """
2368
+ SetDataBuffer(buf) -> None
2369
+ """
2370
+
2371
+ def GetDragFlags(self) -> int:
2372
+ """
2373
+ GetDragFlags() -> int
2374
+ """
2375
+
2376
+ def SetDropEffect(self, effect: Union[wx.DragResult, int]) -> None:
2377
+ """
2378
+ SetDropEffect(effect) -> None
2379
+ """
2380
+ @property
2381
+ def CacheFrom(self) -> int: ...
2382
+ @property
2383
+ def CacheTo(self) -> int: ...
2384
+ @property
2385
+ def Column(self) -> int: ...
2386
+ @Column.setter
2387
+ def Column(self, value: int, /) -> None: ...
2388
+ @property
2389
+ def DataBuffer(self) -> Any: ...
2390
+ @DataBuffer.setter
2391
+ def DataBuffer(self, value: Any, /) -> None: ...
2392
+ @property
2393
+ def DataFormat(self) -> wx.DataFormat: ...
2394
+ @DataFormat.setter
2395
+ def DataFormat(self, value: wx.DataFormat, /) -> None: ...
2396
+ @property
2397
+ def DataObject(self) -> wx.DataObject: ...
2398
+ @DataObject.setter
2399
+ def DataObject(self, value: wx.DataObject, /) -> None: ...
2400
+ @property
2401
+ def DataSize(self) -> int: ...
2402
+ @DataSize.setter
2403
+ def DataSize(self, value: int, /) -> None: ...
2404
+ @property
2405
+ def DataViewColumn(self) -> wx.dataview.DataViewColumn: ...
2406
+ @property
2407
+ def DragFlags(self) -> int: ...
2408
+ @DragFlags.setter
2409
+ def DragFlags(self, value: int, /) -> None: ...
2410
+ @property
2411
+ def DropEffect(self) -> wx.DragResult: ...
2412
+ @DropEffect.setter
2413
+ def DropEffect(self, value: Union[wx.DragResult, int], /) -> None: ...
2414
+ @property
2415
+ def Item(self) -> DataViewItem: ...
2416
+ @property
2417
+ def Model(self) -> DataViewModel: ...
2418
+ @property
2419
+ def Position(self) -> wx.Point: ...
2420
+ @Position.setter
2421
+ def Position(self, value: wx.Point, /) -> None: ...
2422
+ @property
2423
+ def ProposedDropIndex(self) -> int: ...
2424
+ @property
2425
+ def Value(self) -> Any: ...
2426
+ @Value.setter
2427
+ def Value(self, value: Any, /) -> None: ...
2428
+ # end of class DataViewEvent
2429
+
2430
+
2431
+ class DataViewValueAdjuster(wx.siplib.wrapper):
2432
+ """
2433
+ This class can be used with wxDataViewRenderer::SetValueAdjuster() to
2434
+ customize rendering of model values with standard renderers.
2435
+ """
2436
+
2437
+ def MakeHighlighted(self, value: Any) -> Any:
2438
+ """
2439
+ MakeHighlighted(value) -> Any
2440
+
2441
+ Change value for rendering when highlighted.
2442
+ """
2443
+ # end of class DataViewValueAdjuster
2444
+
2445
+
2446
+ class DataViewListCtrl(DataViewCtrl):
2447
+ """
2448
+ DataViewListCtrl() -> None
2449
+ DataViewListCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_ROW_LINES, validator=wx.DefaultValidator) -> None
2450
+
2451
+ This class is a wxDataViewCtrl which internally uses a
2452
+ wxDataViewListStore and forwards most of its API to that class.
2453
+ """
2454
+
2455
+ @overload
2456
+ 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=DV_ROW_LINES, validator: wx.Validator=wx.DefaultValidator) -> None:
2457
+ ...
2458
+
2459
+ @overload
2460
+ def __init__(self) -> None:
2461
+ """
2462
+ DataViewListCtrl() -> None
2463
+ DataViewListCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_ROW_LINES, validator=wx.DefaultValidator) -> None
2464
+
2465
+ This class is a wxDataViewCtrl which internally uses a
2466
+ wxDataViewListStore and forwards most of its API to that class.
2467
+ """
2468
+
2469
+ def GetStore(self) -> DataViewListStore:
2470
+ """
2471
+ GetStore() -> DataViewListStore
2472
+
2473
+ Returns the store.
2474
+ """
2475
+
2476
+ def GetSelectedRow(self) -> int:
2477
+ """
2478
+ GetSelectedRow() -> int
2479
+
2480
+ Returns index of the selected row or wxNOT_FOUND.
2481
+ """
2482
+
2483
+ def SelectRow(self, row: int) -> None:
2484
+ """
2485
+ SelectRow(row) -> None
2486
+
2487
+ Selects given row.
2488
+ """
2489
+
2490
+ def UnselectRow(self, row: int) -> None:
2491
+ """
2492
+ UnselectRow(row) -> None
2493
+
2494
+ Unselects given row.
2495
+ """
2496
+
2497
+ def IsRowSelected(self, row: int) -> bool:
2498
+ """
2499
+ IsRowSelected(row) -> bool
2500
+
2501
+ Returns true if row is selected.
2502
+ """
2503
+
2504
+ @overload
2505
+ def AppendColumn(self, column: DataViewColumn, varianttype: str) -> None:
2506
+ ...
2507
+
2508
+ @overload
2509
+ def AppendColumn(self, column: DataViewColumn) -> bool:
2510
+ """
2511
+ AppendColumn(column) -> bool
2512
+ AppendColumn(column, varianttype) -> None
2513
+
2514
+ Appends a column to the control and additionally appends a column to
2515
+ the store with the type string.
2516
+ """
2517
+
2518
+ def AppendTextColumn(self, label: str, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_LEFT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
2519
+ """
2520
+ AppendTextColumn(label, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_LEFT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
2521
+
2522
+ Appends a text column to the control and the store.
2523
+ """
2524
+
2525
+ def AppendToggleColumn(self, label: str, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_ACTIVATABLE, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_LEFT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
2526
+ """
2527
+ AppendToggleColumn(label, mode=DATAVIEW_CELL_ACTIVATABLE, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_LEFT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
2528
+
2529
+ Appends a toggle column to the control and the store.
2530
+ """
2531
+
2532
+ def AppendProgressColumn(self, label: str, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_LEFT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
2533
+ """
2534
+ AppendProgressColumn(label, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_LEFT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
2535
+
2536
+ Appends a progress column to the control and the store.
2537
+ """
2538
+
2539
+ def AppendIconTextColumn(self, label: str, mode: Union[DataViewCellMode, int]=DATAVIEW_CELL_INERT, width: int=wx.COL_WIDTH_DEFAULT, align: Union[wx.Alignment, int]=wx.ALIGN_LEFT, flags: int=DATAVIEW_COL_RESIZABLE) -> DataViewColumn:
2540
+ """
2541
+ AppendIconTextColumn(label, mode=DATAVIEW_CELL_INERT, width=wx.COL_WIDTH_DEFAULT, align=wx.ALIGN_LEFT, flags=DATAVIEW_COL_RESIZABLE) -> DataViewColumn
2542
+
2543
+ Appends an icon-and-text column to the control and the store.
2544
+ """
2545
+
2546
+ @overload
2547
+ def InsertColumn(self, pos: int, column: DataViewColumn, varianttype: str) -> None:
2548
+ ...
2549
+
2550
+ @overload
2551
+ def InsertColumn(self, pos: int, column: DataViewColumn) -> bool:
2552
+ """
2553
+ InsertColumn(pos, column) -> bool
2554
+ InsertColumn(pos, column, varianttype) -> None
2555
+
2556
+ Inserts a column to the control and additionally inserts a column to
2557
+ the store with the type string.
2558
+ """
2559
+
2560
+ @overload
2561
+ def PrependColumn(self, column: DataViewColumn, varianttype: str) -> None:
2562
+ ...
2563
+
2564
+ @overload
2565
+ def PrependColumn(self, column: DataViewColumn) -> bool:
2566
+ """
2567
+ PrependColumn(column) -> bool
2568
+ PrependColumn(column, varianttype) -> None
2569
+
2570
+ Prepends a column to the control and additionally prepends a column to
2571
+ the store with the type string.
2572
+ """
2573
+
2574
+ def AppendItem(self, values: List[Any], data: int=0) -> None:
2575
+ """
2576
+ AppendItem(values, data=0) -> None
2577
+
2578
+ Appends an item (i.e. a row) to the control.
2579
+ """
2580
+
2581
+ def PrependItem(self, values: List[Any], data: int=0) -> None:
2582
+ """
2583
+ PrependItem(values, data=0) -> None
2584
+
2585
+ Prepends an item (i.e. a row) to the control.
2586
+ """
2587
+
2588
+ def InsertItem(self, row: int, values: List[Any], data: int=0) -> None:
2589
+ """
2590
+ InsertItem(row, values, data=0) -> None
2591
+
2592
+ Inserts an item (i.e. a row) to the control.
2593
+ """
2594
+
2595
+ def DeleteItem(self, row: int) -> None:
2596
+ """
2597
+ DeleteItem(row) -> None
2598
+
2599
+ Delete the row at position row.
2600
+ """
2601
+
2602
+ def DeleteAllItems(self) -> None:
2603
+ """
2604
+ DeleteAllItems() -> None
2605
+
2606
+ Delete all items (= all rows).
2607
+ """
2608
+
2609
+ def GetItemCount(self) -> int:
2610
+ """
2611
+ GetItemCount() -> int
2612
+
2613
+ Returns the number of items (=rows) in the control.
2614
+ """
2615
+
2616
+ def GetItemData(self, item: DataViewItem) -> int:
2617
+ """
2618
+ GetItemData(item) -> int
2619
+
2620
+ Returns the client data associated with the item.
2621
+ """
2622
+
2623
+ def SetValue(self, value: Any, row: int, col: int) -> None:
2624
+ """
2625
+ SetValue(value, row, col) -> None
2626
+
2627
+ Sets the value in the store and update the control.
2628
+ """
2629
+
2630
+ def GetValue(self, row: int, col: int) -> Any:
2631
+ """
2632
+ GetValue(row, col) -> Any
2633
+
2634
+ Returns the value from the store.
2635
+ """
2636
+
2637
+ def SetTextValue(self, value: str, row: int, col: int) -> None:
2638
+ """
2639
+ SetTextValue(value, row, col) -> None
2640
+
2641
+ Sets the value in the store and update the control.
2642
+ """
2643
+
2644
+ def GetTextValue(self, row: int, col: int) -> str:
2645
+ """
2646
+ GetTextValue(row, col) -> str
2647
+
2648
+ Returns the value from the store.
2649
+ """
2650
+
2651
+ def SetToggleValue(self, value: bool, row: int, col: int) -> None:
2652
+ """
2653
+ SetToggleValue(value, row, col) -> None
2654
+
2655
+ Sets the value in the store and update the control.
2656
+ """
2657
+
2658
+ def GetToggleValue(self, row: int, col: int) -> bool:
2659
+ """
2660
+ GetToggleValue(row, col) -> bool
2661
+
2662
+ Returns the value from the store.
2663
+ """
2664
+
2665
+ def SetItemData(self, item: DataViewItem, data: int) -> None:
2666
+ """
2667
+ SetItemData(item, data) -> None
2668
+
2669
+ Associates a client data pointer with the given item.
2670
+ """
2671
+
2672
+ 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=DV_ROW_LINES, validator: wx.Validator=wx.DefaultValidator) -> bool:
2673
+ """
2674
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_ROW_LINES, validator=wx.DefaultValidator) -> bool
2675
+
2676
+ Creates the control and a wxDataViewListStore as its internal model.
2677
+ """
2678
+
2679
+ def ItemToRow(self, item: DataViewItem) -> int:
2680
+ """
2681
+ ItemToRow(item) -> int
2682
+
2683
+ Returns the position of given item or wxNOT_FOUND if it's not a valid
2684
+ item.
2685
+ """
2686
+
2687
+ def RowToItem(self, row: int) -> DataViewItem:
2688
+ """
2689
+ RowToItem(row) -> DataViewItem
2690
+
2691
+ Returns the wxDataViewItem at the given row.
2692
+ """
2693
+
2694
+ @staticmethod
2695
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2696
+ """
2697
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2698
+ """
2699
+ @property
2700
+ def ItemCount(self) -> int: ...
2701
+ @property
2702
+ def SelectedRow(self) -> int: ...
2703
+ @property
2704
+ def Store(self) -> DataViewListStore: ...
2705
+ # end of class DataViewListCtrl
2706
+
2707
+
2708
+ class DataViewListStore(DataViewIndexListModel):
2709
+ """
2710
+ DataViewListStore() -> None
2711
+
2712
+ wxDataViewListStore is a specialised wxDataViewModel for storing a
2713
+ simple table of data.
2714
+ """
2715
+
2716
+ def __init__(self) -> None:
2717
+ """
2718
+ DataViewListStore() -> None
2719
+
2720
+ wxDataViewListStore is a specialised wxDataViewModel for storing a
2721
+ simple table of data.
2722
+ """
2723
+
2724
+ def PrependColumn(self, varianttype: str) -> None:
2725
+ """
2726
+ PrependColumn(varianttype) -> None
2727
+
2728
+ Prepends a data column.
2729
+ """
2730
+
2731
+ def InsertColumn(self, pos: int, varianttype: str) -> None:
2732
+ """
2733
+ InsertColumn(pos, varianttype) -> None
2734
+
2735
+ Inserts a data column before pos.
2736
+ """
2737
+
2738
+ def AppendColumn(self, varianttype: str) -> None:
2739
+ """
2740
+ AppendColumn(varianttype) -> None
2741
+
2742
+ Appends a data column.
2743
+ """
2744
+
2745
+ def AppendItem(self, values: List[Any], data: int=0) -> None:
2746
+ """
2747
+ AppendItem(values, data=0) -> None
2748
+
2749
+ Appends an item (=row) and fills it with values.
2750
+ """
2751
+
2752
+ def PrependItem(self, values: List[Any], data: int=0) -> None:
2753
+ """
2754
+ PrependItem(values, data=0) -> None
2755
+
2756
+ Prepends an item (=row) and fills it with values.
2757
+ """
2758
+
2759
+ def InsertItem(self, row: int, values: List[Any], data: int=0) -> None:
2760
+ """
2761
+ InsertItem(row, values, data=0) -> None
2762
+
2763
+ Inserts an item (=row) and fills it with values.
2764
+ """
2765
+
2766
+ def DeleteItem(self, pos: int) -> None:
2767
+ """
2768
+ DeleteItem(pos) -> None
2769
+
2770
+ Delete the item (=row) at position pos.
2771
+ """
2772
+
2773
+ def DeleteAllItems(self) -> None:
2774
+ """
2775
+ DeleteAllItems() -> None
2776
+
2777
+ Delete all item (=all rows) in the store.
2778
+ """
2779
+
2780
+ def GetItemCount(self) -> int:
2781
+ """
2782
+ GetItemCount() -> int
2783
+
2784
+ Returns the number of items (=rows) in the control.
2785
+ """
2786
+
2787
+ def GetItemData(self, item: DataViewItem) -> int:
2788
+ """
2789
+ GetItemData(item) -> int
2790
+
2791
+ Returns the client data associated with the item.
2792
+ """
2793
+
2794
+ def SetItemData(self, item: DataViewItem, data: int) -> None:
2795
+ """
2796
+ SetItemData(item, data) -> None
2797
+
2798
+ Sets the client data associated with the item.
2799
+ """
2800
+
2801
+ def GetValueByRow(self, row: int, col: int) -> Any:
2802
+ """
2803
+ GetValueByRow(row, col) -> Any
2804
+
2805
+ Overridden from wxDataViewIndexListModel.
2806
+ """
2807
+
2808
+ def SetValueByRow(self, value: Any, row: int, col: int) -> bool:
2809
+ """
2810
+ SetValueByRow(value, row, col) -> bool
2811
+
2812
+ Overridden from wxDataViewIndexListModel.
2813
+ """
2814
+ @property
2815
+ def ItemCount(self) -> int: ...
2816
+ # end of class DataViewListStore
2817
+
2818
+
2819
+ class DataViewTreeCtrl(DataViewCtrl):
2820
+ """
2821
+ DataViewTreeCtrl() -> None
2822
+ DataViewTreeCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_NO_HEADER|DV_ROW_LINES, validator=wx.DefaultValidator) -> None
2823
+
2824
+ This class is a wxDataViewCtrl which internally uses a
2825
+ wxDataViewTreeStore and forwards most of its API to that class.
2826
+ """
2827
+
2828
+ @overload
2829
+ 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=DV_NO_HEADER|DV_ROW_LINES, validator: wx.Validator=wx.DefaultValidator) -> None:
2830
+ ...
2831
+
2832
+ @overload
2833
+ def __init__(self) -> None:
2834
+ """
2835
+ DataViewTreeCtrl() -> None
2836
+ DataViewTreeCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_NO_HEADER|DV_ROW_LINES, validator=wx.DefaultValidator) -> None
2837
+
2838
+ This class is a wxDataViewCtrl which internally uses a
2839
+ wxDataViewTreeStore and forwards most of its API to that class.
2840
+ """
2841
+
2842
+ def GetStore(self) -> DataViewTreeStore:
2843
+ """
2844
+ GetStore() -> DataViewTreeStore
2845
+
2846
+ Returns the store.
2847
+ """
2848
+
2849
+ def AppendContainer(self, parent: DataViewItem, text: str, icon: int=-1, expanded: int=-1, data: Optional[Any]=None) -> DataViewItem:
2850
+ """
2851
+ AppendContainer(parent, text, icon=-1, expanded=-1, data=None) -> DataViewItem
2852
+
2853
+ Appends a container to the given parent.
2854
+ """
2855
+
2856
+ def AppendItem(self, parent: DataViewItem, text: str, icon: int=-1, data: Optional[Any]=None) -> DataViewItem:
2857
+ """
2858
+ AppendItem(parent, text, icon=-1, data=None) -> DataViewItem
2859
+
2860
+ Appends an item to the given parent.
2861
+ """
2862
+
2863
+ 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=DV_NO_HEADER|DV_ROW_LINES, validator: wx.Validator=wx.DefaultValidator) -> bool:
2864
+ """
2865
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=DV_NO_HEADER|DV_ROW_LINES, validator=wx.DefaultValidator) -> bool
2866
+
2867
+ Creates the control and a wxDataViewTreeStore as its internal model.
2868
+ """
2869
+
2870
+ def DeleteAllItems(self) -> None:
2871
+ """
2872
+ DeleteAllItems() -> None
2873
+
2874
+ Calls the identical method from wxDataViewTreeStore.
2875
+ """
2876
+
2877
+ def DeleteChildren(self, item: DataViewItem) -> None:
2878
+ """
2879
+ DeleteChildren(item) -> None
2880
+
2881
+ Calls the identical method from wxDataViewTreeStore.
2882
+ """
2883
+
2884
+ def DeleteItem(self, item: DataViewItem) -> None:
2885
+ """
2886
+ DeleteItem(item) -> None
2887
+
2888
+ Calls the identical method from wxDataViewTreeStore.
2889
+ """
2890
+
2891
+ def GetChildCount(self, parent: DataViewItem) -> int:
2892
+ """
2893
+ GetChildCount(parent) -> int
2894
+
2895
+ Calls the identical method from wxDataViewTreeStore.
2896
+ """
2897
+
2898
+ def GetImageList(self) -> wx.ImageList:
2899
+ """
2900
+ GetImageList() -> wx.ImageList
2901
+
2902
+ Returns the image list.
2903
+ """
2904
+
2905
+ def GetItemData(self, item: DataViewItem) -> Any:
2906
+ """
2907
+ GetItemData(item) -> Any
2908
+
2909
+ Calls the identical method from wxDataViewTreeStore.
2910
+ """
2911
+
2912
+ def GetItemExpandedIcon(self, item: DataViewItem) -> wx.Icon:
2913
+ """
2914
+ GetItemExpandedIcon(item) -> wx.Icon
2915
+
2916
+ Calls the identical method from wxDataViewTreeStore.
2917
+ """
2918
+
2919
+ def GetItemIcon(self, item: DataViewItem) -> wx.Icon:
2920
+ """
2921
+ GetItemIcon(item) -> wx.Icon
2922
+
2923
+ Calls the identical method from wxDataViewTreeStore.
2924
+ """
2925
+
2926
+ def GetItemParent(self, item: DataViewItem) -> DataViewItem:
2927
+ """
2928
+ GetItemParent(item) -> DataViewItem
2929
+
2930
+ Returns the item's parent.
2931
+ """
2932
+
2933
+ def GetItemText(self, item: DataViewItem) -> str:
2934
+ """
2935
+ GetItemText(item) -> str
2936
+
2937
+ Calls the identical method from wxDataViewTreeStore.
2938
+ """
2939
+
2940
+ def GetNthChild(self, parent: DataViewItem, pos: int) -> DataViewItem:
2941
+ """
2942
+ GetNthChild(parent, pos) -> DataViewItem
2943
+
2944
+ Calls the identical method from wxDataViewTreeStore.
2945
+ """
2946
+
2947
+ def InsertContainer(self, parent: DataViewItem, previous: DataViewItem, text: str, icon: int=-1, expanded: int=-1, data: Optional[Any]=None) -> DataViewItem:
2948
+ """
2949
+ InsertContainer(parent, previous, text, icon=-1, expanded=-1, data=None) -> DataViewItem
2950
+
2951
+ Calls the same method from wxDataViewTreeStore but uses an index
2952
+ position in the image list instead of a wxIcon.
2953
+ """
2954
+
2955
+ def InsertItem(self, parent: DataViewItem, previous: DataViewItem, text: str, icon: int=-1, data: Optional[Any]=None) -> DataViewItem:
2956
+ """
2957
+ InsertItem(parent, previous, text, icon=-1, data=None) -> DataViewItem
2958
+
2959
+ Calls the same method from wxDataViewTreeStore but uses an index
2960
+ position in the image list instead of a wxIcon.
2961
+ """
2962
+
2963
+ def IsContainer(self, item: DataViewItem) -> bool:
2964
+ """
2965
+ IsContainer(item) -> bool
2966
+
2967
+ Returns true if item is a container.
2968
+ """
2969
+
2970
+ def PrependContainer(self, parent: DataViewItem, text: str, icon: int=-1, expanded: int=-1, data: Optional[Any]=None) -> DataViewItem:
2971
+ """
2972
+ PrependContainer(parent, text, icon=-1, expanded=-1, data=None) -> DataViewItem
2973
+
2974
+ Calls the same method from wxDataViewTreeStore but uses an index
2975
+ position in the image list instead of a wxIcon.
2976
+ """
2977
+
2978
+ def PrependItem(self, parent: DataViewItem, text: str, icon: int=-1, data: Optional[Any]=None) -> DataViewItem:
2979
+ """
2980
+ PrependItem(parent, text, icon=-1, data=None) -> DataViewItem
2981
+
2982
+ Calls the same method from wxDataViewTreeStore but uses an index
2983
+ position in the image list instead of a wxIcon.
2984
+ """
2985
+
2986
+ def SetImageList(self, imagelist: wx.ImageList) -> None:
2987
+ """
2988
+ SetImageList(imagelist) -> None
2989
+
2990
+ Sets the image list.
2991
+ """
2992
+
2993
+ def SetItemData(self, item: DataViewItem, data: Any) -> None:
2994
+ """
2995
+ SetItemData(item, data) -> None
2996
+
2997
+ Calls the identical method from wxDataViewTreeStore.
2998
+ """
2999
+
3000
+ def SetItemExpandedIcon(self, item: DataViewItem, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
3001
+ """
3002
+ SetItemExpandedIcon(item, icon) -> None
3003
+
3004
+ Calls the identical method from wxDataViewTreeStore.
3005
+ """
3006
+
3007
+ def SetItemIcon(self, item: DataViewItem, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
3008
+ """
3009
+ SetItemIcon(item, icon) -> None
3010
+
3011
+ Calls the identical method from wxDataViewTreeStore.
3012
+ """
3013
+
3014
+ def SetItemText(self, item: DataViewItem, text: str) -> None:
3015
+ """
3016
+ SetItemText(item, text) -> None
3017
+
3018
+ Calls the identical method from wxDataViewTreeStore.
3019
+ """
3020
+
3021
+ @staticmethod
3022
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
3023
+ """
3024
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
3025
+ """
3026
+ @property
3027
+ def ImageList(self) -> wx.ImageList: ...
3028
+ @ImageList.setter
3029
+ def ImageList(self, value: wx.ImageList, /) -> None: ...
3030
+ @property
3031
+ def Store(self) -> DataViewTreeStore: ...
3032
+ # end of class DataViewTreeCtrl
3033
+
3034
+
3035
+ class DataViewTreeStore(DataViewModel):
3036
+ """
3037
+ DataViewTreeStore() -> None
3038
+
3039
+ wxDataViewTreeStore is a specialised wxDataViewModel for storing
3040
+ simple trees very much like wxTreeCtrl does and it offers a similar
3041
+ API.
3042
+ """
3043
+
3044
+ def __init__(self) -> None:
3045
+ """
3046
+ DataViewTreeStore() -> None
3047
+
3048
+ wxDataViewTreeStore is a specialised wxDataViewModel for storing
3049
+ simple trees very much like wxTreeCtrl does and it offers a similar
3050
+ API.
3051
+ """
3052
+
3053
+ def AppendContainer(self, parent: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), expanded: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3054
+ """
3055
+ AppendContainer(parent, text, icon=wx.BitmapBundle(), expanded=wx.BitmapBundle(), data=None) -> DataViewItem
3056
+
3057
+ Append a container.
3058
+ """
3059
+
3060
+ def AppendItem(self, parent: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3061
+ """
3062
+ AppendItem(parent, text, icon=wx.BitmapBundle(), data=None) -> DataViewItem
3063
+
3064
+ Append an item.
3065
+ """
3066
+
3067
+ def DeleteAllItems(self) -> None:
3068
+ """
3069
+ DeleteAllItems() -> None
3070
+
3071
+ Delete all item in the model.
3072
+ """
3073
+
3074
+ def DeleteChildren(self, item: DataViewItem) -> None:
3075
+ """
3076
+ DeleteChildren(item) -> None
3077
+
3078
+ Delete all children of the item, but not the item itself.
3079
+ """
3080
+
3081
+ def DeleteItem(self, item: DataViewItem) -> None:
3082
+ """
3083
+ DeleteItem(item) -> None
3084
+
3085
+ Delete this item.
3086
+ """
3087
+
3088
+ def GetChildCount(self, parent: DataViewItem) -> int:
3089
+ """
3090
+ GetChildCount(parent) -> int
3091
+
3092
+ Return the number of children of item.
3093
+ """
3094
+
3095
+ def GetItemData(self, item: DataViewItem) -> Any:
3096
+ """
3097
+ GetItemData(item) -> Any
3098
+
3099
+ Returns the client data associated with the item.
3100
+ """
3101
+
3102
+ def GetItemExpandedIcon(self, item: DataViewItem) -> wx.Icon:
3103
+ """
3104
+ GetItemExpandedIcon(item) -> wx.Icon
3105
+
3106
+ Returns the icon to display in expanded containers.
3107
+ """
3108
+
3109
+ def GetItemIcon(self, item: DataViewItem) -> wx.Icon:
3110
+ """
3111
+ GetItemIcon(item) -> wx.Icon
3112
+
3113
+ Returns the icon of the item.
3114
+ """
3115
+
3116
+ def GetItemText(self, item: DataViewItem) -> str:
3117
+ """
3118
+ GetItemText(item) -> str
3119
+
3120
+ Returns the text of the item.
3121
+ """
3122
+
3123
+ def GetNthChild(self, parent: DataViewItem, pos: int) -> DataViewItem:
3124
+ """
3125
+ GetNthChild(parent, pos) -> DataViewItem
3126
+
3127
+ Returns the nth child item of item.
3128
+ """
3129
+
3130
+ def InsertContainer(self, parent: DataViewItem, previous: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), expanded: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3131
+ """
3132
+ InsertContainer(parent, previous, text, icon=wx.BitmapBundle(), expanded=wx.BitmapBundle(), data=None) -> DataViewItem
3133
+
3134
+ Inserts a container after previous.
3135
+ """
3136
+
3137
+ def InsertItem(self, parent: DataViewItem, previous: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3138
+ """
3139
+ InsertItem(parent, previous, text, icon=wx.BitmapBundle(), data=None) -> DataViewItem
3140
+
3141
+ Inserts an item after previous.
3142
+ """
3143
+
3144
+ def PrependContainer(self, parent: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), expanded: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3145
+ """
3146
+ PrependContainer(parent, text, icon=wx.BitmapBundle(), expanded=wx.BitmapBundle(), data=None) -> DataViewItem
3147
+
3148
+ Inserts a container before the first child item or parent.
3149
+ """
3150
+
3151
+ def PrependItem(self, parent: DataViewItem, text: str, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), data: Optional[Any]=None) -> DataViewItem:
3152
+ """
3153
+ PrependItem(parent, text, icon=wx.BitmapBundle(), data=None) -> DataViewItem
3154
+
3155
+ Inserts an item before the first child item or parent.
3156
+ """
3157
+
3158
+ def SetItemData(self, item: DataViewItem, data: Any) -> None:
3159
+ """
3160
+ SetItemData(item, data) -> None
3161
+
3162
+ Sets the client data associated with the item.
3163
+ """
3164
+
3165
+ def SetItemExpandedIcon(self, item: DataViewItem, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
3166
+ """
3167
+ SetItemExpandedIcon(item, icon) -> None
3168
+
3169
+ Sets the expanded icon for the item.
3170
+ """
3171
+
3172
+ def SetItemIcon(self, item: DataViewItem, icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]) -> None:
3173
+ """
3174
+ SetItemIcon(item, icon) -> None
3175
+
3176
+ Sets the icon for the item.
3177
+ """
3178
+ # end of class DataViewTreeStore
3179
+
3180
+
3181
+ class DataViewItemArray(wx.siplib.wrapper):
3182
+ def __len__(self) -> int: ...
3183
+ def __getitem__(self, index: int, /) -> DataViewItem: ...
3184
+ def __contains__(self, obj: DataViewItem, /) -> bool: ...
3185
+ def __iter__(self) -> Iterator[DataViewItem]: ...
3186
+ def index(self, obj: DataViewItem) -> int: ...
3187
+ def append(self, obj: DataViewItem) -> None: ...
3188
+
3189
+ NullDataViewItem = DataViewItem()
3190
+ class DataViewItemObjectMapper(object):
3191
+ """
3192
+ This class provides a mechanism for mapping between Python objects and the
3193
+ :class:`DataViewItem` objects used by the :class:`DataViewModel` for tracking the items in
3194
+ the view. The ID used for the item is the id() of the Python object. Use
3195
+ :meth:`ObjectToItem` to create a :class:`DataViewItem` using a Python object as its ID,
3196
+ and use :meth:`ItemToObject` to fetch that Python object again later for a given
3197
+ :class:`DataViewItem`.
3198
+
3199
+ By default a regular dictionary is used to implement the ID to object
3200
+ mapping. Optionally a WeakValueDictionary can be useful when there will be
3201
+ a high turnover of objects and maintaining an extra reference to the
3202
+ objects would be unwise. If weak references are used then the objects
3203
+ associated with data items must be weak-referenceable. (Things like
3204
+ stock lists and dictionaries are not.) See :meth:`UseWeakRefs`.
3205
+
3206
+ This class is used in :class:`PyDataViewModel` as a mixin for convenience.
3207
+ """
3208
+
3209
+ def __init__(self):
3210
+ pass
3211
+
3212
+ def ObjectToItem(self, obj):
3213
+ """
3214
+ Create a :class:`DataViewItem` for the object, and remember the ID-->obj mapping.
3215
+ """
3216
+ pass
3217
+
3218
+ def ItemToObject(self, item):
3219
+ """
3220
+ Retrieve the object that was used to create an item.
3221
+ """
3222
+ pass
3223
+
3224
+ def UseWeakRefs(self, flag):
3225
+ """
3226
+ Switch to or from using a weak value dictionary for keeping the ID to
3227
+ object map.
3228
+ """
3229
+ pass
3230
+ class PyDataViewModel(DataViewModel, DataViewItemObjectMapper):
3231
+ """
3232
+ A convenience class that is a :class:`DataViewModel` combined with an object mapper.
3233
+ """
3234
+
3235
+ def __init__(self):
3236
+ pass
3237
+
3238
+ PyDataViewIndexListModel = wx.deprecated(DataViewIndexListModel)
3239
+ PyDataViewVirtualListModel = wx.deprecated(DataViewVirtualListModel)
3240
+
3241
+ PyDataViewCustomRenderer = wx.deprecated(DataViewCustomRenderer,
3242
+ "Use DataViewCustomRenderer instead")
3243
+
3244
+ EVT_DATAVIEW_SELECTION_CHANGED: wx.PyEventBinder[DataViewEvent]
3245
+ EVT_DATAVIEW_ITEM_ACTIVATED: wx.PyEventBinder[DataViewEvent]
3246
+ EVT_DATAVIEW_ITEM_COLLAPSED: wx.PyEventBinder[DataViewEvent]
3247
+ EVT_DATAVIEW_ITEM_EXPANDED: wx.PyEventBinder[DataViewEvent]
3248
+ EVT_DATAVIEW_ITEM_COLLAPSING: wx.PyEventBinder[DataViewEvent]
3249
+ EVT_DATAVIEW_ITEM_EXPANDING: wx.PyEventBinder[DataViewEvent]
3250
+ EVT_DATAVIEW_ITEM_START_EDITING: wx.PyEventBinder[DataViewEvent]
3251
+ EVT_DATAVIEW_ITEM_EDITING_STARTED: wx.PyEventBinder[DataViewEvent]
3252
+ EVT_DATAVIEW_ITEM_EDITING_DONE: wx.PyEventBinder[DataViewEvent]
3253
+ EVT_DATAVIEW_ITEM_VALUE_CHANGED: wx.PyEventBinder[DataViewEvent]
3254
+ EVT_DATAVIEW_ITEM_CONTEXT_MENU: wx.PyEventBinder[DataViewEvent]
3255
+ EVT_DATAVIEW_COLUMN_HEADER_CLICK: wx.PyEventBinder[DataViewEvent]
3256
+ EVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK: wx.PyEventBinder[DataViewEvent]
3257
+ EVT_DATAVIEW_COLUMN_SORTED: wx.PyEventBinder[DataViewEvent]
3258
+ EVT_DATAVIEW_COLUMN_REORDERED: wx.PyEventBinder[DataViewEvent]
3259
+ EVT_DATAVIEW_ITEM_BEGIN_DRAG: wx.PyEventBinder[DataViewEvent]
3260
+ EVT_DATAVIEW_ITEM_DROP_POSSIBLE: wx.PyEventBinder[DataViewEvent]
3261
+ EVT_DATAVIEW_ITEM_DROP: wx.PyEventBinder[DataViewEvent]
3262
+ EVT_DATAVIEW_CACHE_HINT: wx.PyEventBinder[DataViewEvent]
3263
+
3264
+ # deprecated wxEVT aliases
3265
+ wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED = wxEVT_DATAVIEW_SELECTION_CHANGED
3266
+ wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED = wxEVT_DATAVIEW_ITEM_ACTIVATED
3267
+ wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED = wxEVT_DATAVIEW_ITEM_COLLAPSED
3268
+ wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED = wxEVT_DATAVIEW_ITEM_EXPANDED
3269
+ wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING = wxEVT_DATAVIEW_ITEM_COLLAPSING
3270
+ wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING = wxEVT_DATAVIEW_ITEM_EXPANDING
3271
+ wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING = wxEVT_DATAVIEW_ITEM_START_EDITING
3272
+ wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED = wxEVT_DATAVIEW_ITEM_EDITING_STARTED
3273
+ wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE = wxEVT_DATAVIEW_ITEM_EDITING_DONE
3274
+ wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED = wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
3275
+ wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU = wxEVT_DATAVIEW_ITEM_CONTEXT_MENU
3276
+ wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK = wxEVT_DATAVIEW_COLUMN_HEADER_CLICK
3277
+ wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK = wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK
3278
+ wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED = wxEVT_DATAVIEW_COLUMN_SORTED
3279
+ wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED = wxEVT_DATAVIEW_COLUMN_REORDERED
3280
+ wxEVT_COMMAND_DATAVIEW_CACHE_HINT = wxEVT_DATAVIEW_CACHE_HINT
3281
+ wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG = wxEVT_DATAVIEW_ITEM_BEGIN_DRAG
3282
+ wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE = wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE
3283
+ wxEVT_COMMAND_DATAVIEW_ITEM_DROP = wxEVT_DATAVIEW_ITEM_DROP
3284
+ #-- end-dataview --#
3285
+ #-- begin-treelist --#
3286
+ import wx.siplib
3287
+ TL_SINGLE: int
3288
+ TL_MULTIPLE: int
3289
+ TL_CHECKBOX: int
3290
+ TL_3STATE: int
3291
+ TL_USER_3STATE: int
3292
+ TL_NO_HEADER: int
3293
+ TL_DEFAULT_STYLE: int
3294
+ wxEVT_TREELIST_SELECTION_CHANGED: int
3295
+ wxEVT_TREELIST_ITEM_EXPANDING: int
3296
+ wxEVT_TREELIST_ITEM_EXPANDED: int
3297
+ wxEVT_TREELIST_ITEM_CHECKED: int
3298
+ wxEVT_TREELIST_ITEM_ACTIVATED: int
3299
+ wxEVT_TREELIST_ITEM_CONTEXT_MENU: int
3300
+ wxEVT_TREELIST_COLUMN_SORTED: int
3301
+
3302
+ class TreeListItem(wx.siplib.wrapper):
3303
+ """
3304
+ TreeListItem() -> None
3305
+
3306
+ Unique identifier of an item in wxTreeListCtrl.
3307
+ """
3308
+
3309
+ def __init__(self) -> None:
3310
+ """
3311
+ TreeListItem() -> None
3312
+
3313
+ Unique identifier of an item in wxTreeListCtrl.
3314
+ """
3315
+
3316
+ def IsOk(self) -> bool:
3317
+ """
3318
+ IsOk() -> bool
3319
+
3320
+ Return true if the item is valid.
3321
+ """
3322
+
3323
+ def __nonzero__(self) -> bool:
3324
+ """
3325
+ __nonzero__() -> bool
3326
+ """
3327
+
3328
+ def __bool__(self) -> bool:
3329
+ """
3330
+ __bool__() -> bool
3331
+ """
3332
+
3333
+ def __hash__(self) -> int:
3334
+ """
3335
+ __hash__() -> int
3336
+ """
3337
+
3338
+ def __eq__(self, other: TreeListItem, /) -> bool:
3339
+ """
3340
+ __eq__(other) -> bool
3341
+ """
3342
+
3343
+ def __ne__(self, other: TreeListItem, /) -> bool:
3344
+ """
3345
+ __ne__(other) -> bool
3346
+ """
3347
+ # end of class TreeListItem
3348
+
3349
+
3350
+ class TreeListItemComparator(wx.siplib.wrapper):
3351
+ """
3352
+ TreeListItemComparator() -> None
3353
+
3354
+ Class defining sort order for the items in wxTreeListCtrl.
3355
+ """
3356
+
3357
+ def __init__(self) -> None:
3358
+ """
3359
+ TreeListItemComparator() -> None
3360
+
3361
+ Class defining sort order for the items in wxTreeListCtrl.
3362
+ """
3363
+
3364
+ def Compare(self, treelist: TreeListCtrl, column: int, first: TreeListItem, second: TreeListItem) -> int:
3365
+ """
3366
+ Compare(treelist, column, first, second) -> int
3367
+
3368
+ Pure virtual function which must be overridden to define sort order.
3369
+ """
3370
+ # end of class TreeListItemComparator
3371
+
3372
+ TreeListCtrlNameStr: bytes
3373
+
3374
+ class TreeListCtrl(wx.Window):
3375
+ """
3376
+ TreeListCtrl() -> None
3377
+ TreeListCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=TL_DEFAULT_STYLE, name=TreeListCtrlNameStr) -> None
3378
+
3379
+ A control combining wxTreeCtrl and wxListCtrl features.
3380
+ """
3381
+
3382
+ @overload
3383
+ 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=TL_DEFAULT_STYLE, name: str=...) -> None:
3384
+ ...
3385
+
3386
+ @overload
3387
+ def __init__(self) -> None:
3388
+ """
3389
+ TreeListCtrl() -> None
3390
+ TreeListCtrl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=TL_DEFAULT_STYLE, name=TreeListCtrlNameStr) -> None
3391
+
3392
+ A control combining wxTreeCtrl and wxListCtrl features.
3393
+ """
3394
+ NO_IMAGE: int
3395
+
3396
+ def AssignImageList(self, imageList: wx.ImageList) -> None:
3397
+ """
3398
+ AssignImageList(imageList) -> None
3399
+
3400
+ Sets the image list and gives its ownership to the control.
3401
+ """
3402
+
3403
+ def SetImageList(self, imageList: wx.ImageList) -> None:
3404
+ """
3405
+ SetImageList(imageList) -> None
3406
+
3407
+ Sets the image list.
3408
+ """
3409
+
3410
+ def AppendColumn(self, title: str, width: int=wx.COL_WIDTH_AUTOSIZE, align: Union[wx.Alignment, int]=wx.ALIGN_LEFT, flags: int=wx.COL_RESIZABLE) -> int:
3411
+ """
3412
+ AppendColumn(title, width=wx.COL_WIDTH_AUTOSIZE, align=wx.ALIGN_LEFT, flags=wx.COL_RESIZABLE) -> int
3413
+
3414
+ Add a column with the given title and attributes.
3415
+ """
3416
+
3417
+ def GetColumnCount(self) -> int:
3418
+ """
3419
+ GetColumnCount() -> int
3420
+
3421
+ Return the total number of columns.
3422
+ """
3423
+
3424
+ def DeleteColumn(self, col: int) -> bool:
3425
+ """
3426
+ DeleteColumn(col) -> bool
3427
+
3428
+ Delete the column with the given index.
3429
+ """
3430
+
3431
+ def ClearColumns(self) -> None:
3432
+ """
3433
+ ClearColumns() -> None
3434
+
3435
+ Delete all columns.
3436
+ """
3437
+
3438
+ def SetColumnWidth(self, col: int, width: int) -> None:
3439
+ """
3440
+ SetColumnWidth(col, width) -> None
3441
+
3442
+ Change the width of the given column.
3443
+ """
3444
+
3445
+ def GetColumnWidth(self, col: int) -> int:
3446
+ """
3447
+ GetColumnWidth(col) -> int
3448
+
3449
+ Get the current width of the given column in pixels.
3450
+ """
3451
+
3452
+ def WidthFor(self, text: str) -> int:
3453
+ """
3454
+ WidthFor(text) -> int
3455
+
3456
+ Get the width appropriate for showing the given text.
3457
+ """
3458
+
3459
+ def AppendItem(self, parent: TreeListItem, text: str, imageClosed: int=-1, imageOpened: int=-1, data: Optional[Any]=None) -> TreeListItem:
3460
+ """
3461
+ AppendItem(parent, text, imageClosed=-1, imageOpened=-1, data=None) -> TreeListItem
3462
+
3463
+ Same as InsertItem() with wxTLI_LAST.
3464
+ """
3465
+
3466
+ def InsertItem(self, parent: TreeListItem, previous: TreeListItem, text: str, imageClosed: int=-1, imageOpened: int=-1, data: Optional[Any]=None) -> TreeListItem:
3467
+ """
3468
+ InsertItem(parent, previous, text, imageClosed=-1, imageOpened=-1, data=None) -> TreeListItem
3469
+
3470
+ Insert a new item into the tree.
3471
+ """
3472
+
3473
+ def PrependItem(self, parent: TreeListItem, text: str, imageClosed: int=-1, imageOpened: int=-1, data: Optional[Any]=None) -> TreeListItem:
3474
+ """
3475
+ PrependItem(parent, text, imageClosed=-1, imageOpened=-1, data=None) -> TreeListItem
3476
+
3477
+ Same as InsertItem() with wxTLI_FIRST.
3478
+ """
3479
+
3480
+ def DeleteItem(self, item: TreeListItem) -> None:
3481
+ """
3482
+ DeleteItem(item) -> None
3483
+
3484
+ Delete the specified item.
3485
+ """
3486
+
3487
+ def DeleteAllItems(self) -> None:
3488
+ """
3489
+ DeleteAllItems() -> None
3490
+
3491
+ Delete all tree items.
3492
+ """
3493
+
3494
+ def GetRootItem(self) -> TreeListItem:
3495
+ """
3496
+ GetRootItem() -> TreeListItem
3497
+
3498
+ Return the (never shown) root item.
3499
+ """
3500
+
3501
+ def GetItemParent(self, item: TreeListItem) -> TreeListItem:
3502
+ """
3503
+ GetItemParent(item) -> TreeListItem
3504
+
3505
+ Return the parent of the given item.
3506
+ """
3507
+
3508
+ def GetFirstChild(self, item: TreeListItem) -> TreeListItem:
3509
+ """
3510
+ GetFirstChild(item) -> TreeListItem
3511
+
3512
+ Return the first child of the given item.
3513
+ """
3514
+
3515
+ def GetNextSibling(self, item: TreeListItem) -> TreeListItem:
3516
+ """
3517
+ GetNextSibling(item) -> TreeListItem
3518
+
3519
+ Return the next sibling of the given item.
3520
+ """
3521
+
3522
+ def GetFirstItem(self) -> TreeListItem:
3523
+ """
3524
+ GetFirstItem() -> TreeListItem
3525
+
3526
+ Return the first item in the tree.
3527
+ """
3528
+
3529
+ def GetNextItem(self, item: TreeListItem) -> TreeListItem:
3530
+ """
3531
+ GetNextItem(item) -> TreeListItem
3532
+
3533
+ Get item after the given one in the depth-first tree-traversal order.
3534
+ """
3535
+
3536
+ def GetItemText(self, item: TreeListItem, col: int=0) -> str:
3537
+ """
3538
+ GetItemText(item, col=0) -> str
3539
+
3540
+ Return the text of the given item.
3541
+ """
3542
+
3543
+ @overload
3544
+ def SetItemText(self, item: TreeListItem, text: str) -> None:
3545
+ ...
3546
+
3547
+ @overload
3548
+ def SetItemText(self, item: TreeListItem, col: int, text: str) -> None:
3549
+ """
3550
+ SetItemText(item, col, text) -> None
3551
+ SetItemText(item, text) -> None
3552
+
3553
+ Set the text of the specified column of the given item.
3554
+ """
3555
+
3556
+ def SetItemImage(self, item: TreeListItem, closed: int, opened: int=-1) -> None:
3557
+ """
3558
+ SetItemImage(item, closed, opened=-1) -> None
3559
+
3560
+ Set the images for the given item.
3561
+ """
3562
+
3563
+ def GetItemData(self, item: TreeListItem) -> Any:
3564
+ """
3565
+ GetItemData(item) -> Any
3566
+
3567
+ Get the data associated with the given item.
3568
+ """
3569
+
3570
+ def SetItemData(self, item: TreeListItem, data: Any) -> None:
3571
+ """
3572
+ SetItemData(item, data) -> None
3573
+
3574
+ Set the data associated with the given item.
3575
+ """
3576
+
3577
+ def Expand(self, item: TreeListItem) -> None:
3578
+ """
3579
+ Expand(item) -> None
3580
+
3581
+ Expand the given tree branch.
3582
+ """
3583
+
3584
+ def Collapse(self, item: TreeListItem) -> None:
3585
+ """
3586
+ Collapse(item) -> None
3587
+
3588
+ Collapse the given tree branch.
3589
+ """
3590
+
3591
+ def IsExpanded(self, item: TreeListItem) -> bool:
3592
+ """
3593
+ IsExpanded(item) -> bool
3594
+
3595
+ Return whether the given item is expanded.
3596
+ """
3597
+
3598
+ def GetSelection(self) -> TreeListItem:
3599
+ """
3600
+ GetSelection() -> TreeListItem
3601
+
3602
+ Return the currently selected item.
3603
+ """
3604
+
3605
+ def GetSelections(self) -> Any:
3606
+ """
3607
+ GetSelections() -> Any
3608
+
3609
+ Returns a list of all selected items. This method can be used in
3610
+ both single and multi-selection case.
3611
+ """
3612
+
3613
+ def Select(self, item: TreeListItem) -> None:
3614
+ """
3615
+ Select(item) -> None
3616
+
3617
+ Select the given item.
3618
+ """
3619
+
3620
+ def Unselect(self, item: TreeListItem) -> None:
3621
+ """
3622
+ Unselect(item) -> None
3623
+
3624
+ Deselect the given item.
3625
+ """
3626
+
3627
+ def IsSelected(self, item: TreeListItem) -> bool:
3628
+ """
3629
+ IsSelected(item) -> bool
3630
+
3631
+ Return true if the item is selected.
3632
+ """
3633
+
3634
+ def SelectAll(self) -> None:
3635
+ """
3636
+ SelectAll() -> None
3637
+
3638
+ Select all the control items.
3639
+ """
3640
+
3641
+ def UnselectAll(self) -> None:
3642
+ """
3643
+ UnselectAll() -> None
3644
+
3645
+ Deselect all the control items.
3646
+ """
3647
+
3648
+ def EnsureVisible(self, item: TreeListItem) -> None:
3649
+ """
3650
+ EnsureVisible(item) -> None
3651
+
3652
+ Call this to ensure that the given item is visible.
3653
+ """
3654
+
3655
+ def CheckItem(self, item: TreeListItem, state: Union[wx.CheckBoxState, int]=wx.CHK_CHECKED) -> None:
3656
+ """
3657
+ CheckItem(item, state=wx.CHK_CHECKED) -> None
3658
+
3659
+ Change the item checked state.
3660
+ """
3661
+
3662
+ def CheckItemRecursively(self, item: TreeListItem, state: Union[wx.CheckBoxState, int]=wx.CHK_CHECKED) -> None:
3663
+ """
3664
+ CheckItemRecursively(item, state=wx.CHK_CHECKED) -> None
3665
+
3666
+ Change the checked state of the given item and all its children.
3667
+ """
3668
+
3669
+ def UncheckItem(self, item: TreeListItem) -> None:
3670
+ """
3671
+ UncheckItem(item) -> None
3672
+
3673
+ Uncheck the given item.
3674
+ """
3675
+
3676
+ def UpdateItemParentStateRecursively(self, item: TreeListItem) -> None:
3677
+ """
3678
+ UpdateItemParentStateRecursively(item) -> None
3679
+
3680
+ Update the state of the parent item to reflect the checked state of
3681
+ its children.
3682
+ """
3683
+
3684
+ def GetCheckedState(self, item: TreeListItem) -> wx.CheckBoxState:
3685
+ """
3686
+ GetCheckedState(item) -> wx.CheckBoxState
3687
+
3688
+ Return the checked state of the item.
3689
+ """
3690
+
3691
+ def AreAllChildrenInState(self, item: TreeListItem, state: Union[wx.CheckBoxState, int]) -> bool:
3692
+ """
3693
+ AreAllChildrenInState(item, state) -> bool
3694
+
3695
+ Return true if all children of the given item are in the specified
3696
+ state.
3697
+ """
3698
+
3699
+ def SetSortColumn(self, col: int, ascendingOrder: bool=True) -> None:
3700
+ """
3701
+ SetSortColumn(col, ascendingOrder=True) -> None
3702
+
3703
+ Set the column to use for sorting and the order in which to sort.
3704
+ """
3705
+
3706
+ def GetSortColumn(self) -> Tuple[bool, int, bool]:
3707
+ """
3708
+ GetSortColumn() -> Tuple[bool, int, bool]
3709
+
3710
+ Return the column currently used for sorting, if any.
3711
+ """
3712
+
3713
+ def SetItemComparator(self, comparator: TreeListItemComparator) -> None:
3714
+ """
3715
+ SetItemComparator(comparator) -> None
3716
+
3717
+ Set the object to use for comparing the items.
3718
+ """
3719
+
3720
+ def GetView(self) -> wx.Window:
3721
+ """
3722
+ GetView() -> wx.Window
3723
+
3724
+ Return the view part of this control as a wxWindow.
3725
+ """
3726
+
3727
+ def GetDataView(self) -> DataViewCtrl:
3728
+ """
3729
+ GetDataView() -> DataViewCtrl
3730
+
3731
+ Return the view part of this control as wxDataViewCtrl.
3732
+ """
3733
+
3734
+ 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=TL_DEFAULT_STYLE, name: str=...) -> bool:
3735
+ """
3736
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=TL_DEFAULT_STYLE, name=TreeListCtrlNameStr) -> bool
3737
+
3738
+ Create the control window.
3739
+ """
3740
+
3741
+ @staticmethod
3742
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
3743
+ """
3744
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
3745
+ """
3746
+ @property
3747
+ def ColumnCount(self) -> int: ...
3748
+ @property
3749
+ def DataView(self) -> DataViewCtrl: ...
3750
+ @property
3751
+ def FirstItem(self) -> TreeListItem: ...
3752
+ @property
3753
+ def RootItem(self) -> TreeListItem: ...
3754
+ @property
3755
+ def Selection(self) -> TreeListItem: ...
3756
+ @property
3757
+ def Selections(self) -> Any: ...
3758
+ @property
3759
+ def View(self) -> wx.Window: ...
3760
+ @property
3761
+ def SortColumn(self) -> Tuple[bool, int, bool]: ...
3762
+ @SortColumn.setter
3763
+ def SortColumn(self, value: int, /) -> None: ...
3764
+ # end of class TreeListCtrl
3765
+
3766
+
3767
+ class TreeListEvent(wx.NotifyEvent):
3768
+ """
3769
+ TreeListEvent() -> None
3770
+
3771
+ Event generated by wxTreeListCtrl.
3772
+ """
3773
+
3774
+ def __init__(self) -> None:
3775
+ """
3776
+ TreeListEvent() -> None
3777
+
3778
+ Event generated by wxTreeListCtrl.
3779
+ """
3780
+
3781
+ def GetItem(self) -> TreeListItem:
3782
+ """
3783
+ GetItem() -> TreeListItem
3784
+
3785
+ Return the item affected by the event.
3786
+ """
3787
+
3788
+ def GetOldCheckedState(self) -> wx.CheckBoxState:
3789
+ """
3790
+ GetOldCheckedState() -> wx.CheckBoxState
3791
+
3792
+ Return the previous state of the item checkbox.
3793
+ """
3794
+
3795
+ def GetColumn(self) -> int:
3796
+ """
3797
+ GetColumn() -> int
3798
+
3799
+ Return the column affected by the event.
3800
+ """
3801
+ @property
3802
+ def Column(self) -> int: ...
3803
+ @property
3804
+ def Item(self) -> TreeListItem: ...
3805
+ @property
3806
+ def OldCheckedState(self) -> wx.CheckBoxState: ...
3807
+ # end of class TreeListEvent
3808
+
3809
+ TLI_FIRST: TreeListItem
3810
+ TLI_LAST: TreeListItem
3811
+
3812
+ EVT_TREELIST_SELECTION_CHANGED: wx.PyEventBinder[Any]
3813
+ EVT_TREELIST_ITEM_EXPANDING: wx.PyEventBinder[Any]
3814
+ EVT_TREELIST_ITEM_EXPANDED: wx.PyEventBinder[Any]
3815
+ EVT_TREELIST_ITEM_CHECKED: wx.PyEventBinder[Any]
3816
+ EVT_TREELIST_ITEM_ACTIVATED: wx.PyEventBinder[Any]
3817
+ EVT_TREELIST_ITEM_CONTEXT_MENU: wx.PyEventBinder[Any]
3818
+ EVT_TREELIST_COLUMN_SORTED: wx.PyEventBinder[Any]
3819
+
3820
+ # deprecated wxEVT aliases
3821
+ wxEVT_COMMAND_TREELIST_SELECTION_CHANGED = wxEVT_TREELIST_SELECTION_CHANGED
3822
+ wxEVT_COMMAND_TREELIST_ITEM_EXPANDING = wxEVT_TREELIST_ITEM_EXPANDING
3823
+ wxEVT_COMMAND_TREELIST_ITEM_EXPANDED = wxEVT_TREELIST_ITEM_EXPANDED
3824
+ wxEVT_COMMAND_TREELIST_ITEM_CHECKED = wxEVT_TREELIST_ITEM_CHECKED
3825
+ wxEVT_COMMAND_TREELIST_ITEM_ACTIVATED = wxEVT_TREELIST_ITEM_ACTIVATED
3826
+ wxEVT_COMMAND_TREELIST_ITEM_CONTEXT_MENU = wxEVT_TREELIST_ITEM_CONTEXT_MENU
3827
+ wxEVT_COMMAND_TREELIST_COLUMN_SORTED = wxEVT_TREELIST_COLUMN_SORTED
3828
+ #-- end-treelist --#