wxPython 4.3.2__cp315-cp315-win_arm64.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 (471) 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_arm64.pyd +0 -0
  7. wx/_aui.cp315-win_arm64.pyd +0 -0
  8. wx/_core.cp315-win_arm64.pyd +0 -0
  9. wx/_dataview.cp315-win_arm64.pyd +0 -0
  10. wx/_glcanvas.cp315-win_arm64.pyd +0 -0
  11. wx/_grid.cp315-win_arm64.pyd +0 -0
  12. wx/_html.cp315-win_arm64.pyd +0 -0
  13. wx/_html2.cp315-win_arm64.pyd +0 -0
  14. wx/_media.cp315-win_arm64.pyd +0 -0
  15. wx/_msw.cp315-win_arm64.pyd +0 -0
  16. wx/_propgrid.cp315-win_arm64.pyd +0 -0
  17. wx/_ribbon.cp315-win_arm64.pyd +0 -0
  18. wx/_richtext.cp315-win_arm64.pyd +0 -0
  19. wx/_stc.cp315-win_arm64.pyd +0 -0
  20. wx/_xml.cp315-win_arm64.pyd +0 -0
  21. wx/_xrc.cp315-win_arm64.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/locale/af/LC_MESSAGES/wxstd.mo +0 -0
  330. wx/locale/an/LC_MESSAGES/wxstd.mo +0 -0
  331. wx/locale/ar/LC_MESSAGES/wxstd.mo +0 -0
  332. wx/locale/ca/LC_MESSAGES/wxstd.mo +0 -0
  333. wx/locale/ca@valencia/LC_MESSAGES/wxstd.mo +0 -0
  334. wx/locale/co/LC_MESSAGES/wxstd.mo +0 -0
  335. wx/locale/cs/LC_MESSAGES/wxstd.mo +0 -0
  336. wx/locale/da/LC_MESSAGES/wxstd.mo +0 -0
  337. wx/locale/de/LC_MESSAGES/wxstd.mo +0 -0
  338. wx/locale/el/LC_MESSAGES/wxstd.mo +0 -0
  339. wx/locale/es/LC_MESSAGES/wxstd.mo +0 -0
  340. wx/locale/eu/LC_MESSAGES/wxstd.mo +0 -0
  341. wx/locale/fa_IR/LC_MESSAGES/wxstd.mo +0 -0
  342. wx/locale/fi/LC_MESSAGES/wxstd.mo +0 -0
  343. wx/locale/fr/LC_MESSAGES/wxstd.mo +0 -0
  344. wx/locale/gl_ES/LC_MESSAGES/wxstd.mo +0 -0
  345. wx/locale/hi/LC_MESSAGES/wxstd.mo +0 -0
  346. wx/locale/hr/LC_MESSAGES/wxstd.mo +0 -0
  347. wx/locale/hu/LC_MESSAGES/wxstd.mo +0 -0
  348. wx/locale/id/LC_MESSAGES/wxstd.mo +0 -0
  349. wx/locale/it/LC_MESSAGES/wxstd.mo +0 -0
  350. wx/locale/ja/LC_MESSAGES/wxstd.mo +0 -0
  351. wx/locale/ka/LC_MESSAGES/wxstd.mo +0 -0
  352. wx/locale/ko_KR/LC_MESSAGES/wxstd.mo +0 -0
  353. wx/locale/lt/LC_MESSAGES/wxstd.mo +0 -0
  354. wx/locale/lv/LC_MESSAGES/wxstd.mo +0 -0
  355. wx/locale/ms/LC_MESSAGES/wxstd.mo +0 -0
  356. wx/locale/nb/LC_MESSAGES/wxstd.mo +0 -0
  357. wx/locale/ne/LC_MESSAGES/wxstd.mo +0 -0
  358. wx/locale/nl/LC_MESSAGES/wxstd.mo +0 -0
  359. wx/locale/pl/LC_MESSAGES/wxstd.mo +0 -0
  360. wx/locale/pt/LC_MESSAGES/wxstd.mo +0 -0
  361. wx/locale/pt_BR/LC_MESSAGES/wxstd.mo +0 -0
  362. wx/locale/ro/LC_MESSAGES/wxstd.mo +0 -0
  363. wx/locale/ru/LC_MESSAGES/wxstd.mo +0 -0
  364. wx/locale/sk/LC_MESSAGES/wxstd.mo +0 -0
  365. wx/locale/sl/LC_MESSAGES/wxstd.mo +0 -0
  366. wx/locale/sq/LC_MESSAGES/wxstd.mo +0 -0
  367. wx/locale/sr/LC_MESSAGES/wxstd.mo +0 -0
  368. wx/locale/sv/LC_MESSAGES/wxstd.mo +0 -0
  369. wx/locale/ta/LC_MESSAGES/wxstd.mo +0 -0
  370. wx/locale/tr/LC_MESSAGES/wxstd.mo +0 -0
  371. wx/locale/uk/LC_MESSAGES/wxstd.mo +0 -0
  372. wx/locale/vi/LC_MESSAGES/wxstd.mo +0 -0
  373. wx/locale/zh_CN/LC_MESSAGES/wxstd.mo +0 -0
  374. wx/locale/zh_TW/LC_MESSAGES/wxstd.mo +0 -0
  375. wx/media.py +30 -0
  376. wx/media.pyi +272 -0
  377. wx/msw.py +16 -0
  378. wx/msw.pyi +91 -0
  379. wx/propgrid.py +498 -0
  380. wx/propgrid.pyi +7427 -0
  381. wx/py/CHANGES.txt +796 -0
  382. wx/py/Py.ico +0 -0
  383. wx/py/PyAlaCarte.py +34 -0
  384. wx/py/PyAlaMode.py +34 -0
  385. wx/py/PyAlaModeTest.py +33 -0
  386. wx/py/PyCrust.ico +0 -0
  387. wx/py/PyCrust.py +78 -0
  388. wx/py/PyCrust_16.png +0 -0
  389. wx/py/PyCrust_32.png +0 -0
  390. wx/py/PyFilling.py +35 -0
  391. wx/py/PyShell.py +78 -0
  392. wx/py/PySlices.ico +0 -0
  393. wx/py/PySlices.py +98 -0
  394. wx/py/PySlicesShell.py +94 -0
  395. wx/py/PySlices_16.png +0 -0
  396. wx/py/PySlices_32.png +0 -0
  397. wx/py/PyWrap.py +52 -0
  398. wx/py/README.txt +77 -0
  399. wx/py/__init__.py +20 -0
  400. wx/py/buffer.py +136 -0
  401. wx/py/crust.py +403 -0
  402. wx/py/crustslices.py +403 -0
  403. wx/py/dispatcher.py +259 -0
  404. wx/py/document.py +37 -0
  405. wx/py/editor.py +844 -0
  406. wx/py/editwindow.py +316 -0
  407. wx/py/filling.py +358 -0
  408. wx/py/frame.py +976 -0
  409. wx/py/images.py +212 -0
  410. wx/py/interpreter.py +161 -0
  411. wx/py/introspect.py +402 -0
  412. wx/py/magic.py +98 -0
  413. wx/py/parse.py +134 -0
  414. wx/py/path.py +36 -0
  415. wx/py/pseudo.py +99 -0
  416. wx/py/shell.py +1579 -0
  417. wx/py/sliceshell.py +3805 -0
  418. wx/py/tests/test_interpreter.py +71 -0
  419. wx/py/tests/test_introspect.py +810 -0
  420. wx/py/tests/test_pseudo.py +70 -0
  421. wx/py/tests/test_version.py +36 -0
  422. wx/py/tests/testall.py +22 -0
  423. wx/py/version.py +7 -0
  424. wx/py.typed +0 -0
  425. wx/ribbon.py +48 -0
  426. wx/ribbon.pyi +3099 -0
  427. wx/richtext.py +141 -0
  428. wx/richtext.pyi +13581 -0
  429. wx/siplib.cp315-win_arm64.pyd +0 -0
  430. wx/siplib.pyi +19 -0
  431. wx/stc.py +59 -0
  432. wx/stc.pyi +9918 -0
  433. wx/svg/__init__.py +363 -0
  434. wx/svg/_nanosvg.cp315-win_arm64.pyd +0 -0
  435. wx/tools/__init__.py +18 -0
  436. wx/tools/dbg.py +268 -0
  437. wx/tools/genaxmodule.py +50 -0
  438. wx/tools/helpviewer.py +92 -0
  439. wx/tools/img2img.py +85 -0
  440. wx/tools/img2png.py +54 -0
  441. wx/tools/img2py.py +306 -0
  442. wx/tools/img2xpm.py +54 -0
  443. wx/tools/pywxrc.py +951 -0
  444. wx/tools/wxget.py +254 -0
  445. wx/tools/wxget_docs_demo.py +183 -0
  446. wx/wxbase334u_net_vc140_arm64.dll +0 -0
  447. wx/wxbase334u_vc140_arm64.dll +0 -0
  448. wx/wxbase334u_xml_vc140_arm64.dll +0 -0
  449. wx/wxmsw334u_adv_vc140_arm64.dll +0 -0
  450. wx/wxmsw334u_aui_vc140_arm64.dll +0 -0
  451. wx/wxmsw334u_core_vc140_arm64.dll +0 -0
  452. wx/wxmsw334u_gl_vc140_arm64.dll +0 -0
  453. wx/wxmsw334u_html_vc140_arm64.dll +0 -0
  454. wx/wxmsw334u_media_vc140_arm64.dll +0 -0
  455. wx/wxmsw334u_propgrid_vc140_arm64.dll +0 -0
  456. wx/wxmsw334u_qa_vc140_arm64.dll +0 -0
  457. wx/wxmsw334u_ribbon_vc140_arm64.dll +0 -0
  458. wx/wxmsw334u_richtext_vc140_arm64.dll +0 -0
  459. wx/wxmsw334u_stc_vc140_arm64.dll +0 -0
  460. wx/wxmsw334u_webview_vc140_arm64.dll +0 -0
  461. wx/wxmsw334u_xrc_vc140_arm64.dll +0 -0
  462. wx/xml.py +18 -0
  463. wx/xml.pyi +728 -0
  464. wx/xrc.py +68 -0
  465. wx/xrc.pyi +896 -0
  466. wxpython-4.3.2.dist-info/METADATA +71 -0
  467. wxpython-4.3.2.dist-info/RECORD +471 -0
  468. wxpython-4.3.2.dist-info/WHEEL +5 -0
  469. wxpython-4.3.2.dist-info/entry_points.txt +13 -0
  470. wxpython-4.3.2.dist-info/licenses/LICENSE.txt +610 -0
  471. wxpython-4.3.2.dist-info/top_level.txt +1 -0
wx/ribbon.pyi ADDED
@@ -0,0 +1,3099 @@
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 `wx.ribbon` module contains a set of classes for writing a ribbon-based user interface.
44
+
45
+ At the most generic level, this is a combination of a tab control with a
46
+ toolbar. At a more functional level, it is similar to the user interface
47
+ present in recent versions of Microsoft Office and in Windows 10.
48
+ """
49
+ #-- begin-_ribbon --#
50
+
51
+ import wx
52
+ #-- end-_ribbon --#
53
+ #-- begin-ribbon_control --#
54
+
55
+ class RibbonControl(wx.Control):
56
+ """
57
+ RibbonControl() -> None
58
+ RibbonControl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=wx.ControlNameStr) -> None
59
+
60
+ wxRibbonControl serves as a base class for all controls which share
61
+ the ribbon characteristics of having a ribbon art provider, and
62
+ (optionally) non-continuous resizing.
63
+ """
64
+
65
+ @overload
66
+ 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:
67
+ ...
68
+
69
+ @overload
70
+ def __init__(self) -> None:
71
+ """
72
+ RibbonControl() -> None
73
+ RibbonControl(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, validator=wx.DefaultValidator, name=wx.ControlNameStr) -> None
74
+
75
+ wxRibbonControl serves as a base class for all controls which share
76
+ the ribbon characteristics of having a ribbon art provider, and
77
+ (optionally) non-continuous resizing.
78
+ """
79
+
80
+ def SetArtProvider(self, art: RibbonArtProvider) -> None:
81
+ """
82
+ SetArtProvider(art) -> None
83
+
84
+ Set the art provider to be used.
85
+ """
86
+
87
+ def GetArtProvider(self) -> RibbonArtProvider:
88
+ """
89
+ GetArtProvider() -> RibbonArtProvider
90
+
91
+ Get the art provider to be used.
92
+ """
93
+
94
+ def IsSizingContinuous(self) -> bool:
95
+ """
96
+ IsSizingContinuous() -> bool
97
+ """
98
+
99
+ @overload
100
+ def GetNextSmallerSize(self, direction: Union[wx.Orientation, int], relative_to: Union[wx.Size, _TwoInts]) -> wx.Size:
101
+ ...
102
+
103
+ @overload
104
+ def GetNextSmallerSize(self, direction: Union[wx.Orientation, int]) -> wx.Size:
105
+ """
106
+ GetNextSmallerSize(direction) -> wx.Size
107
+ GetNextSmallerSize(direction, relative_to) -> wx.Size
108
+
109
+ If sizing is not continuous, then return a suitable size for the
110
+ control which is smaller than the current size.
111
+ """
112
+
113
+ @overload
114
+ def GetNextLargerSize(self, direction: Union[wx.Orientation, int], relative_to: Union[wx.Size, _TwoInts]) -> wx.Size:
115
+ ...
116
+
117
+ @overload
118
+ def GetNextLargerSize(self, direction: Union[wx.Orientation, int]) -> wx.Size:
119
+ """
120
+ GetNextLargerSize(direction) -> wx.Size
121
+ GetNextLargerSize(direction, relative_to) -> wx.Size
122
+
123
+ If sizing is not continuous, then return a suitable size for the
124
+ control which is larger than the current size.
125
+ """
126
+
127
+ def Realize(self) -> bool:
128
+ """
129
+ Realize() -> bool
130
+
131
+ Perform initial size and layout calculations after children have been
132
+ added, and/or realize children.
133
+ """
134
+
135
+ def Realise(self) -> bool:
136
+ """
137
+ Realise() -> bool
138
+
139
+ Alias for Realize().
140
+ """
141
+
142
+ def GetAncestorRibbonBar(self) -> RibbonBar:
143
+ """
144
+ GetAncestorRibbonBar() -> RibbonBar
145
+
146
+ Get the first ancestor which is a wxRibbonBar (or derived) or nullptr
147
+ if not having such parent.
148
+ """
149
+
150
+ def GetBestSizeForParentSize(self, parentSize: Union[wx.Size, _TwoInts]) -> wx.Size:
151
+ """
152
+ GetBestSizeForParentSize(parentSize) -> wx.Size
153
+
154
+ Finds the best width and height given the parent's width and height.
155
+ """
156
+
157
+ def DismissKeyTips(self) -> None:
158
+ """
159
+ DismissKeyTips() -> None
160
+
161
+ Leaves the ancestor ribbon bar's keyboard access mode (if it is in
162
+ it).
163
+ """
164
+
165
+ @staticmethod
166
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
167
+ """
168
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
169
+ """
170
+ @property
171
+ def AncestorRibbonBar(self) -> RibbonBar: ...
172
+ @property
173
+ def ArtProvider(self) -> RibbonArtProvider: ...
174
+ @ArtProvider.setter
175
+ def ArtProvider(self, value: RibbonArtProvider, /) -> None: ...
176
+
177
+ def DoGetNextSmallerSize(self, direction: Union[wx.Orientation, int], relative_to: Union[wx.Size, _TwoInts]) -> wx.Size:
178
+ """
179
+ DoGetNextSmallerSize(direction, relative_to) -> wx.Size
180
+
181
+ Implementation of GetNextSmallerSize().
182
+ """
183
+
184
+ def DoGetNextLargerSize(self, direction: Union[wx.Orientation, int], relative_to: Union[wx.Size, _TwoInts]) -> wx.Size:
185
+ """
186
+ DoGetNextLargerSize(direction, relative_to) -> wx.Size
187
+
188
+ Implementation of GetNextLargerSize().
189
+ """
190
+ # end of class RibbonControl
191
+
192
+ #-- end-ribbon_control --#
193
+ #-- begin-ribbon_page --#
194
+
195
+ class RibbonPage(RibbonControl):
196
+ """
197
+ RibbonPage() -> None
198
+ RibbonPage(parent, id=wx.ID_ANY, label='', icon=wx.BitmapBundle(), style=0) -> None
199
+
200
+ Container for related ribbon panels, and a tab within a ribbon bar.
201
+ """
202
+
203
+ @overload
204
+ def __init__(self, parent: RibbonBar, id: int=wx.ID_ANY, label: str='', icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), style: int=0) -> None:
205
+ ...
206
+
207
+ @overload
208
+ def __init__(self) -> None:
209
+ """
210
+ RibbonPage() -> None
211
+ RibbonPage(parent, id=wx.ID_ANY, label='', icon=wx.BitmapBundle(), style=0) -> None
212
+
213
+ Container for related ribbon panels, and a tab within a ribbon bar.
214
+ """
215
+
216
+ def Create(self, parent: RibbonBar, id: int=wx.ID_ANY, label: str='', icon: Union[wx.BitmapBundle, wx.Bitmap, wx.Icon, wx.Image]=wx.BitmapBundle(), style: int=0) -> bool:
217
+ """
218
+ Create(parent, id=wx.ID_ANY, label='', icon=wx.BitmapBundle(), style=0) -> bool
219
+
220
+ Create a ribbon page in two-step ribbon page construction.
221
+ """
222
+
223
+ def SetArtProvider(self, art: RibbonArtProvider) -> None:
224
+ """
225
+ SetArtProvider(art) -> None
226
+
227
+ Set the art provider to be used.
228
+ """
229
+
230
+ def GetIcon(self) -> wx.Bitmap:
231
+ """
232
+ GetIcon() -> wx.Bitmap
233
+
234
+ Get the icon used for the page in the ribbon bar tab area (only
235
+ displayed if the ribbon bar is actually showing icons).
236
+ """
237
+
238
+ def GetIconBundle(self) -> wx.BitmapBundle:
239
+ """
240
+ GetIconBundle() -> wx.BitmapBundle
241
+
242
+ Get the icon bundle used for the page in the ribbon bar tab area (only
243
+ displayed if the ribbon bar is actually showing icons).
244
+ """
245
+
246
+ def SetSizeWithScrollButtonAdjustment(self, x: int, y: int, width: int, height: int) -> None:
247
+ """
248
+ SetSizeWithScrollButtonAdjustment(x, y, width, height) -> None
249
+
250
+ Set the size of the page and the external scroll buttons (if any).
251
+ """
252
+
253
+ def AdjustRectToIncludeScrollButtons(self, rect: Union[wx.Rect, _FourInts]) -> None:
254
+ """
255
+ AdjustRectToIncludeScrollButtons(rect) -> None
256
+
257
+ Expand a rectangle of the page to include external scroll buttons (if
258
+ any).
259
+ """
260
+
261
+ def DismissExpandedPanel(self) -> bool:
262
+ """
263
+ DismissExpandedPanel() -> bool
264
+
265
+ Dismiss the current externally expanded panel, if there is one.
266
+ """
267
+
268
+ def Realize(self) -> bool:
269
+ """
270
+ Realize() -> bool
271
+
272
+ Perform a full re-layout of all panels on the page.
273
+ """
274
+
275
+ def ScrollLines(self, lines: int) -> bool:
276
+ """
277
+ ScrollLines(lines) -> bool
278
+
279
+ Scroll the page by some amount up / down / left / right.
280
+ """
281
+
282
+ def ScrollPixels(self, pixels: int) -> bool:
283
+ """
284
+ ScrollPixels(pixels) -> bool
285
+
286
+ Scroll the page by a set number of pixels up / down / left / right.
287
+ """
288
+
289
+ def ScrollSections(self, sections: int) -> bool:
290
+ """
291
+ ScrollSections(sections) -> bool
292
+
293
+ Scroll the page by an entire child section.
294
+ """
295
+
296
+ def GetMajorAxis(self) -> wx.Orientation:
297
+ """
298
+ GetMajorAxis() -> wx.Orientation
299
+
300
+ Get the direction in which ribbon panels are stacked within the page.
301
+ """
302
+
303
+ def GetPanel(self, n: int) -> RibbonPanel:
304
+ """
305
+ GetPanel(n) -> RibbonPanel
306
+
307
+ Get a panel by index.
308
+ """
309
+
310
+ def GetPanelById(self, id: int) -> RibbonPanel:
311
+ """
312
+ GetPanelById(id) -> RibbonPanel
313
+
314
+ Get a panel by window ID.
315
+ """
316
+
317
+ def GetPanelCount(self) -> int:
318
+ """
319
+ GetPanelCount() -> int
320
+
321
+ Get the number of panels in this page.
322
+ """
323
+
324
+ @staticmethod
325
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
326
+ """
327
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
328
+ """
329
+ @property
330
+ def Icon(self) -> wx.Bitmap: ...
331
+ @property
332
+ def IconBundle(self) -> wx.BitmapBundle: ...
333
+ @property
334
+ def MajorAxis(self) -> wx.Orientation: ...
335
+ @property
336
+ def PanelCount(self) -> int: ...
337
+ # end of class RibbonPage
338
+
339
+ #-- end-ribbon_page --#
340
+ #-- begin-ribbon_panel --#
341
+ import wx.siplib
342
+
343
+ @final
344
+ class RibbonPanelOption(int, metaclass=wx.siplib.enumtype):
345
+ RIBBON_PANEL_NO_AUTO_MINIMISE: ClassVar[RibbonPanelOption]
346
+ RIBBON_PANEL_EXT_BUTTON: ClassVar[RibbonPanelOption]
347
+ RIBBON_PANEL_MINIMISE_BUTTON: ClassVar[RibbonPanelOption]
348
+ RIBBON_PANEL_STRETCH: ClassVar[RibbonPanelOption]
349
+ RIBBON_PANEL_FLEXIBLE: ClassVar[RibbonPanelOption]
350
+ RIBBON_PANEL_DEFAULT_STYLE: ClassVar[RibbonPanelOption]
351
+ RIBBON_PANEL_NO_AUTO_MINIMISE: RibbonPanelOption
352
+ RIBBON_PANEL_EXT_BUTTON: RibbonPanelOption
353
+ RIBBON_PANEL_MINIMISE_BUTTON: RibbonPanelOption
354
+ RIBBON_PANEL_STRETCH: RibbonPanelOption
355
+ RIBBON_PANEL_FLEXIBLE: RibbonPanelOption
356
+ RIBBON_PANEL_DEFAULT_STYLE: RibbonPanelOption
357
+ wxEVT_RIBBONPANEL_EXTBUTTON_ACTIVATED: int
358
+
359
+ class RibbonPanel(RibbonControl):
360
+ """
361
+ RibbonPanel() -> None
362
+ RibbonPanel(parent, id=wx.ID_ANY, label='', minimised_icon=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_PANEL_DEFAULT_STYLE) -> None
363
+
364
+ Serves as a container for a group of (ribbon) controls.
365
+ """
366
+
367
+ @overload
368
+ def __init__(self, parent: wx.Window, id: int=wx.ID_ANY, label: str='', minimised_icon: wx.Bitmap=wx.NullBitmap, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=RIBBON_PANEL_DEFAULT_STYLE) -> None:
369
+ ...
370
+
371
+ @overload
372
+ def __init__(self) -> None:
373
+ """
374
+ RibbonPanel() -> None
375
+ RibbonPanel(parent, id=wx.ID_ANY, label='', minimised_icon=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_PANEL_DEFAULT_STYLE) -> None
376
+
377
+ Serves as a container for a group of (ribbon) controls.
378
+ """
379
+
380
+ def Create(self, parent: wx.Window, id: int=wx.ID_ANY, label: str='', icon: wx.Bitmap=wx.NullBitmap, pos: Union[wx.Point, _TwoInts]=wx.DefaultPosition, size: Union[wx.Size, _TwoInts]=wx.DefaultSize, style: int=RIBBON_PANEL_DEFAULT_STYLE) -> bool:
381
+ """
382
+ Create(parent, id=wx.ID_ANY, label='', icon=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_PANEL_DEFAULT_STYLE) -> bool
383
+
384
+ Create a ribbon panel in two-step ribbon panel construction.
385
+ """
386
+
387
+ def GetMinimisedIcon(self) -> wx.Bitmap:
388
+ """
389
+ GetMinimisedIcon() -> wx.Bitmap
390
+
391
+ Get the bitmap to be used in place of the panel children when it is
392
+ minimised.
393
+ """
394
+
395
+ def GetMinimisedIconBundle(self) -> wx.BitmapBundle:
396
+ """
397
+ GetMinimisedIconBundle() -> wx.BitmapBundle
398
+
399
+ Get the bitmap bundle defining the bitmap to be used in place of the
400
+ panel children when it is minimised.
401
+ """
402
+
403
+ def HasExtButton(self) -> bool:
404
+ """
405
+ HasExtButton() -> bool
406
+
407
+ Test if the panel has an extension button.
408
+ """
409
+
410
+ @overload
411
+ def IsMinimised(self, at_size: Union[wx.Size, _TwoInts]) -> bool:
412
+ ...
413
+
414
+ @overload
415
+ def IsMinimised(self) -> bool:
416
+ """
417
+ IsMinimised() -> bool
418
+ IsMinimised(at_size) -> bool
419
+
420
+ Query if the panel is currently minimised.
421
+ """
422
+
423
+ def IsHovered(self) -> bool:
424
+ """
425
+ IsHovered() -> bool
426
+
427
+ Query is the mouse is currently hovered over the panel.
428
+ """
429
+
430
+ def IsExtButtonHovered(self) -> bool:
431
+ """
432
+ IsExtButtonHovered() -> bool
433
+
434
+ Query if the mouse is currently hovered over the extension button.
435
+ """
436
+
437
+ def CanAutoMinimise(self) -> bool:
438
+ """
439
+ CanAutoMinimise() -> bool
440
+
441
+ Query if the panel can automatically minimise itself at small sizes.
442
+ """
443
+
444
+ def ShowExpanded(self) -> bool:
445
+ """
446
+ ShowExpanded() -> bool
447
+
448
+ Show the panel externally expanded.
449
+ """
450
+
451
+ def HideExpanded(self) -> bool:
452
+ """
453
+ HideExpanded() -> bool
454
+
455
+ Hide the panel's external expansion.
456
+ """
457
+
458
+ def SetArtProvider(self, art: RibbonArtProvider) -> None:
459
+ """
460
+ SetArtProvider(art) -> None
461
+
462
+ Set the art provider to be used.
463
+ """
464
+
465
+ def Realize(self) -> bool:
466
+ """
467
+ Realize() -> bool
468
+
469
+ Realize all children of the panel.
470
+ """
471
+
472
+ def GetExpandedDummy(self) -> RibbonPanel:
473
+ """
474
+ GetExpandedDummy() -> RibbonPanel
475
+
476
+ Get the dummy panel of an expanded panel.
477
+ """
478
+
479
+ def GetExpandedPanel(self) -> RibbonPanel:
480
+ """
481
+ GetExpandedPanel() -> RibbonPanel
482
+
483
+ Get the expanded panel of a dummy panel.
484
+ """
485
+
486
+ def SetExtButtonKeyTip(self, keytip: str) -> None:
487
+ """
488
+ SetExtButtonKeyTip(keytip) -> None
489
+
490
+ Assigns the KeyTip used to click this panel's extension button.
491
+ """
492
+
493
+ def GetExtButtonKeyTip(self) -> str:
494
+ """
495
+ GetExtButtonKeyTip() -> str
496
+
497
+ Returns the extension button's KeyTip, or an empty string.
498
+ """
499
+
500
+ def SetKeyTip(self, keytip: str) -> None:
501
+ """
502
+ SetKeyTip(keytip) -> None
503
+
504
+ Assigns the KeyTip used to expand this panel while it is minimised.
505
+ """
506
+
507
+ def GetKeyTip(self) -> str:
508
+ """
509
+ GetKeyTip() -> str
510
+
511
+ Returns the panel's own KeyTip, or an empty string.
512
+ """
513
+
514
+ @staticmethod
515
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
516
+ """
517
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
518
+ """
519
+ @property
520
+ def ExpandedDummy(self) -> RibbonPanel: ...
521
+ @property
522
+ def ExpandedPanel(self) -> RibbonPanel: ...
523
+ @property
524
+ def ExtButtonKeyTip(self) -> str: ...
525
+ @ExtButtonKeyTip.setter
526
+ def ExtButtonKeyTip(self, value: str, /) -> None: ...
527
+ @property
528
+ def KeyTip(self) -> str: ...
529
+ @KeyTip.setter
530
+ def KeyTip(self, value: str, /) -> None: ...
531
+ @property
532
+ def MinimisedIcon(self) -> wx.Bitmap: ...
533
+ @property
534
+ def MinimisedIconBundle(self) -> wx.BitmapBundle: ...
535
+ # end of class RibbonPanel
536
+
537
+
538
+ class RibbonPanelEvent(wx.CommandEvent):
539
+ """
540
+ RibbonPanelEvent(command_type=wx.wxEVT_NULL, win_id=0, panel=None) -> None
541
+
542
+ Event used to indicate various actions relating to a wxRibbonPanel.
543
+ """
544
+
545
+ def __init__(self, command_type: int=wx.wxEVT_NULL, win_id: int=0, panel: Optional[RibbonPanel]=None) -> None:
546
+ """
547
+ RibbonPanelEvent(command_type=wx.wxEVT_NULL, win_id=0, panel=None) -> None
548
+
549
+ Event used to indicate various actions relating to a wxRibbonPanel.
550
+ """
551
+
552
+ def GetPanel(self) -> RibbonPanel:
553
+ """
554
+ GetPanel() -> RibbonPanel
555
+
556
+ Returns the panel relating to this event.
557
+ """
558
+
559
+ def SetPanel(self, page: RibbonPanel) -> None:
560
+ """
561
+ SetPanel(page) -> None
562
+
563
+ Sets the page relating to this event.
564
+ """
565
+ @property
566
+ def Panel(self) -> RibbonPanel: ...
567
+ @Panel.setter
568
+ def Panel(self, value: RibbonPanel, /) -> None: ...
569
+ # end of class RibbonPanelEvent
570
+
571
+
572
+ EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED: wx.PyEventBinder[RibbonPanelEvent]
573
+ #-- end-ribbon_panel --#
574
+ #-- begin-ribbon_bar --#
575
+ import wx.siplib
576
+
577
+ @final
578
+ class RibbonBarOption(int, metaclass=wx.siplib.enumtype):
579
+ RIBBON_BAR_SHOW_PAGE_LABELS: ClassVar[RibbonBarOption]
580
+ RIBBON_BAR_SHOW_PAGE_ICONS: ClassVar[RibbonBarOption]
581
+ RIBBON_BAR_FLOW_HORIZONTAL: ClassVar[RibbonBarOption]
582
+ RIBBON_BAR_FLOW_VERTICAL: ClassVar[RibbonBarOption]
583
+ RIBBON_BAR_SHOW_PANEL_EXT_BUTTONS: ClassVar[RibbonBarOption]
584
+ RIBBON_BAR_SHOW_PANEL_MINIMISE_BUTTONS: ClassVar[RibbonBarOption]
585
+ RIBBON_BAR_ALWAYS_SHOW_TABS: ClassVar[RibbonBarOption]
586
+ RIBBON_BAR_SHOW_TOGGLE_BUTTON: ClassVar[RibbonBarOption]
587
+ RIBBON_BAR_SHOW_HELP_BUTTON: ClassVar[RibbonBarOption]
588
+ RIBBON_BAR_DEFAULT_STYLE: ClassVar[RibbonBarOption]
589
+ RIBBON_BAR_FOLDBAR_STYLE: ClassVar[RibbonBarOption]
590
+ RIBBON_BAR_SHOW_PAGE_LABELS: RibbonBarOption
591
+ RIBBON_BAR_SHOW_PAGE_ICONS: RibbonBarOption
592
+ RIBBON_BAR_FLOW_HORIZONTAL: RibbonBarOption
593
+ RIBBON_BAR_FLOW_VERTICAL: RibbonBarOption
594
+ RIBBON_BAR_SHOW_PANEL_EXT_BUTTONS: RibbonBarOption
595
+ RIBBON_BAR_SHOW_PANEL_MINIMISE_BUTTONS: RibbonBarOption
596
+ RIBBON_BAR_ALWAYS_SHOW_TABS: RibbonBarOption
597
+ RIBBON_BAR_SHOW_TOGGLE_BUTTON: RibbonBarOption
598
+ RIBBON_BAR_SHOW_HELP_BUTTON: RibbonBarOption
599
+ RIBBON_BAR_DEFAULT_STYLE: RibbonBarOption
600
+ RIBBON_BAR_FOLDBAR_STYLE: RibbonBarOption
601
+
602
+ @final
603
+ class RibbonDisplayMode(int, metaclass=wx.siplib.enumtype):
604
+ RIBBON_BAR_PINNED: ClassVar[RibbonDisplayMode]
605
+ RIBBON_BAR_MINIMIZED: ClassVar[RibbonDisplayMode]
606
+ RIBBON_BAR_EXPANDED: ClassVar[RibbonDisplayMode]
607
+ RIBBON_BAR_PINNED: RibbonDisplayMode
608
+ RIBBON_BAR_MINIMIZED: RibbonDisplayMode
609
+ RIBBON_BAR_EXPANDED: RibbonDisplayMode
610
+ wxEVT_RIBBONBAR_PAGE_CHANGED: int
611
+ wxEVT_RIBBONBAR_PAGE_CHANGING: int
612
+ wxEVT_RIBBONBAR_TAB_MIDDLE_DOWN: int
613
+ wxEVT_RIBBONBAR_TAB_MIDDLE_UP: int
614
+ wxEVT_RIBBONBAR_TAB_RIGHT_DOWN: int
615
+ wxEVT_RIBBONBAR_TAB_RIGHT_UP: int
616
+ wxEVT_RIBBONBAR_TAB_LEFT_DCLICK: int
617
+ wxEVT_RIBBONBAR_TOGGLED: int
618
+ wxEVT_RIBBONBAR_HELP_CLICK: int
619
+
620
+ class RibbonBarEvent(wx.NotifyEvent):
621
+ """
622
+ RibbonBarEvent(command_type=wx.wxEVT_NULL, win_id=0, page=None) -> None
623
+
624
+ Event used to indicate various actions relating to a wxRibbonBar.
625
+ """
626
+
627
+ def __init__(self, command_type: int=wx.wxEVT_NULL, win_id: int=0, page: Optional[RibbonPage]=None) -> None:
628
+ """
629
+ RibbonBarEvent(command_type=wx.wxEVT_NULL, win_id=0, page=None) -> None
630
+
631
+ Event used to indicate various actions relating to a wxRibbonBar.
632
+ """
633
+
634
+ def GetPage(self) -> RibbonPage:
635
+ """
636
+ GetPage() -> RibbonPage
637
+
638
+ Returns the page being changed to, or being clicked on.
639
+ """
640
+
641
+ def SetPage(self, page: RibbonPage) -> None:
642
+ """
643
+ SetPage(page) -> None
644
+
645
+ Sets the page relating to this event.
646
+ """
647
+ @property
648
+ def Page(self) -> RibbonPage: ...
649
+ @Page.setter
650
+ def Page(self, value: RibbonPage, /) -> None: ...
651
+ # end of class RibbonBarEvent
652
+
653
+
654
+ class RibbonPageTabInfo(wx.siplib.wrapper):
655
+ """
656
+
657
+ """
658
+ rect: wx.Rect
659
+ page: RibbonPage
660
+ ideal_width: int
661
+ small_begin_need_separator_width: int
662
+ small_must_have_separator_width: int
663
+ minimum_width: int
664
+ active: bool
665
+ hovered: bool
666
+ highlight: bool
667
+ shown: bool
668
+ keytip: str
669
+ # end of class RibbonPageTabInfo
670
+
671
+
672
+ class RibbonBar(RibbonControl):
673
+ """
674
+ RibbonBar() -> None
675
+ RibbonBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_BAR_DEFAULT_STYLE) -> None
676
+
677
+ Top-level control in a ribbon user interface.
678
+ """
679
+
680
+ class TriggerKey(wx.siplib.wrapper):
681
+ """
682
+ A key combination which shows the KeyTips.
683
+ """
684
+ keyCode: int
685
+ modifiers: int
686
+ # end of class TriggerKey
687
+
688
+
689
+ @overload
690
+ 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=RIBBON_BAR_DEFAULT_STYLE) -> None:
691
+ ...
692
+
693
+ @overload
694
+ def __init__(self) -> None:
695
+ """
696
+ RibbonBar() -> None
697
+ RibbonBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_BAR_DEFAULT_STYLE) -> None
698
+
699
+ Top-level control in a ribbon user interface.
700
+ """
701
+
702
+ 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=RIBBON_BAR_DEFAULT_STYLE) -> bool:
703
+ """
704
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_BAR_DEFAULT_STYLE) -> bool
705
+
706
+ Create a ribbon bar in two-step ribbon bar construction.
707
+ """
708
+
709
+ def SetTabCtrlMargins(self, left: int, right: int) -> None:
710
+ """
711
+ SetTabCtrlMargins(left, right) -> None
712
+
713
+ Set the margin widths (in pixels) on the left and right sides of the
714
+ tab bar region of the ribbon bar.
715
+ """
716
+
717
+ def SetArtProvider(self, art: RibbonArtProvider) -> None:
718
+ """
719
+ SetArtProvider(art) -> None
720
+
721
+ Set the art provider to be used be the ribbon bar.
722
+ """
723
+
724
+ @overload
725
+ def SetActivePage(self, page: RibbonPage) -> bool:
726
+ ...
727
+
728
+ @overload
729
+ def SetActivePage(self, page: int) -> bool:
730
+ """
731
+ SetActivePage(page) -> bool
732
+ SetActivePage(page) -> bool
733
+
734
+ Set the active page by index, without triggering any events.
735
+ """
736
+
737
+ def GetActivePage(self) -> int:
738
+ """
739
+ GetActivePage() -> int
740
+
741
+ Get the index of the active page.
742
+ """
743
+
744
+ def GetPage(self, n: int) -> RibbonPage:
745
+ """
746
+ GetPage(n) -> RibbonPage
747
+
748
+ Get a page by index.
749
+ """
750
+
751
+ def GetPageById(self, id: int) -> RibbonPage:
752
+ """
753
+ GetPageById(id) -> RibbonPage
754
+
755
+ Get a page by window ID.
756
+ """
757
+
758
+ def GetPageCount(self) -> int:
759
+ """
760
+ GetPageCount() -> int
761
+
762
+ Get the number of pages in this bar.
763
+ """
764
+
765
+ def DismissExpandedPanel(self) -> bool:
766
+ """
767
+ DismissExpandedPanel() -> bool
768
+
769
+ Dismiss the expanded panel of the currently active page.
770
+ """
771
+
772
+ def GetPageNumber(self, page: RibbonPage) -> int:
773
+ """
774
+ GetPageNumber(page) -> int
775
+
776
+ Returns the number for a given ribbon bar page.
777
+ """
778
+
779
+ def DeletePage(self, n: int) -> None:
780
+ """
781
+ DeletePage(n) -> None
782
+
783
+ Delete a single page from this ribbon bar.
784
+ """
785
+
786
+ def ClearPages(self) -> None:
787
+ """
788
+ ClearPages() -> None
789
+
790
+ Delete all pages from the ribbon bar.
791
+ """
792
+
793
+ def IsPageShown(self, page: int) -> bool:
794
+ """
795
+ IsPageShown(page) -> bool
796
+
797
+ Indicates whether the tab for the given page is shown to the user or
798
+ not.
799
+ """
800
+
801
+ def ShowPage(self, page: int, show_tab: bool=True) -> None:
802
+ """
803
+ ShowPage(page, show_tab=True) -> None
804
+
805
+ Show or hide the tab for a given page.
806
+ """
807
+
808
+ def HidePage(self, page: int) -> None:
809
+ """
810
+ HidePage(page) -> None
811
+
812
+ Hides the tab for a given page.
813
+ """
814
+
815
+ def IsPageHighlighted(self, page: int) -> bool:
816
+ """
817
+ IsPageHighlighted(page) -> bool
818
+
819
+ Indicates whether a tab is currently highlighted.
820
+ """
821
+
822
+ def AddPageHighlight(self, page: int, highlight: bool=True) -> None:
823
+ """
824
+ AddPageHighlight(page, highlight=True) -> None
825
+
826
+ Highlight the specified tab.
827
+ """
828
+
829
+ def RemovePageHighlight(self, page: int) -> None:
830
+ """
831
+ RemovePageHighlight(page) -> None
832
+
833
+ Changes a tab to not be highlighted.
834
+ """
835
+
836
+ @overload
837
+ def ShowPanels(self, show: bool=True) -> None:
838
+ ...
839
+
840
+ @overload
841
+ def ShowPanels(self, mode: Union[RibbonDisplayMode, int]) -> None:
842
+ """
843
+ ShowPanels(mode) -> None
844
+ ShowPanels(show=True) -> None
845
+
846
+ Shows or hide the panel area of the ribbon bar according to the given
847
+ display mode.
848
+ """
849
+
850
+ def HidePanels(self) -> None:
851
+ """
852
+ HidePanels() -> None
853
+
854
+ Hides the panel area of the ribbon bar.
855
+ """
856
+
857
+ def ArePanelsShown(self) -> bool:
858
+ """
859
+ ArePanelsShown() -> bool
860
+
861
+ Indicates whether the panel area of the ribbon bar is shown.
862
+ """
863
+
864
+ def GetDisplayMode(self) -> RibbonDisplayMode:
865
+ """
866
+ GetDisplayMode() -> RibbonDisplayMode
867
+
868
+ Returns the current display mode of the panel area.
869
+ """
870
+
871
+ def SetBackstagePage(self, page: RibbonPage) -> None:
872
+ """
873
+ SetBackstagePage(page) -> None
874
+
875
+ Sets the page that acts as the "File" tab of the backstage.
876
+ """
877
+
878
+ def GetBackstagePage(self) -> RibbonPage:
879
+ """
880
+ GetBackstagePage() -> RibbonPage
881
+
882
+ Returns the page that acts as the File tab, or nullptr if there is
883
+ none.
884
+ """
885
+
886
+ def ShowBackstage(self, show: bool=True) -> None:
887
+ """
888
+ ShowBackstage(show=True) -> None
889
+
890
+ Shows or hides the backstage.
891
+ """
892
+
893
+ def IsBackstageShown(self) -> bool:
894
+ """
895
+ IsBackstageShown() -> bool
896
+
897
+ Returns true if the backstage is currently shown.
898
+ """
899
+
900
+ def StyleBackstageTab(self, style: bool=True) -> None:
901
+ """
902
+ StyleBackstageTab(style=True) -> None
903
+
904
+ Sets whether the File tab is drawn in an accent colour.
905
+ """
906
+
907
+ def IsBackstageTabStyled(self) -> bool:
908
+ """
909
+ IsBackstageTabStyled() -> bool
910
+
911
+ Returns true if the File tab is drawn in an accent colour.
912
+ """
913
+
914
+ def SetBackstageTabColour(self, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
915
+ """
916
+ SetBackstageTabColour(colour) -> None
917
+
918
+ Sets the colour of the File tab when it is styled.
919
+ """
920
+
921
+ def GetBackstageTabColour(self) -> wx.Colour:
922
+ """
923
+ GetBackstageTabColour() -> wx.Colour
924
+
925
+ Returns the colour of the File tab when it is styled.
926
+ """
927
+
928
+ def UpdateBackstageColours(self) -> None:
929
+ """
930
+ UpdateBackstageColours() -> None
931
+
932
+ Applies the art provider's colours to the backstage.
933
+ """
934
+
935
+ def HasMultiplePages(self) -> bool:
936
+ """
937
+ HasMultiplePages() -> bool
938
+
939
+ Returns whether the bar contains multiple pages.
940
+ """
941
+
942
+ def HideIfExpanded(self) -> None:
943
+ """
944
+ HideIfExpanded() -> None
945
+
946
+ Hide the panels if its display mode is wxRIBBON_BAR_EXPANDED.
947
+ """
948
+
949
+ def GetButtonImageList(self, size: Union[wx.Size, _TwoInts], initialCount: int=1) -> wx.ImageList:
950
+ """
951
+ GetButtonImageList(size, initialCount=1) -> wx.ImageList
952
+
953
+ Return the image list containing images of the given size, creating it
954
+ if necessary.
955
+ """
956
+
957
+ def Realize(self) -> bool:
958
+ """
959
+ Realize() -> bool
960
+
961
+ Perform initial layout and size calculations of the bar and its
962
+ children.
963
+ """
964
+
965
+ @overload
966
+ def SetPageKeyTip(self, page: RibbonPage, keytip: str) -> None:
967
+ ...
968
+
969
+ @overload
970
+ def SetPageKeyTip(self, page: int, keytip: str) -> None:
971
+ """
972
+ SetPageKeyTip(page, keytip) -> None
973
+ SetPageKeyTip(page, keytip) -> None
974
+
975
+ Assigns the KeyTip used to switch to the given page.
976
+ """
977
+
978
+ def SetToggleButtonKeyTip(self, keytip: str) -> None:
979
+ """
980
+ SetToggleButtonKeyTip(keytip) -> None
981
+
982
+ Assigns the KeyTip used to activate the panel toggle button.
983
+ """
984
+
985
+ def SetHelpButtonKeyTip(self, keytip: str) -> None:
986
+ """
987
+ SetHelpButtonKeyTip(keytip) -> None
988
+
989
+ Assigns the KeyTip used to activate the help button.
990
+ """
991
+
992
+ def ShowKeyTips(self) -> bool:
993
+ """
994
+ ShowKeyTips() -> bool
995
+
996
+ Enters keyboard access mode and shows the KeyTip badges.
997
+ """
998
+
999
+ def HideKeyTips(self) -> None:
1000
+ """
1001
+ HideKeyTips() -> None
1002
+
1003
+ Leaves keyboard access mode and hides the KeyTip badges.
1004
+ """
1005
+
1006
+ def AreKeyTipsShown(self) -> bool:
1007
+ """
1008
+ AreKeyTipsShown() -> bool
1009
+
1010
+ Returns true if keyboard access mode is currently active.
1011
+ """
1012
+
1013
+ def SetKeyTipsTriggerKey(self, keyCode: int, modifiers: int=wx.MOD_NONE) -> None:
1014
+ """
1015
+ SetKeyTipsTriggerKey(keyCode, modifiers=wx.MOD_NONE) -> None
1016
+
1017
+ Makes keyCode with modifiers the only key which shows KeyTips.
1018
+ """
1019
+
1020
+ def AddKeyTipsTriggerKey(self, keyCode: int, modifiers: int=wx.MOD_NONE) -> None:
1021
+ """
1022
+ AddKeyTipsTriggerKey(keyCode, modifiers=wx.MOD_NONE) -> None
1023
+
1024
+ Adds another key which shows KeyTips, keeping the existing ones.
1025
+ """
1026
+
1027
+ def ClearKeyTipsTriggerKeys(self) -> None:
1028
+ """
1029
+ ClearKeyTipsTriggerKeys() -> None
1030
+
1031
+ Removes all trigger keys, disabling keyboard access mode.
1032
+ """
1033
+
1034
+ def GetKeyTipsTriggerKeys(self) -> List[RibbonBar.TriggerKey]:
1035
+ """
1036
+ GetKeyTipsTriggerKeys() -> List[RibbonBar.TriggerKey]
1037
+
1038
+ Returns the keys which show KeyTips.
1039
+ """
1040
+
1041
+ @staticmethod
1042
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
1043
+ """
1044
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
1045
+ """
1046
+ @property
1047
+ def ActivePage(self) -> int: ...
1048
+ @ActivePage.setter
1049
+ def ActivePage(self, value: Union[int, RibbonPage], /) -> None: ...
1050
+ @property
1051
+ def BackstagePage(self) -> RibbonPage: ...
1052
+ @BackstagePage.setter
1053
+ def BackstagePage(self, value: RibbonPage, /) -> None: ...
1054
+ @property
1055
+ def BackstageTabColour(self) -> wx.Colour: ...
1056
+ @BackstageTabColour.setter
1057
+ def BackstageTabColour(self, value: Union[wx.Colour, _ThreeInts, _FourInts, str, None], /) -> None: ...
1058
+ @property
1059
+ def DisplayMode(self) -> RibbonDisplayMode: ...
1060
+ @property
1061
+ def KeyTipsTriggerKeys(self) -> List[RibbonBar.TriggerKey]: ...
1062
+ @property
1063
+ def PageCount(self) -> int: ...
1064
+ # end of class RibbonBar
1065
+
1066
+
1067
+ EVT_RIBBONBAR_PAGE_CHANGED: wx.PyEventBinder[RibbonBarEvent]
1068
+ EVT_RIBBONBAR_PAGE_CHANGING: wx.PyEventBinder[RibbonBarEvent]
1069
+ EVT_RIBBONBAR_TAB_MIDDLE_DOWN: wx.PyEventBinder[RibbonBarEvent]
1070
+ EVT_RIBBONBAR_TAB_MIDDLE_UP: wx.PyEventBinder[RibbonBarEvent]
1071
+ EVT_RIBBONBAR_TAB_RIGHT_DOWN: wx.PyEventBinder[RibbonBarEvent]
1072
+ EVT_RIBBONBAR_TAB_RIGHT_UP: wx.PyEventBinder[RibbonBarEvent]
1073
+ EVT_RIBBONBAR_TAB_LEFT_DCLICK: wx.PyEventBinder[RibbonBarEvent]
1074
+ EVT_RIBBONBAR_TOGGLED: wx.PyEventBinder[RibbonBarEvent]
1075
+ EVT_RIBBONBAR_HELP_CLICK: wx.PyEventBinder[RibbonBarEvent]
1076
+
1077
+ class RibbonPageTabInfoArray(wx.siplib.wrapper):
1078
+ def __len__(self) -> int: ...
1079
+ def __getitem__(self, index: int, /) -> RibbonPageTabInfo: ...
1080
+ def __contains__(self, obj: RibbonPageTabInfo, /) -> bool: ...
1081
+ def __iter__(self) -> Iterator[RibbonPageTabInfo]: ...
1082
+ def index(self, obj: RibbonPageTabInfo) -> int: ...
1083
+ def append(self, obj: RibbonPageTabInfo) -> None: ...
1084
+ #-- end-ribbon_bar --#
1085
+ #-- begin-ribbon_art --#
1086
+ import wx.siplib
1087
+
1088
+ @final
1089
+ class RibbonArtSetting(int, metaclass=wx.siplib.enumtype):
1090
+ RIBBON_ART_TAB_SEPARATION_SIZE: ClassVar[RibbonArtSetting]
1091
+ RIBBON_ART_PAGE_BORDER_LEFT_SIZE: ClassVar[RibbonArtSetting]
1092
+ RIBBON_ART_PAGE_BORDER_TOP_SIZE: ClassVar[RibbonArtSetting]
1093
+ RIBBON_ART_PAGE_BORDER_RIGHT_SIZE: ClassVar[RibbonArtSetting]
1094
+ RIBBON_ART_PAGE_BORDER_BOTTOM_SIZE: ClassVar[RibbonArtSetting]
1095
+ RIBBON_ART_PANEL_X_SEPARATION_SIZE: ClassVar[RibbonArtSetting]
1096
+ RIBBON_ART_PANEL_Y_SEPARATION_SIZE: ClassVar[RibbonArtSetting]
1097
+ RIBBON_ART_TOOL_GROUP_SEPARATION_SIZE: ClassVar[RibbonArtSetting]
1098
+ RIBBON_ART_GALLERY_BITMAP_PADDING_LEFT_SIZE: ClassVar[RibbonArtSetting]
1099
+ RIBBON_ART_GALLERY_BITMAP_PADDING_RIGHT_SIZE: ClassVar[RibbonArtSetting]
1100
+ RIBBON_ART_GALLERY_BITMAP_PADDING_TOP_SIZE: ClassVar[RibbonArtSetting]
1101
+ RIBBON_ART_GALLERY_BITMAP_PADDING_BOTTOM_SIZE: ClassVar[RibbonArtSetting]
1102
+ RIBBON_ART_PANEL_LABEL_FONT: ClassVar[RibbonArtSetting]
1103
+ RIBBON_ART_BUTTON_BAR_LABEL_FONT: ClassVar[RibbonArtSetting]
1104
+ RIBBON_ART_TAB_LABEL_FONT: ClassVar[RibbonArtSetting]
1105
+ RIBBON_ART_BUTTON_BAR_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1106
+ RIBBON_ART_BUTTON_BAR_LABEL_DISABLED_COLOUR: ClassVar[RibbonArtSetting]
1107
+ RIBBON_ART_BUTTON_BAR_HOVER_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1108
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1109
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1110
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1111
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1112
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1113
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1114
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1115
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1116
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1117
+ RIBBON_ART_GALLERY_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1118
+ RIBBON_ART_GALLERY_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1119
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1120
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1121
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1122
+ RIBBON_ART_GALLERY_BUTTON_FACE_COLOUR: ClassVar[RibbonArtSetting]
1123
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1124
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1125
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1126
+ RIBBON_ART_GALLERY_BUTTON_HOVER_FACE_COLOUR: ClassVar[RibbonArtSetting]
1127
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1128
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1129
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1130
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_FACE_COLOUR: ClassVar[RibbonArtSetting]
1131
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1132
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1133
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1134
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_FACE_COLOUR: ClassVar[RibbonArtSetting]
1135
+ RIBBON_ART_GALLERY_ITEM_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1136
+ RIBBON_ART_TAB_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1137
+ RIBBON_ART_TAB_ACTIVE_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1138
+ RIBBON_ART_TAB_HOVER_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1139
+ RIBBON_ART_TAB_SEPARATOR_COLOUR: ClassVar[RibbonArtSetting]
1140
+ RIBBON_ART_TAB_SEPARATOR_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1141
+ RIBBON_ART_TAB_CTRL_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1142
+ RIBBON_ART_TAB_CTRL_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1143
+ RIBBON_ART_TAB_HOVER_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1144
+ RIBBON_ART_TAB_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1145
+ RIBBON_ART_TAB_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1146
+ RIBBON_ART_TAB_HOVER_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1147
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1148
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1149
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1150
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1151
+ RIBBON_ART_TAB_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1152
+ RIBBON_ART_PANEL_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1153
+ RIBBON_ART_PANEL_BORDER_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1154
+ RIBBON_ART_PANEL_HOVER_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1155
+ RIBBON_ART_PANEL_HOVER_BORDER_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1156
+ RIBBON_ART_PANEL_MINIMISED_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1157
+ RIBBON_ART_PANEL_MINIMISED_BORDER_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1158
+ RIBBON_ART_PANEL_LABEL_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1159
+ RIBBON_ART_PANEL_LABEL_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1160
+ RIBBON_ART_PANEL_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1161
+ RIBBON_ART_PANEL_HOVER_LABEL_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1162
+ RIBBON_ART_PANEL_HOVER_LABEL_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1163
+ RIBBON_ART_PANEL_HOVER_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1164
+ RIBBON_ART_PANEL_MINIMISED_LABEL_COLOUR: ClassVar[RibbonArtSetting]
1165
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1166
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1167
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1168
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1169
+ RIBBON_ART_PAGE_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1170
+ RIBBON_ART_PAGE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1171
+ RIBBON_ART_PAGE_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1172
+ RIBBON_ART_PAGE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1173
+ RIBBON_ART_PAGE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1174
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1175
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1176
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1177
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1178
+ RIBBON_ART_TOOLBAR_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1179
+ RIBBON_ART_TOOLBAR_HOVER_BORDER_COLOUR: ClassVar[RibbonArtSetting]
1180
+ RIBBON_ART_TOOLBAR_FACE_COLOUR: ClassVar[RibbonArtSetting]
1181
+ RIBBON_ART_TOOL_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1182
+ RIBBON_ART_TOOL_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1183
+ RIBBON_ART_TOOL_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1184
+ RIBBON_ART_TOOL_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1185
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1186
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1187
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1188
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1189
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_TOP_COLOUR: ClassVar[RibbonArtSetting]
1190
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1191
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_COLOUR: ClassVar[RibbonArtSetting]
1192
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1193
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_COLOUR: ClassVar[RibbonArtSetting]
1194
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_COLOUR: ClassVar[RibbonArtSetting]
1195
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_TOP_COLOUR: ClassVar[RibbonArtSetting]
1196
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_TOP_COLOUR: ClassVar[RibbonArtSetting]
1197
+ RIBBON_ART_TAB_SEPARATION_SIZE: RibbonArtSetting
1198
+ RIBBON_ART_PAGE_BORDER_LEFT_SIZE: RibbonArtSetting
1199
+ RIBBON_ART_PAGE_BORDER_TOP_SIZE: RibbonArtSetting
1200
+ RIBBON_ART_PAGE_BORDER_RIGHT_SIZE: RibbonArtSetting
1201
+ RIBBON_ART_PAGE_BORDER_BOTTOM_SIZE: RibbonArtSetting
1202
+ RIBBON_ART_PANEL_X_SEPARATION_SIZE: RibbonArtSetting
1203
+ RIBBON_ART_PANEL_Y_SEPARATION_SIZE: RibbonArtSetting
1204
+ RIBBON_ART_TOOL_GROUP_SEPARATION_SIZE: RibbonArtSetting
1205
+ RIBBON_ART_GALLERY_BITMAP_PADDING_LEFT_SIZE: RibbonArtSetting
1206
+ RIBBON_ART_GALLERY_BITMAP_PADDING_RIGHT_SIZE: RibbonArtSetting
1207
+ RIBBON_ART_GALLERY_BITMAP_PADDING_TOP_SIZE: RibbonArtSetting
1208
+ RIBBON_ART_GALLERY_BITMAP_PADDING_BOTTOM_SIZE: RibbonArtSetting
1209
+ RIBBON_ART_PANEL_LABEL_FONT: RibbonArtSetting
1210
+ RIBBON_ART_BUTTON_BAR_LABEL_FONT: RibbonArtSetting
1211
+ RIBBON_ART_TAB_LABEL_FONT: RibbonArtSetting
1212
+ RIBBON_ART_BUTTON_BAR_LABEL_COLOUR: RibbonArtSetting
1213
+ RIBBON_ART_BUTTON_BAR_LABEL_DISABLED_COLOUR: RibbonArtSetting
1214
+ RIBBON_ART_BUTTON_BAR_HOVER_BORDER_COLOUR: RibbonArtSetting
1215
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1216
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1217
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1218
+ RIBBON_ART_BUTTON_BAR_HOVER_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1219
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BORDER_COLOUR: RibbonArtSetting
1220
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1221
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1222
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_COLOUR: RibbonArtSetting
1223
+ RIBBON_ART_BUTTON_BAR_ACTIVE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1224
+ RIBBON_ART_GALLERY_BORDER_COLOUR: RibbonArtSetting
1225
+ RIBBON_ART_GALLERY_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1226
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_COLOUR: RibbonArtSetting
1227
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1228
+ RIBBON_ART_GALLERY_BUTTON_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1229
+ RIBBON_ART_GALLERY_BUTTON_FACE_COLOUR: RibbonArtSetting
1230
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1231
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1232
+ RIBBON_ART_GALLERY_BUTTON_HOVER_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1233
+ RIBBON_ART_GALLERY_BUTTON_HOVER_FACE_COLOUR: RibbonArtSetting
1234
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_COLOUR: RibbonArtSetting
1235
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1236
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1237
+ RIBBON_ART_GALLERY_BUTTON_ACTIVE_FACE_COLOUR: RibbonArtSetting
1238
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_COLOUR: RibbonArtSetting
1239
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1240
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1241
+ RIBBON_ART_GALLERY_BUTTON_DISABLED_FACE_COLOUR: RibbonArtSetting
1242
+ RIBBON_ART_GALLERY_ITEM_BORDER_COLOUR: RibbonArtSetting
1243
+ RIBBON_ART_TAB_LABEL_COLOUR: RibbonArtSetting
1244
+ RIBBON_ART_TAB_ACTIVE_LABEL_COLOUR: RibbonArtSetting
1245
+ RIBBON_ART_TAB_HOVER_LABEL_COLOUR: RibbonArtSetting
1246
+ RIBBON_ART_TAB_SEPARATOR_COLOUR: RibbonArtSetting
1247
+ RIBBON_ART_TAB_SEPARATOR_GRADIENT_COLOUR: RibbonArtSetting
1248
+ RIBBON_ART_TAB_CTRL_BACKGROUND_COLOUR: RibbonArtSetting
1249
+ RIBBON_ART_TAB_CTRL_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1250
+ RIBBON_ART_TAB_HOVER_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1251
+ RIBBON_ART_TAB_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1252
+ RIBBON_ART_TAB_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1253
+ RIBBON_ART_TAB_HOVER_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1254
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1255
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1256
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_COLOUR: RibbonArtSetting
1257
+ RIBBON_ART_TAB_ACTIVE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1258
+ RIBBON_ART_TAB_BORDER_COLOUR: RibbonArtSetting
1259
+ RIBBON_ART_PANEL_BORDER_COLOUR: RibbonArtSetting
1260
+ RIBBON_ART_PANEL_BORDER_GRADIENT_COLOUR: RibbonArtSetting
1261
+ RIBBON_ART_PANEL_HOVER_BORDER_COLOUR: RibbonArtSetting
1262
+ RIBBON_ART_PANEL_HOVER_BORDER_GRADIENT_COLOUR: RibbonArtSetting
1263
+ RIBBON_ART_PANEL_MINIMISED_BORDER_COLOUR: RibbonArtSetting
1264
+ RIBBON_ART_PANEL_MINIMISED_BORDER_GRADIENT_COLOUR: RibbonArtSetting
1265
+ RIBBON_ART_PANEL_LABEL_BACKGROUND_COLOUR: RibbonArtSetting
1266
+ RIBBON_ART_PANEL_LABEL_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1267
+ RIBBON_ART_PANEL_LABEL_COLOUR: RibbonArtSetting
1268
+ RIBBON_ART_PANEL_HOVER_LABEL_BACKGROUND_COLOUR: RibbonArtSetting
1269
+ RIBBON_ART_PANEL_HOVER_LABEL_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1270
+ RIBBON_ART_PANEL_HOVER_LABEL_COLOUR: RibbonArtSetting
1271
+ RIBBON_ART_PANEL_MINIMISED_LABEL_COLOUR: RibbonArtSetting
1272
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1273
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1274
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_COLOUR: RibbonArtSetting
1275
+ RIBBON_ART_PANEL_ACTIVE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1276
+ RIBBON_ART_PAGE_BORDER_COLOUR: RibbonArtSetting
1277
+ RIBBON_ART_PAGE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1278
+ RIBBON_ART_PAGE_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1279
+ RIBBON_ART_PAGE_BACKGROUND_COLOUR: RibbonArtSetting
1280
+ RIBBON_ART_PAGE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1281
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1282
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1283
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1284
+ RIBBON_ART_PAGE_HOVER_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1285
+ RIBBON_ART_TOOLBAR_BORDER_COLOUR: RibbonArtSetting
1286
+ RIBBON_ART_TOOLBAR_HOVER_BORDER_COLOUR: RibbonArtSetting
1287
+ RIBBON_ART_TOOLBAR_FACE_COLOUR: RibbonArtSetting
1288
+ RIBBON_ART_TOOL_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1289
+ RIBBON_ART_TOOL_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1290
+ RIBBON_ART_TOOL_BACKGROUND_COLOUR: RibbonArtSetting
1291
+ RIBBON_ART_TOOL_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1292
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1293
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1294
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_COLOUR: RibbonArtSetting
1295
+ RIBBON_ART_TOOL_HOVER_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1296
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_TOP_COLOUR: RibbonArtSetting
1297
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_TOP_GRADIENT_COLOUR: RibbonArtSetting
1298
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_COLOUR: RibbonArtSetting
1299
+ RIBBON_ART_TOOL_ACTIVE_BACKGROUND_GRADIENT_COLOUR: RibbonArtSetting
1300
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_COLOUR: RibbonArtSetting
1301
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_COLOUR: RibbonArtSetting
1302
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_TOP_COLOUR: RibbonArtSetting
1303
+ RIBBON_ART_BUTTON_BAR_LABEL_HIGHLIGHT_GRADIENT_TOP_COLOUR: RibbonArtSetting
1304
+
1305
+ @final
1306
+ class RibbonScrollButtonStyle(int, metaclass=wx.siplib.enumtype):
1307
+ RIBBON_SCROLL_BTN_LEFT: ClassVar[RibbonScrollButtonStyle]
1308
+ RIBBON_SCROLL_BTN_RIGHT: ClassVar[RibbonScrollButtonStyle]
1309
+ RIBBON_SCROLL_BTN_UP: ClassVar[RibbonScrollButtonStyle]
1310
+ RIBBON_SCROLL_BTN_DOWN: ClassVar[RibbonScrollButtonStyle]
1311
+ RIBBON_SCROLL_BTN_DIRECTION_MASK: ClassVar[RibbonScrollButtonStyle]
1312
+ RIBBON_SCROLL_BTN_NORMAL: ClassVar[RibbonScrollButtonStyle]
1313
+ RIBBON_SCROLL_BTN_HOVERED: ClassVar[RibbonScrollButtonStyle]
1314
+ RIBBON_SCROLL_BTN_ACTIVE: ClassVar[RibbonScrollButtonStyle]
1315
+ RIBBON_SCROLL_BTN_STATE_MASK: ClassVar[RibbonScrollButtonStyle]
1316
+ RIBBON_SCROLL_BTN_FOR_OTHER: ClassVar[RibbonScrollButtonStyle]
1317
+ RIBBON_SCROLL_BTN_FOR_TABS: ClassVar[RibbonScrollButtonStyle]
1318
+ RIBBON_SCROLL_BTN_FOR_PAGE: ClassVar[RibbonScrollButtonStyle]
1319
+ RIBBON_SCROLL_BTN_FOR_MASK: ClassVar[RibbonScrollButtonStyle]
1320
+ RIBBON_SCROLL_BTN_LEFT: RibbonScrollButtonStyle
1321
+ RIBBON_SCROLL_BTN_RIGHT: RibbonScrollButtonStyle
1322
+ RIBBON_SCROLL_BTN_UP: RibbonScrollButtonStyle
1323
+ RIBBON_SCROLL_BTN_DOWN: RibbonScrollButtonStyle
1324
+ RIBBON_SCROLL_BTN_DIRECTION_MASK: RibbonScrollButtonStyle
1325
+ RIBBON_SCROLL_BTN_NORMAL: RibbonScrollButtonStyle
1326
+ RIBBON_SCROLL_BTN_HOVERED: RibbonScrollButtonStyle
1327
+ RIBBON_SCROLL_BTN_ACTIVE: RibbonScrollButtonStyle
1328
+ RIBBON_SCROLL_BTN_STATE_MASK: RibbonScrollButtonStyle
1329
+ RIBBON_SCROLL_BTN_FOR_OTHER: RibbonScrollButtonStyle
1330
+ RIBBON_SCROLL_BTN_FOR_TABS: RibbonScrollButtonStyle
1331
+ RIBBON_SCROLL_BTN_FOR_PAGE: RibbonScrollButtonStyle
1332
+ RIBBON_SCROLL_BTN_FOR_MASK: RibbonScrollButtonStyle
1333
+
1334
+ @final
1335
+ class RibbonButtonKind(int, metaclass=wx.siplib.enumtype):
1336
+ RIBBON_BUTTON_NORMAL: ClassVar[RibbonButtonKind]
1337
+ RIBBON_BUTTON_DROPDOWN: ClassVar[RibbonButtonKind]
1338
+ RIBBON_BUTTON_HYBRID: ClassVar[RibbonButtonKind]
1339
+ RIBBON_BUTTON_TOGGLE: ClassVar[RibbonButtonKind]
1340
+ RIBBON_BUTTON_NORMAL: RibbonButtonKind
1341
+ RIBBON_BUTTON_DROPDOWN: RibbonButtonKind
1342
+ RIBBON_BUTTON_HYBRID: RibbonButtonKind
1343
+ RIBBON_BUTTON_TOGGLE: RibbonButtonKind
1344
+
1345
+ class RibbonArtProvider(wx.siplib.wrapper):
1346
+ """
1347
+ RibbonArtProvider() -> None
1348
+
1349
+ wxRibbonArtProvider is responsible for drawing all the components of
1350
+ the ribbon interface.
1351
+ """
1352
+
1353
+ def __init__(self) -> None:
1354
+ """
1355
+ RibbonArtProvider() -> None
1356
+
1357
+ wxRibbonArtProvider is responsible for drawing all the components of
1358
+ the ribbon interface.
1359
+ """
1360
+
1361
+ def Clone(self) -> RibbonArtProvider:
1362
+ """
1363
+ Clone() -> RibbonArtProvider
1364
+
1365
+ Create a new art provider which is a clone of this one.
1366
+ """
1367
+
1368
+ def SetFlags(self, flags: int) -> None:
1369
+ """
1370
+ SetFlags(flags) -> None
1371
+
1372
+ Set the style flags.
1373
+ """
1374
+
1375
+ def GetFlags(self) -> int:
1376
+ """
1377
+ GetFlags() -> int
1378
+
1379
+ Get the previously set style flags.
1380
+ """
1381
+
1382
+ def GetMetric(self, id: int) -> int:
1383
+ """
1384
+ GetMetric(id) -> int
1385
+
1386
+ Get the value of a certain integer setting.
1387
+ """
1388
+
1389
+ def SetMetric(self, id: int, new_val: int) -> None:
1390
+ """
1391
+ SetMetric(id, new_val) -> None
1392
+
1393
+ Set the value of a certain integer setting to the value new_val.
1394
+ """
1395
+
1396
+ def SetFont(self, id: int, font: wx.Font) -> None:
1397
+ """
1398
+ SetFont(id, font) -> None
1399
+
1400
+ Set the value of a certain font setting to the value font.
1401
+ """
1402
+
1403
+ def GetFont(self, id: int) -> wx.Font:
1404
+ """
1405
+ GetFont(id) -> wx.Font
1406
+
1407
+ Get the value of a certain font setting.
1408
+ """
1409
+
1410
+ def GetColour(self, id: int) -> wx.Colour:
1411
+ """
1412
+ GetColour(id) -> wx.Colour
1413
+
1414
+ Get the value of a certain colour setting.
1415
+ """
1416
+
1417
+ def SetColour(self, id: int, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1418
+ """
1419
+ SetColour(id, colour) -> None
1420
+
1421
+ Set the value of a certain colour setting to the value colour.
1422
+ """
1423
+
1424
+ def GetColor(self, id: int) -> wx.Colour:
1425
+ """
1426
+ GetColor(id) -> wx.Colour
1427
+ """
1428
+
1429
+ def SetColor(self, id: int, color: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1430
+ """
1431
+ SetColor(id, color) -> None
1432
+ """
1433
+
1434
+ def GetColourScheme(self) -> Tuple[wx.Colour, wx.Colour, wx.Colour]:
1435
+ """
1436
+ GetColourScheme() -> Tuple[wx.Colour, wx.Colour, wx.Colour]
1437
+
1438
+ Get the current colour scheme.
1439
+ """
1440
+
1441
+ def SetColourScheme(self, primary: Union[wx.Colour, _ThreeInts, _FourInts, str, None], secondary: Union[wx.Colour, _ThreeInts, _FourInts, str, None], tertiary: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1442
+ """
1443
+ SetColourScheme(primary, secondary, tertiary) -> None
1444
+
1445
+ Set all applicable colour settings from a few base colours.
1446
+ """
1447
+
1448
+ def UpdateColoursFromSystem(self) -> None:
1449
+ """
1450
+ UpdateColoursFromSystem() -> None
1451
+
1452
+ Called when the system colours change to allow the art provider to
1453
+ update its colours.
1454
+ """
1455
+
1456
+ def DrawTabCtrlBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1457
+ """
1458
+ DrawTabCtrlBackground(dc, wnd, rect) -> None
1459
+
1460
+ Draw the background of the tab region of a ribbon bar.
1461
+ """
1462
+
1463
+ def DrawTab(self, dc: wx.DC, wnd: wx.Window, tab: RibbonPageTabInfo) -> None:
1464
+ """
1465
+ DrawTab(dc, wnd, tab) -> None
1466
+
1467
+ Draw a single tab in the tab region of a ribbon bar.
1468
+ """
1469
+
1470
+ def DrawTabSeparator(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], visibility: float) -> None:
1471
+ """
1472
+ DrawTabSeparator(dc, wnd, rect, visibility) -> None
1473
+
1474
+ Draw a separator between two tabs in a ribbon bar.
1475
+ """
1476
+
1477
+ def DrawPageBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1478
+ """
1479
+ DrawPageBackground(dc, wnd, rect) -> None
1480
+
1481
+ Draw the background of a ribbon page.
1482
+ """
1483
+
1484
+ def DrawScrollButton(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], style: int) -> None:
1485
+ """
1486
+ DrawScrollButton(dc, wnd, rect, style) -> None
1487
+
1488
+ Draw a ribbon-style scroll button.
1489
+ """
1490
+
1491
+ def DrawPanelBackground(self, dc: wx.DC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts]) -> None:
1492
+ """
1493
+ DrawPanelBackground(dc, wnd, rect) -> None
1494
+
1495
+ Draw the background and chrome for a ribbon panel.
1496
+ """
1497
+
1498
+ def DrawGalleryBackground(self, dc: wx.DC, wnd: RibbonGallery, rect: Union[wx.Rect, _FourInts]) -> None:
1499
+ """
1500
+ DrawGalleryBackground(dc, wnd, rect) -> None
1501
+
1502
+ Draw the background and chrome for a wxRibbonGallery control.
1503
+ """
1504
+
1505
+ def DrawGalleryItemBackground(self, dc: wx.DC, wnd: RibbonGallery, rect: Union[wx.Rect, _FourInts], item: RibbonGalleryItem) -> None:
1506
+ """
1507
+ DrawGalleryItemBackground(dc, wnd, rect, item) -> None
1508
+
1509
+ Draw the background of a single item in a wxRibbonGallery control.
1510
+ """
1511
+
1512
+ def DrawMinimisedPanel(self, dc: wx.DC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts], bitmap: wx.Bitmap) -> None:
1513
+ """
1514
+ DrawMinimisedPanel(dc, wnd, rect, bitmap) -> None
1515
+
1516
+ Draw a minimised ribbon panel.
1517
+ """
1518
+
1519
+ def DrawButtonBarBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1520
+ """
1521
+ DrawButtonBarBackground(dc, wnd, rect) -> None
1522
+
1523
+ Draw the background for a wxRibbonButtonBar control.
1524
+ """
1525
+
1526
+ def DrawButtonBarButton(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], kind: Union[RibbonButtonKind, int], state: int, label: str, bitmap_large: wx.Bitmap, bitmap_small: wx.Bitmap) -> None:
1527
+ """
1528
+ DrawButtonBarButton(dc, wnd, rect, kind, state, label, bitmap_large, bitmap_small) -> None
1529
+
1530
+ Draw a single button for a wxRibbonButtonBar control.
1531
+ """
1532
+
1533
+ def DrawToolBarBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1534
+ """
1535
+ DrawToolBarBackground(dc, wnd, rect) -> None
1536
+
1537
+ Draw the background for a wxRibbonToolBar control.
1538
+ """
1539
+
1540
+ def DrawToolGroupBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1541
+ """
1542
+ DrawToolGroupBackground(dc, wnd, rect) -> None
1543
+
1544
+ Draw the background for a group of tools on a wxRibbonToolBar control.
1545
+ """
1546
+
1547
+ def DrawTool(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], bitmap: wx.Bitmap, kind: Union[RibbonButtonKind, int], state: int) -> None:
1548
+ """
1549
+ DrawTool(dc, wnd, rect, bitmap, kind, state) -> None
1550
+
1551
+ Draw a single tool (for a wxRibbonToolBar control).
1552
+ """
1553
+
1554
+ def DrawToggleButton(self, dc: wx.DC, wnd: RibbonBar, rect: Union[wx.Rect, _FourInts], mode: Union[RibbonDisplayMode, int]) -> None:
1555
+ """
1556
+ DrawToggleButton(dc, wnd, rect, mode) -> None
1557
+
1558
+ Draw toggle button on wxRibbonBar.
1559
+ """
1560
+
1561
+ def DrawHelpButton(self, dc: wx.DC, wnd: RibbonBar, rect: Union[wx.Rect, _FourInts]) -> None:
1562
+ """
1563
+ DrawHelpButton(dc, wnd, rect) -> None
1564
+
1565
+ Draw help button on wxRibbonBar.
1566
+ """
1567
+
1568
+ def DrawKeyTip(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], keytip: str) -> bool:
1569
+ """
1570
+ DrawKeyTip(dc, wnd, rect, keytip) -> bool
1571
+
1572
+ Draw a KeyTip badge over a ribbon element in keyboard access mode.
1573
+ """
1574
+
1575
+ def GetBarTabWidth(self, dc: wx.ReadOnlyDC, wnd: wx.Window, label: str, bitmap: wx.Bitmap, ideal: int, small_begin_need_separator: int, small_must_have_separator: int, minimum: int) -> None:
1576
+ """
1577
+ GetBarTabWidth(dc, wnd, label, bitmap, ideal, small_begin_need_separator, small_must_have_separator, minimum) -> None
1578
+
1579
+ Calculate the ideal and minimum width (in pixels) of a tab in a ribbon
1580
+ bar.
1581
+ """
1582
+
1583
+ def GetTabCtrlHeight(self, dc: wx.ReadOnlyDC, wnd: wx.Window, pages: RibbonPageTabInfoArray) -> int:
1584
+ """
1585
+ GetTabCtrlHeight(dc, wnd, pages) -> int
1586
+
1587
+ Calculate the height (in pixels) of the tab region of a ribbon bar.
1588
+ """
1589
+
1590
+ def GetScrollButtonMinimumSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, style: int) -> wx.Size:
1591
+ """
1592
+ GetScrollButtonMinimumSize(dc, wnd, style) -> wx.Size
1593
+
1594
+ Calculate the minimum size (in pixels) of a scroll button.
1595
+ """
1596
+
1597
+ def GetPanelSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, client_size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts]) -> wx.Size:
1598
+ """
1599
+ GetPanelSize(dc, wnd, client_size, client_offset) -> wx.Size
1600
+
1601
+ Calculate the size of a panel for a given client size.
1602
+ """
1603
+
1604
+ def GetPanelClientSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts]) -> wx.Size:
1605
+ """
1606
+ GetPanelClientSize(dc, wnd, size, client_offset) -> wx.Size
1607
+
1608
+ Calculate the client size of a panel for a given overall size.
1609
+ """
1610
+
1611
+ def GetPanelExtButtonArea(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1612
+ """
1613
+ GetPanelExtButtonArea(dc, wnd, rect) -> wx.Rect
1614
+
1615
+ Calculate the position and size of the panel extension button.
1616
+ """
1617
+
1618
+ def GetGallerySize(self, dc: wx.ReadOnlyDC, wnd: RibbonGallery, client_size: Union[wx.Size, _TwoInts]) -> wx.Size:
1619
+ """
1620
+ GetGallerySize(dc, wnd, client_size) -> wx.Size
1621
+
1622
+ Calculate the size of a wxRibbonGallery control for a given client
1623
+ size.
1624
+ """
1625
+
1626
+ def GetGalleryClientSize(self, dc: wx.ReadOnlyDC, wnd: RibbonGallery, size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts], scroll_up_button: Union[wx.Rect, _FourInts], scroll_down_button: Union[wx.Rect, _FourInts], extension_button: Union[wx.Rect, _FourInts]) -> wx.Size:
1627
+ """
1628
+ GetGalleryClientSize(dc, wnd, size, client_offset, scroll_up_button, scroll_down_button, extension_button) -> wx.Size
1629
+
1630
+ Calculate the client size of a wxRibbonGallery control for a given
1631
+ size.
1632
+ """
1633
+
1634
+ def GetPageBackgroundRedrawArea(self, dc: wx.ReadOnlyDC, wnd: RibbonPage, page_old_size: Union[wx.Size, _TwoInts], page_new_size: Union[wx.Size, _TwoInts]) -> wx.Rect:
1635
+ """
1636
+ GetPageBackgroundRedrawArea(dc, wnd, page_old_size, page_new_size) -> wx.Rect
1637
+
1638
+ Calculate the portion of a page background which needs to be redrawn
1639
+ when a page is resized.
1640
+ """
1641
+
1642
+ def GetButtonBarButtonSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, kind: Union[RibbonButtonKind, int], size: Union[RibbonButtonBarButtonState, int], label: str, text_min_width: int, bitmap_size_large: Union[wx.Size, _TwoInts], bitmap_size_small: Union[wx.Size, _TwoInts], button_size: Union[wx.Size, _TwoInts], normal_region: Union[wx.Rect, _FourInts], dropdown_region: Union[wx.Rect, _FourInts]) -> bool:
1643
+ """
1644
+ GetButtonBarButtonSize(dc, wnd, kind, size, label, text_min_width, bitmap_size_large, bitmap_size_small, button_size, normal_region, dropdown_region) -> bool
1645
+
1646
+ Calculate the size of a button within a wxRibbonButtonBar.
1647
+ """
1648
+
1649
+ def GetButtonBarButtonTextWidth(self, dc: wx.ReadOnlyDC, label: str, kind: Union[RibbonButtonKind, int], size: Union[RibbonButtonBarButtonState, int]) -> int:
1650
+ """
1651
+ GetButtonBarButtonTextWidth(dc, label, kind, size) -> int
1652
+
1653
+ Gets the width of the string if it is used as a wxRibbonButtonBar
1654
+ button label.
1655
+ """
1656
+
1657
+ def GetMinimisedPanelMinimumSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, desired_bitmap_size: Union[wx.Size, _TwoInts], expanded_panel_direction: Union[wx.Direction, int]) -> wx.Size:
1658
+ """
1659
+ GetMinimisedPanelMinimumSize(dc, wnd, desired_bitmap_size, expanded_panel_direction) -> wx.Size
1660
+
1661
+ Calculate the size of a minimised ribbon panel.
1662
+ """
1663
+
1664
+ def GetToolSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, bitmap_size: Union[wx.Size, _TwoInts], kind: Union[RibbonButtonKind, int], is_first: bool, is_last: bool, dropdown_region: Union[wx.Rect, _FourInts]) -> wx.Size:
1665
+ """
1666
+ GetToolSize(dc, wnd, bitmap_size, kind, is_first, is_last, dropdown_region) -> wx.Size
1667
+
1668
+ Calculate the size of a tool within a wxRibbonToolBar.
1669
+ """
1670
+
1671
+ def GetBarToggleButtonArea(self, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1672
+ """
1673
+ GetBarToggleButtonArea(rect) -> wx.Rect
1674
+
1675
+ Calculate the position and size of the ribbon's toggle button.
1676
+ """
1677
+
1678
+ def GetRibbonHelpButtonArea(self, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1679
+ """
1680
+ GetRibbonHelpButtonArea(rect) -> wx.Rect
1681
+
1682
+ Calculate the position and size of the ribbon's help button.
1683
+ """
1684
+ @property
1685
+ def Flags(self) -> int: ...
1686
+ @Flags.setter
1687
+ def Flags(self, value: int, /) -> None: ...
1688
+ # end of class RibbonArtProvider
1689
+
1690
+
1691
+ class RibbonMSWArtProvider(RibbonArtProvider):
1692
+ """
1693
+ RibbonMSWArtProvider(set_colour_scheme=True) -> None
1694
+
1695
+ An art provider which draws a ribbon using gradients to mimic the
1696
+ appearance of Microsoft Office 2007 and the Windows Vista / Aero
1697
+ visual style.
1698
+ """
1699
+
1700
+ def __init__(self, set_colour_scheme: bool=True) -> None:
1701
+ """
1702
+ RibbonMSWArtProvider(set_colour_scheme=True) -> None
1703
+
1704
+ An art provider which draws a ribbon using gradients to mimic the
1705
+ appearance of Microsoft Office 2007 and the Windows Vista / Aero
1706
+ visual style.
1707
+ """
1708
+
1709
+ def SetFlags(self, flags: int) -> None:
1710
+ """
1711
+ SetFlags(flags) -> None
1712
+
1713
+ Set the style flags.
1714
+ """
1715
+
1716
+ def GetFlags(self) -> int:
1717
+ """
1718
+ GetFlags() -> int
1719
+
1720
+ Get the previously set style flags.
1721
+ """
1722
+
1723
+ def GetMetric(self, id: int) -> int:
1724
+ """
1725
+ GetMetric(id) -> int
1726
+
1727
+ Get the value of a certain integer setting.
1728
+ """
1729
+
1730
+ def SetMetric(self, id: int, new_val: int) -> None:
1731
+ """
1732
+ SetMetric(id, new_val) -> None
1733
+
1734
+ Set the value of a certain integer setting to the value new_val.
1735
+ """
1736
+
1737
+ def SetFont(self, id: int, font: wx.Font) -> None:
1738
+ """
1739
+ SetFont(id, font) -> None
1740
+
1741
+ Set the value of a certain font setting to the value font.
1742
+ """
1743
+
1744
+ def GetFont(self, id: int) -> wx.Font:
1745
+ """
1746
+ GetFont(id) -> wx.Font
1747
+
1748
+ Get the value of a certain font setting.
1749
+ """
1750
+
1751
+ def GetColour(self, id: int) -> wx.Colour:
1752
+ """
1753
+ GetColour(id) -> wx.Colour
1754
+
1755
+ Get the value of a certain colour setting.
1756
+ """
1757
+
1758
+ def SetColour(self, id: int, colour: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1759
+ """
1760
+ SetColour(id, colour) -> None
1761
+
1762
+ Set the value of a certain colour setting to the value colour.
1763
+ """
1764
+
1765
+ def GetColourScheme(self) -> Tuple[wx.Colour, wx.Colour, wx.Colour]:
1766
+ """
1767
+ GetColourScheme() -> Tuple[wx.Colour, wx.Colour, wx.Colour]
1768
+
1769
+ Get the current colour scheme.
1770
+ """
1771
+
1772
+ def SetColourScheme(self, primary: Union[wx.Colour, _ThreeInts, _FourInts, str, None], secondary: Union[wx.Colour, _ThreeInts, _FourInts, str, None], tertiary: Union[wx.Colour, _ThreeInts, _FourInts, str, None]) -> None:
1773
+ """
1774
+ SetColourScheme(primary, secondary, tertiary) -> None
1775
+
1776
+ Set all applicable colour settings from a few base colours.
1777
+ """
1778
+
1779
+ def DrawTabCtrlBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1780
+ """
1781
+ DrawTabCtrlBackground(dc, wnd, rect) -> None
1782
+
1783
+ Draw the background of the tab region of a ribbon bar.
1784
+ """
1785
+
1786
+ def DrawTab(self, dc: wx.DC, wnd: wx.Window, tab: RibbonPageTabInfo) -> None:
1787
+ """
1788
+ DrawTab(dc, wnd, tab) -> None
1789
+
1790
+ Draw a single tab in the tab region of a ribbon bar.
1791
+ """
1792
+
1793
+ def DrawTabSeparator(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], visibility: float) -> None:
1794
+ """
1795
+ DrawTabSeparator(dc, wnd, rect, visibility) -> None
1796
+
1797
+ Draw a separator between two tabs in a ribbon bar.
1798
+ """
1799
+
1800
+ def DrawPageBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1801
+ """
1802
+ DrawPageBackground(dc, wnd, rect) -> None
1803
+
1804
+ Draw the background of a ribbon page.
1805
+ """
1806
+
1807
+ def DrawScrollButton(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], style: int) -> None:
1808
+ """
1809
+ DrawScrollButton(dc, wnd, rect, style) -> None
1810
+
1811
+ Draw a ribbon-style scroll button.
1812
+ """
1813
+
1814
+ def DrawPanelBackground(self, dc: wx.DC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts]) -> None:
1815
+ """
1816
+ DrawPanelBackground(dc, wnd, rect) -> None
1817
+
1818
+ Draw the background and chrome for a ribbon panel.
1819
+ """
1820
+
1821
+ def DrawGalleryBackground(self, dc: wx.DC, wnd: RibbonGallery, rect: Union[wx.Rect, _FourInts]) -> None:
1822
+ """
1823
+ DrawGalleryBackground(dc, wnd, rect) -> None
1824
+
1825
+ Draw the background and chrome for a wxRibbonGallery control.
1826
+ """
1827
+
1828
+ def DrawGalleryItemBackground(self, dc: wx.DC, wnd: RibbonGallery, rect: Union[wx.Rect, _FourInts], item: RibbonGalleryItem) -> None:
1829
+ """
1830
+ DrawGalleryItemBackground(dc, wnd, rect, item) -> None
1831
+
1832
+ Draw the background of a single item in a wxRibbonGallery control.
1833
+ """
1834
+
1835
+ def DrawMinimisedPanel(self, dc: wx.DC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts], bitmap: wx.Bitmap) -> None:
1836
+ """
1837
+ DrawMinimisedPanel(dc, wnd, rect, bitmap) -> None
1838
+
1839
+ Draw a minimised ribbon panel.
1840
+ """
1841
+
1842
+ def DrawButtonBarBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1843
+ """
1844
+ DrawButtonBarBackground(dc, wnd, rect) -> None
1845
+
1846
+ Draw the background for a wxRibbonButtonBar control.
1847
+ """
1848
+
1849
+ def DrawButtonBarButton(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], kind: Union[RibbonButtonKind, int], state: int, label: str, bitmap_large: wx.Bitmap, bitmap_small: wx.Bitmap) -> None:
1850
+ """
1851
+ DrawButtonBarButton(dc, wnd, rect, kind, state, label, bitmap_large, bitmap_small) -> None
1852
+
1853
+ Draw a single button for a wxRibbonButtonBar control.
1854
+ """
1855
+
1856
+ def DrawToolBarBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1857
+ """
1858
+ DrawToolBarBackground(dc, wnd, rect) -> None
1859
+
1860
+ Draw the background for a wxRibbonToolBar control.
1861
+ """
1862
+
1863
+ def DrawToolGroupBackground(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts]) -> None:
1864
+ """
1865
+ DrawToolGroupBackground(dc, wnd, rect) -> None
1866
+
1867
+ Draw the background for a group of tools on a wxRibbonToolBar control.
1868
+ """
1869
+
1870
+ def DrawTool(self, dc: wx.DC, wnd: wx.Window, rect: Union[wx.Rect, _FourInts], bitmap: wx.Bitmap, kind: Union[RibbonButtonKind, int], state: int) -> None:
1871
+ """
1872
+ DrawTool(dc, wnd, rect, bitmap, kind, state) -> None
1873
+
1874
+ Draw a single tool (for a wxRibbonToolBar control).
1875
+ """
1876
+
1877
+ def DrawToggleButton(self, dc: wx.DC, wnd: RibbonBar, rect: Union[wx.Rect, _FourInts], mode: Union[RibbonDisplayMode, int]) -> None:
1878
+ """
1879
+ DrawToggleButton(dc, wnd, rect, mode) -> None
1880
+
1881
+ Draw toggle button on wxRibbonBar.
1882
+ """
1883
+
1884
+ def DrawHelpButton(self, dc: wx.DC, wnd: RibbonBar, rect: Union[wx.Rect, _FourInts]) -> None:
1885
+ """
1886
+ DrawHelpButton(dc, wnd, rect) -> None
1887
+
1888
+ Draw help button on wxRibbonBar.
1889
+ """
1890
+
1891
+ def GetBarTabWidth(self, dc: wx.ReadOnlyDC, wnd: wx.Window, label: str, bitmap: wx.Bitmap, ideal: int, small_begin_need_separator: int, small_must_have_separator: int, minimum: int) -> None:
1892
+ """
1893
+ GetBarTabWidth(dc, wnd, label, bitmap, ideal, small_begin_need_separator, small_must_have_separator, minimum) -> None
1894
+
1895
+ Calculate the ideal and minimum width (in pixels) of a tab in a ribbon
1896
+ bar.
1897
+ """
1898
+
1899
+ def GetTabCtrlHeight(self, dc: wx.ReadOnlyDC, wnd: wx.Window, pages: RibbonPageTabInfoArray) -> int:
1900
+ """
1901
+ GetTabCtrlHeight(dc, wnd, pages) -> int
1902
+
1903
+ Calculate the height (in pixels) of the tab region of a ribbon bar.
1904
+ """
1905
+
1906
+ def GetScrollButtonMinimumSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, style: int) -> wx.Size:
1907
+ """
1908
+ GetScrollButtonMinimumSize(dc, wnd, style) -> wx.Size
1909
+
1910
+ Calculate the minimum size (in pixels) of a scroll button.
1911
+ """
1912
+
1913
+ def GetPanelSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, client_size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts]) -> wx.Size:
1914
+ """
1915
+ GetPanelSize(dc, wnd, client_size, client_offset) -> wx.Size
1916
+
1917
+ Calculate the size of a panel for a given client size.
1918
+ """
1919
+
1920
+ def GetPanelClientSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts]) -> wx.Size:
1921
+ """
1922
+ GetPanelClientSize(dc, wnd, size, client_offset) -> wx.Size
1923
+
1924
+ Calculate the client size of a panel for a given overall size.
1925
+ """
1926
+
1927
+ def GetPanelExtButtonArea(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1928
+ """
1929
+ GetPanelExtButtonArea(dc, wnd, rect) -> wx.Rect
1930
+
1931
+ Calculate the position and size of the panel extension button.
1932
+ """
1933
+
1934
+ def GetGallerySize(self, dc: wx.ReadOnlyDC, wnd: RibbonGallery, client_size: Union[wx.Size, _TwoInts]) -> wx.Size:
1935
+ """
1936
+ GetGallerySize(dc, wnd, client_size) -> wx.Size
1937
+
1938
+ Calculate the size of a wxRibbonGallery control for a given client
1939
+ size.
1940
+ """
1941
+
1942
+ def GetGalleryClientSize(self, dc: wx.ReadOnlyDC, wnd: RibbonGallery, size: Union[wx.Size, _TwoInts], client_offset: Union[wx.Point, _TwoInts], scroll_up_button: Union[wx.Rect, _FourInts], scroll_down_button: Union[wx.Rect, _FourInts], extension_button: Union[wx.Rect, _FourInts]) -> wx.Size:
1943
+ """
1944
+ GetGalleryClientSize(dc, wnd, size, client_offset, scroll_up_button, scroll_down_button, extension_button) -> wx.Size
1945
+
1946
+ Calculate the client size of a wxRibbonGallery control for a given
1947
+ size.
1948
+ """
1949
+
1950
+ def GetPageBackgroundRedrawArea(self, dc: wx.ReadOnlyDC, wnd: RibbonPage, page_old_size: Union[wx.Size, _TwoInts], page_new_size: Union[wx.Size, _TwoInts]) -> wx.Rect:
1951
+ """
1952
+ GetPageBackgroundRedrawArea(dc, wnd, page_old_size, page_new_size) -> wx.Rect
1953
+
1954
+ Calculate the portion of a page background which needs to be redrawn
1955
+ when a page is resized.
1956
+ """
1957
+
1958
+ def GetButtonBarButtonSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, kind: Union[RibbonButtonKind, int], size: Union[RibbonButtonBarButtonState, int], label: str, text_min_width: int, bitmap_size_large: Union[wx.Size, _TwoInts], bitmap_size_small: Union[wx.Size, _TwoInts], button_size: Union[wx.Size, _TwoInts], normal_region: Union[wx.Rect, _FourInts], dropdown_region: Union[wx.Rect, _FourInts]) -> bool:
1959
+ """
1960
+ GetButtonBarButtonSize(dc, wnd, kind, size, label, text_min_width, bitmap_size_large, bitmap_size_small, button_size, normal_region, dropdown_region) -> bool
1961
+
1962
+ Calculate the size of a button within a wxRibbonButtonBar.
1963
+ """
1964
+
1965
+ def GetButtonBarButtonTextWidth(self, dc: wx.ReadOnlyDC, label: str, kind: Union[RibbonButtonKind, int], size: Union[RibbonButtonBarButtonState, int]) -> int:
1966
+ """
1967
+ GetButtonBarButtonTextWidth(dc, label, kind, size) -> int
1968
+
1969
+ Gets the width of the string if it is used as a wxRibbonButtonBar
1970
+ button label.
1971
+ """
1972
+
1973
+ def GetMinimisedPanelMinimumSize(self, dc: wx.ReadOnlyDC, wnd: RibbonPanel, desired_bitmap_size: Union[wx.Size, _TwoInts], expanded_panel_direction: Union[wx.Direction, int]) -> wx.Size:
1974
+ """
1975
+ GetMinimisedPanelMinimumSize(dc, wnd, desired_bitmap_size, expanded_panel_direction) -> wx.Size
1976
+
1977
+ Calculate the size of a minimised ribbon panel.
1978
+ """
1979
+
1980
+ def GetToolSize(self, dc: wx.ReadOnlyDC, wnd: wx.Window, bitmap_size: Union[wx.Size, _TwoInts], kind: Union[RibbonButtonKind, int], is_first: bool, is_last: bool, dropdown_region: Union[wx.Rect, _FourInts]) -> wx.Size:
1981
+ """
1982
+ GetToolSize(dc, wnd, bitmap_size, kind, is_first, is_last, dropdown_region) -> wx.Size
1983
+
1984
+ Calculate the size of a tool within a wxRibbonToolBar.
1985
+ """
1986
+
1987
+ def GetBarToggleButtonArea(self, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1988
+ """
1989
+ GetBarToggleButtonArea(rect) -> wx.Rect
1990
+
1991
+ Calculate the position and size of the ribbon's toggle button.
1992
+ """
1993
+
1994
+ def GetRibbonHelpButtonArea(self, rect: Union[wx.Rect, _FourInts]) -> wx.Rect:
1995
+ """
1996
+ GetRibbonHelpButtonArea(rect) -> wx.Rect
1997
+
1998
+ Calculate the position and size of the ribbon's help button.
1999
+ """
2000
+ @property
2001
+ def Flags(self) -> int: ...
2002
+ @Flags.setter
2003
+ def Flags(self, value: int, /) -> None: ...
2004
+ # end of class RibbonMSWArtProvider
2005
+
2006
+
2007
+ class RibbonAUIArtProvider(RibbonMSWArtProvider):
2008
+ """
2009
+ RibbonAUIArtProvider() -> None
2010
+
2011
+ An art provider styled after the wxAUI docking framework.
2012
+ """
2013
+
2014
+ def __init__(self) -> None:
2015
+ """
2016
+ RibbonAUIArtProvider() -> None
2017
+
2018
+ An art provider styled after the wxAUI docking framework.
2019
+ """
2020
+ # end of class RibbonAUIArtProvider
2021
+
2022
+
2023
+ if 'wxMSW' in wx.PlatformInfo:
2024
+ RibbonDefaultArtProvider = RibbonMSWArtProvider
2025
+ else:
2026
+ RibbonDefaultArtProvider = RibbonAUIArtProvider
2027
+ #-- end-ribbon_art --#
2028
+ #-- begin-ribbon_buttonbar --#
2029
+ import wx.siplib
2030
+
2031
+ class RibbonButtonBarButtonBase(wx.siplib.wrapper):
2032
+ pass
2033
+
2034
+ @final
2035
+ class RibbonButtonBarButtonState(int, metaclass=wx.siplib.enumtype):
2036
+ RIBBON_BUTTONBAR_BUTTON_SMALL: ClassVar[RibbonButtonBarButtonState]
2037
+ RIBBON_BUTTONBAR_BUTTON_MEDIUM: ClassVar[RibbonButtonBarButtonState]
2038
+ RIBBON_BUTTONBAR_BUTTON_LARGE: ClassVar[RibbonButtonBarButtonState]
2039
+ RIBBON_BUTTONBAR_BUTTON_SIZE_MASK: ClassVar[RibbonButtonBarButtonState]
2040
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_HOVERED: ClassVar[RibbonButtonBarButtonState]
2041
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_HOVERED: ClassVar[RibbonButtonBarButtonState]
2042
+ RIBBON_BUTTONBAR_BUTTON_HOVER_MASK: ClassVar[RibbonButtonBarButtonState]
2043
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_ACTIVE: ClassVar[RibbonButtonBarButtonState]
2044
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_ACTIVE: ClassVar[RibbonButtonBarButtonState]
2045
+ RIBBON_BUTTONBAR_BUTTON_ACTIVE_MASK: ClassVar[RibbonButtonBarButtonState]
2046
+ RIBBON_BUTTONBAR_BUTTON_DISABLED: ClassVar[RibbonButtonBarButtonState]
2047
+ RIBBON_BUTTONBAR_BUTTON_TOGGLED: ClassVar[RibbonButtonBarButtonState]
2048
+ RIBBON_BUTTONBAR_BUTTON_STATE_MASK: ClassVar[RibbonButtonBarButtonState]
2049
+ RIBBON_BUTTONBAR_BUTTON_SMALL: RibbonButtonBarButtonState
2050
+ RIBBON_BUTTONBAR_BUTTON_MEDIUM: RibbonButtonBarButtonState
2051
+ RIBBON_BUTTONBAR_BUTTON_LARGE: RibbonButtonBarButtonState
2052
+ RIBBON_BUTTONBAR_BUTTON_SIZE_MASK: RibbonButtonBarButtonState
2053
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_HOVERED: RibbonButtonBarButtonState
2054
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_HOVERED: RibbonButtonBarButtonState
2055
+ RIBBON_BUTTONBAR_BUTTON_HOVER_MASK: RibbonButtonBarButtonState
2056
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_ACTIVE: RibbonButtonBarButtonState
2057
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_ACTIVE: RibbonButtonBarButtonState
2058
+ RIBBON_BUTTONBAR_BUTTON_ACTIVE_MASK: RibbonButtonBarButtonState
2059
+ RIBBON_BUTTONBAR_BUTTON_DISABLED: RibbonButtonBarButtonState
2060
+ RIBBON_BUTTONBAR_BUTTON_TOGGLED: RibbonButtonBarButtonState
2061
+ RIBBON_BUTTONBAR_BUTTON_STATE_MASK: RibbonButtonBarButtonState
2062
+ wxEVT_RIBBONBUTTONBAR_CLICKED: int
2063
+ wxEVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED: int
2064
+
2065
+ class RibbonButtonBar(RibbonControl):
2066
+ """
2067
+ RibbonButtonBar() -> None
2068
+ RibbonButtonBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2069
+
2070
+ A ribbon button bar is similar to a traditional toolbar.
2071
+ """
2072
+
2073
+ @overload
2074
+ 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) -> None:
2075
+ ...
2076
+
2077
+ @overload
2078
+ def __init__(self) -> None:
2079
+ """
2080
+ RibbonButtonBar() -> None
2081
+ RibbonButtonBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2082
+
2083
+ A ribbon button bar is similar to a traditional toolbar.
2084
+ """
2085
+
2086
+ 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) -> bool:
2087
+ """
2088
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> bool
2089
+
2090
+ Create a button bar in two-step button bar construction.
2091
+ """
2092
+
2093
+ @overload
2094
+ def AddButton(self, button_id: int, label: str, bitmap: wx.Bitmap, bitmap_small: wx.Bitmap=wx.NullBitmap, bitmap_disabled: wx.Bitmap=wx.NullBitmap, bitmap_small_disabled: wx.Bitmap=wx.NullBitmap, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL, help_string: str='') -> RibbonButtonBarButtonBase:
2095
+ ...
2096
+
2097
+ @overload
2098
+ def AddButton(self, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase:
2099
+ """
2100
+ AddButton(button_id, label, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase
2101
+ AddButton(button_id, label, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap, kind=RIBBON_BUTTON_NORMAL, help_string='') -> RibbonButtonBarButtonBase
2102
+
2103
+ Add a button to the button bar (simple version).
2104
+ """
2105
+
2106
+ def AddDropdownButton(self, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2107
+ """
2108
+ AddDropdownButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2109
+
2110
+ Add a dropdown button to the button bar (simple version).
2111
+ """
2112
+
2113
+ def AddHybridButton(self, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2114
+ """
2115
+ AddHybridButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2116
+
2117
+ Add a hybrid button to the button bar (simple version).
2118
+ """
2119
+
2120
+ def AddToggleButton(self, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2121
+ """
2122
+ AddToggleButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2123
+
2124
+ Add a toggle button to the button bar (simple version).
2125
+ """
2126
+
2127
+ @overload
2128
+ def InsertButton(self, pos: int, button_id: int, label: str, bitmap: wx.Bitmap, bitmap_small: wx.Bitmap=wx.NullBitmap, bitmap_disabled: wx.Bitmap=wx.NullBitmap, bitmap_small_disabled: wx.Bitmap=wx.NullBitmap, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL, help_string: str='') -> RibbonButtonBarButtonBase:
2129
+ ...
2130
+
2131
+ @overload
2132
+ def InsertButton(self, pos: int, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase:
2133
+ """
2134
+ InsertButton(pos, button_id, label, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase
2135
+ InsertButton(pos, button_id, label, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap, kind=RIBBON_BUTTON_NORMAL, help_string='') -> RibbonButtonBarButtonBase
2136
+
2137
+ Inserts a button to the button bar (simple version) at the given
2138
+ position.
2139
+ """
2140
+
2141
+ def InsertDropdownButton(self, pos: int, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2142
+ """
2143
+ InsertDropdownButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2144
+
2145
+ Inserts a dropdown button to the button bar (simple version) at the
2146
+ given position.
2147
+ """
2148
+
2149
+ def InsertHybridButton(self, pos: int, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2150
+ """
2151
+ InsertHybridButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2152
+
2153
+ Inserts a hybrid button to the button bar (simple version) at the
2154
+ given position.
2155
+ """
2156
+
2157
+ def InsertToggleButton(self, pos: int, button_id: int, label: str, bitmap: wx.Bitmap, help_string: str='') -> RibbonButtonBarButtonBase:
2158
+ """
2159
+ InsertToggleButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase
2160
+
2161
+ Inserts a toggle button to the button bar (simple version) at the
2162
+ given position.
2163
+ """
2164
+
2165
+ def GetButtonCount(self) -> int:
2166
+ """
2167
+ GetButtonCount() -> int
2168
+
2169
+ Returns the number of buttons in this button bar.
2170
+ """
2171
+
2172
+ def SetItemClientData(self, item: RibbonButtonBarButtonBase, data: Any) -> None:
2173
+ """
2174
+ SetItemClientData(item, data) -> None
2175
+
2176
+ Set the client object associated with a button.
2177
+ """
2178
+
2179
+ def GetItemClientData(self, item: RibbonButtonBarButtonBase) -> Any:
2180
+ """
2181
+ GetItemClientData(item) -> Any
2182
+
2183
+ Get the client object associated with a button.
2184
+ """
2185
+
2186
+ def GetItem(self, n: int) -> RibbonButtonBarButtonBase:
2187
+ """
2188
+ GetItem(n) -> RibbonButtonBarButtonBase
2189
+
2190
+ Returns the N-th button of the bar.
2191
+ """
2192
+
2193
+ def GetItemById(self, id: int) -> RibbonButtonBarButtonBase:
2194
+ """
2195
+ GetItemById(id) -> RibbonButtonBarButtonBase
2196
+
2197
+ Returns the first button having a given id or nullptr if none matches.
2198
+ """
2199
+
2200
+ def GetItemId(self, item: RibbonButtonBarButtonBase) -> int:
2201
+ """
2202
+ GetItemId(item) -> int
2203
+
2204
+ Returns the id of a button.
2205
+ """
2206
+
2207
+ def GetItemRect(self, button_id: int) -> wx.Rect:
2208
+ """
2209
+ GetItemRect(button_id) -> wx.Rect
2210
+
2211
+ Returns the items's rect with coordinates relative to the button bar's
2212
+ parent, or a default-constructed rect if the tool is not found.
2213
+ """
2214
+
2215
+ def Realize(self) -> bool:
2216
+ """
2217
+ Realize() -> bool
2218
+
2219
+ Calculate button layouts and positions.
2220
+ """
2221
+
2222
+ def ClearButtons(self) -> None:
2223
+ """
2224
+ ClearButtons() -> None
2225
+
2226
+ Delete all buttons from the button bar.
2227
+ """
2228
+
2229
+ def DeleteButton(self, button_id: int) -> bool:
2230
+ """
2231
+ DeleteButton(button_id) -> bool
2232
+
2233
+ Delete a single button from the button bar.
2234
+ """
2235
+
2236
+ def EnableButton(self, button_id: int, enable: bool=True) -> None:
2237
+ """
2238
+ EnableButton(button_id, enable=True) -> None
2239
+
2240
+ Enable or disable a single button on the bar.
2241
+ """
2242
+
2243
+ def ToggleButton(self, button_id: int, checked: bool) -> None:
2244
+ """
2245
+ ToggleButton(button_id, checked) -> None
2246
+
2247
+ Set a toggle button to the checked or unchecked state.
2248
+ """
2249
+
2250
+ def SetButtonIcon(self, button_id: int, bitmap: wx.Bitmap, bitmap_small: wx.Bitmap=wx.NullBitmap, bitmap_disabled: wx.Bitmap=wx.NullBitmap, bitmap_small_disabled: wx.Bitmap=wx.NullBitmap) -> None:
2251
+ """
2252
+ SetButtonIcon(button_id, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap) -> None
2253
+
2254
+ Changes the bitmap of an existing button.
2255
+ """
2256
+
2257
+ def SetButtonText(self, button_id: int, label: str) -> None:
2258
+ """
2259
+ SetButtonText(button_id, label) -> None
2260
+
2261
+ Changes the label text of an existing button.
2262
+ """
2263
+
2264
+ @overload
2265
+ def SetButtonTextMinWidth(self, button_id: int, label: str) -> None:
2266
+ ...
2267
+
2268
+ @overload
2269
+ def SetButtonTextMinWidth(self, button_id: int, min_width_medium: int, min_width_large: int) -> None:
2270
+ """
2271
+ SetButtonTextMinWidth(button_id, min_width_medium, min_width_large) -> None
2272
+ SetButtonTextMinWidth(button_id, label) -> None
2273
+
2274
+ Sets the minimum width of the button label, to indicate to the
2275
+ wxRibbonArtProvider layout mechanism that this is the minimum required
2276
+ size.
2277
+ """
2278
+
2279
+ def SetButtonMinSizeClass(self, button_id: int, min_size_class: Union[RibbonButtonBarButtonState, int]) -> None:
2280
+ """
2281
+ SetButtonMinSizeClass(button_id, min_size_class) -> None
2282
+
2283
+ Sets the minimum size class of a ribbon button.
2284
+ """
2285
+
2286
+ def SetButtonMaxSizeClass(self, button_id: int, max_size_class: Union[RibbonButtonBarButtonState, int]) -> None:
2287
+ """
2288
+ SetButtonMaxSizeClass(button_id, max_size_class) -> None
2289
+
2290
+ Sets the maximum size class of a ribbon button.
2291
+ """
2292
+
2293
+ def GetActiveItem(self) -> RibbonButtonBarButtonBase:
2294
+ """
2295
+ GetActiveItem() -> RibbonButtonBarButtonBase
2296
+
2297
+ Returns the active item of the button bar or nullptr if there is none.
2298
+ """
2299
+
2300
+ def GetHoveredItem(self) -> RibbonButtonBarButtonBase:
2301
+ """
2302
+ GetHoveredItem() -> RibbonButtonBarButtonBase
2303
+
2304
+ Returns the hovered item of the button bar or nullptr if there is
2305
+ none.
2306
+ """
2307
+
2308
+ def SetShowToolTipsForDisabled(self, show: bool) -> None:
2309
+ """
2310
+ SetShowToolTipsForDisabled(show) -> None
2311
+
2312
+ Indicates whether tooltips are shown for disabled buttons.
2313
+ """
2314
+
2315
+ def GetShowToolTipsForDisabled(self) -> bool:
2316
+ """
2317
+ GetShowToolTipsForDisabled() -> bool
2318
+
2319
+ Sets whether tooltips should be shown for disabled buttons or not.
2320
+ """
2321
+
2322
+ def SetKeyTip(self, button_id: int, keytip: str) -> None:
2323
+ """
2324
+ SetKeyTip(button_id, keytip) -> None
2325
+
2326
+ Assigns the KeyTip used to click the given button.
2327
+ """
2328
+
2329
+ def GetKeyTip(self, button_id: int) -> str:
2330
+ """
2331
+ GetKeyTip(button_id) -> str
2332
+
2333
+ Returns the KeyTip of the given button, or an empty string.
2334
+ """
2335
+
2336
+ def SetDropdownKeyTip(self, button_id: int, keytip: str) -> None:
2337
+ """
2338
+ SetDropdownKeyTip(button_id, keytip) -> None
2339
+
2340
+ Assigns the KeyTip used to open a hybrid button's dropdown menu.
2341
+ """
2342
+
2343
+ def GetDropdownKeyTip(self, button_id: int) -> str:
2344
+ """
2345
+ GetDropdownKeyTip(button_id) -> str
2346
+
2347
+ Returns the dropdown KeyTip of the given button, or an empty string.
2348
+ """
2349
+
2350
+ @staticmethod
2351
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2352
+ """
2353
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2354
+ """
2355
+ @property
2356
+ def ActiveItem(self) -> RibbonButtonBarButtonBase: ...
2357
+ @property
2358
+ def ButtonCount(self) -> int: ...
2359
+ @property
2360
+ def HoveredItem(self) -> RibbonButtonBarButtonBase: ...
2361
+ @property
2362
+ def ShowToolTipsForDisabled(self) -> bool: ...
2363
+ @ShowToolTipsForDisabled.setter
2364
+ def ShowToolTipsForDisabled(self, value: bool, /) -> None: ...
2365
+ # end of class RibbonButtonBar
2366
+
2367
+
2368
+ class RibbonButtonBarEvent(wx.CommandEvent):
2369
+ """
2370
+ RibbonButtonBarEvent(command_type=wx.wxEVT_NULL, win_id=0, bar=None, button=None) -> None
2371
+
2372
+ Event used to indicate various actions relating to a button on a
2373
+ wxRibbonButtonBar.
2374
+ """
2375
+
2376
+ def __init__(self, command_type: int=wx.wxEVT_NULL, win_id: int=0, bar: Optional[RibbonButtonBar]=None, button: Optional[RibbonButtonBarButtonBase]=None) -> None:
2377
+ """
2378
+ RibbonButtonBarEvent(command_type=wx.wxEVT_NULL, win_id=0, bar=None, button=None) -> None
2379
+
2380
+ Event used to indicate various actions relating to a button on a
2381
+ wxRibbonButtonBar.
2382
+ """
2383
+
2384
+ def GetBar(self) -> RibbonButtonBar:
2385
+ """
2386
+ GetBar() -> RibbonButtonBar
2387
+
2388
+ Returns the bar which contains the button which the event relates to.
2389
+ """
2390
+
2391
+ def SetBar(self, bar: RibbonButtonBar) -> None:
2392
+ """
2393
+ SetBar(bar) -> None
2394
+
2395
+ Sets the button bar relating to this event.
2396
+ """
2397
+
2398
+ def GetButton(self) -> RibbonButtonBarButtonBase:
2399
+ """
2400
+ GetButton() -> RibbonButtonBarButtonBase
2401
+
2402
+ Returns the button which the event relates to.
2403
+ """
2404
+
2405
+ def SetButton(self, bar: RibbonButtonBarButtonBase) -> None:
2406
+ """
2407
+ SetButton(bar) -> None
2408
+
2409
+ Sets the button relating to this event.
2410
+ """
2411
+
2412
+ def PopupMenu(self, menu: wx.Menu) -> bool:
2413
+ """
2414
+ PopupMenu(menu) -> bool
2415
+
2416
+ Display a popup menu as a result of this (dropdown clicked) event.
2417
+ """
2418
+ @property
2419
+ def Bar(self) -> RibbonButtonBar: ...
2420
+ @Bar.setter
2421
+ def Bar(self, value: RibbonButtonBar, /) -> None: ...
2422
+ @property
2423
+ def Button(self) -> RibbonButtonBarButtonBase: ...
2424
+ @Button.setter
2425
+ def Button(self, value: RibbonButtonBarButtonBase, /) -> None: ...
2426
+ # end of class RibbonButtonBarEvent
2427
+
2428
+
2429
+ EVT_RIBBONBUTTONBAR_CLICKED: wx.PyEventBinder[RibbonButtonBarEvent]
2430
+ EVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED: wx.PyEventBinder[RibbonButtonBarEvent]
2431
+ #-- end-ribbon_buttonbar --#
2432
+ #-- begin-ribbon_gallery --#
2433
+ import wx.siplib
2434
+
2435
+ class RibbonGalleryItem(wx.siplib.wrapper):
2436
+ pass
2437
+
2438
+ @final
2439
+ class RibbonGalleryButtonState(int, metaclass=wx.siplib.enumtype):
2440
+ RIBBON_GALLERY_BUTTON_NORMAL: ClassVar[RibbonGalleryButtonState]
2441
+ RIBBON_GALLERY_BUTTON_HOVERED: ClassVar[RibbonGalleryButtonState]
2442
+ RIBBON_GALLERY_BUTTON_ACTIVE: ClassVar[RibbonGalleryButtonState]
2443
+ RIBBON_GALLERY_BUTTON_DISABLED: ClassVar[RibbonGalleryButtonState]
2444
+ RIBBON_GALLERY_BUTTON_NORMAL: RibbonGalleryButtonState
2445
+ RIBBON_GALLERY_BUTTON_HOVERED: RibbonGalleryButtonState
2446
+ RIBBON_GALLERY_BUTTON_ACTIVE: RibbonGalleryButtonState
2447
+ RIBBON_GALLERY_BUTTON_DISABLED: RibbonGalleryButtonState
2448
+ wxEVT_RIBBONGALLERY_HOVER_CHANGED: int
2449
+ wxEVT_RIBBONGALLERY_SELECTED: int
2450
+ wxEVT_RIBBONGALLERY_CLICKED: int
2451
+
2452
+ class RibbonGallery(RibbonControl):
2453
+ """
2454
+ RibbonGallery() -> None
2455
+ RibbonGallery(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2456
+
2457
+ A ribbon gallery is like a wxListBox, but for bitmaps rather than
2458
+ strings.
2459
+ """
2460
+
2461
+ @overload
2462
+ 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) -> None:
2463
+ ...
2464
+
2465
+ @overload
2466
+ def __init__(self) -> None:
2467
+ """
2468
+ RibbonGallery() -> None
2469
+ RibbonGallery(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2470
+
2471
+ A ribbon gallery is like a wxListBox, but for bitmaps rather than
2472
+ strings.
2473
+ """
2474
+
2475
+ 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) -> bool:
2476
+ """
2477
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> bool
2478
+
2479
+ Create a gallery in two-step gallery construction.
2480
+ """
2481
+
2482
+ def Clear(self) -> None:
2483
+ """
2484
+ Clear() -> None
2485
+
2486
+ Remove all items from the gallery.
2487
+ """
2488
+
2489
+ def IsEmpty(self) -> bool:
2490
+ """
2491
+ IsEmpty() -> bool
2492
+
2493
+ Query if the gallery has no items in it.
2494
+ """
2495
+
2496
+ def GetCount(self) -> int:
2497
+ """
2498
+ GetCount() -> int
2499
+
2500
+ Get the number of items in the gallery.
2501
+ """
2502
+
2503
+ def GetItem(self, n: int) -> RibbonGalleryItem:
2504
+ """
2505
+ GetItem(n) -> RibbonGalleryItem
2506
+
2507
+ Get an item by index.
2508
+ """
2509
+
2510
+ @overload
2511
+ def Append(self, bitmap: wx.Bitmap, id: int, label: str) -> RibbonGalleryItem:
2512
+ ...
2513
+
2514
+ @overload
2515
+ def Append(self, bitmap: wx.Bitmap, id: int, clientData: Any) -> RibbonGalleryItem:
2516
+ ...
2517
+
2518
+ @overload
2519
+ def Append(self, bitmap: wx.Bitmap, id: int) -> RibbonGalleryItem:
2520
+ """
2521
+ Append(bitmap, id) -> RibbonGalleryItem
2522
+ Append(bitmap, id, label) -> RibbonGalleryItem
2523
+ Append(bitmap, id, clientData) -> RibbonGalleryItem
2524
+
2525
+ Add an item to the gallery (with no client data).
2526
+ """
2527
+
2528
+ def SetItemLabel(self, item: RibbonGalleryItem, label: str) -> None:
2529
+ """
2530
+ SetItemLabel(item, label) -> None
2531
+
2532
+ Set the label of a gallery item.
2533
+ """
2534
+
2535
+ def GetItemLabel(self, item: RibbonGalleryItem) -> str:
2536
+ """
2537
+ GetItemLabel(item) -> str
2538
+
2539
+ Return the label of a gallery item.
2540
+ """
2541
+
2542
+ def SetItemClientData(self, item: RibbonGalleryItem, data: Any) -> None:
2543
+ """
2544
+ SetItemClientData(item, data) -> None
2545
+
2546
+ Set the client object associated with a gallery item.
2547
+ """
2548
+
2549
+ def GetItemClientData(self, item: RibbonGalleryItem) -> Any:
2550
+ """
2551
+ GetItemClientData(item) -> Any
2552
+
2553
+ Get the client object associated with a gallery item.
2554
+ """
2555
+
2556
+ def SetSelection(self, item: RibbonGalleryItem) -> None:
2557
+ """
2558
+ SetSelection(item) -> None
2559
+
2560
+ Set the selection to the given item, or removes the selection if item
2561
+ == nullptr.
2562
+ """
2563
+
2564
+ def GetSelection(self) -> RibbonGalleryItem:
2565
+ """
2566
+ GetSelection() -> RibbonGalleryItem
2567
+
2568
+ Get the currently selected item, or nullptr if there is none.
2569
+ """
2570
+
2571
+ def GetHoveredItem(self) -> RibbonGalleryItem:
2572
+ """
2573
+ GetHoveredItem() -> RibbonGalleryItem
2574
+
2575
+ Get the currently hovered item, or nullptr if there is none.
2576
+ """
2577
+
2578
+ def GetActiveItem(self) -> RibbonGalleryItem:
2579
+ """
2580
+ GetActiveItem() -> RibbonGalleryItem
2581
+
2582
+ Get the currently active item, or nullptr if there is none.
2583
+ """
2584
+
2585
+ def GetUpButtonState(self) -> RibbonGalleryButtonState:
2586
+ """
2587
+ GetUpButtonState() -> RibbonGalleryButtonState
2588
+
2589
+ Get the state of the scroll up button.
2590
+ """
2591
+
2592
+ def GetDownButtonState(self) -> RibbonGalleryButtonState:
2593
+ """
2594
+ GetDownButtonState() -> RibbonGalleryButtonState
2595
+
2596
+ Get the state of the scroll down button.
2597
+ """
2598
+
2599
+ def GetExtensionButtonState(self) -> RibbonGalleryButtonState:
2600
+ """
2601
+ GetExtensionButtonState() -> RibbonGalleryButtonState
2602
+
2603
+ Get the state of the "extension" button.
2604
+ """
2605
+
2606
+ def IsHovered(self) -> bool:
2607
+ """
2608
+ IsHovered() -> bool
2609
+
2610
+ Query is the mouse is currently hovered over the gallery.
2611
+ """
2612
+
2613
+ def ScrollLines(self, lines: int) -> bool:
2614
+ """
2615
+ ScrollLines(lines) -> bool
2616
+
2617
+ Scroll the gallery contents by some amount.
2618
+ """
2619
+
2620
+ def ScrollPixels(self, pixels: int) -> bool:
2621
+ """
2622
+ ScrollPixels(pixels) -> bool
2623
+
2624
+ Scroll the gallery contents by some fine-grained amount.
2625
+ """
2626
+
2627
+ def EnsureVisible(self, item: RibbonGalleryItem) -> None:
2628
+ """
2629
+ EnsureVisible(item) -> None
2630
+
2631
+ Scroll the gallery to ensure that the given item is visible.
2632
+ """
2633
+
2634
+ def SetKeyTip(self, keytip: str) -> None:
2635
+ """
2636
+ SetKeyTip(keytip) -> None
2637
+
2638
+ Assigns the KeyTip used to reach this gallery.
2639
+ """
2640
+
2641
+ def GetKeyTip(self) -> str:
2642
+ """
2643
+ GetKeyTip() -> str
2644
+
2645
+ Returns the KeyTip of this gallery, or an empty string.
2646
+ """
2647
+
2648
+ @staticmethod
2649
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
2650
+ """
2651
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
2652
+ """
2653
+ @property
2654
+ def ActiveItem(self) -> RibbonGalleryItem: ...
2655
+ @property
2656
+ def Count(self) -> int: ...
2657
+ @property
2658
+ def DownButtonState(self) -> RibbonGalleryButtonState: ...
2659
+ @property
2660
+ def ExtensionButtonState(self) -> RibbonGalleryButtonState: ...
2661
+ @property
2662
+ def HoveredItem(self) -> RibbonGalleryItem: ...
2663
+ @property
2664
+ def KeyTip(self) -> str: ...
2665
+ @KeyTip.setter
2666
+ def KeyTip(self, value: str, /) -> None: ...
2667
+ @property
2668
+ def Selection(self) -> RibbonGalleryItem: ...
2669
+ @Selection.setter
2670
+ def Selection(self, value: RibbonGalleryItem, /) -> None: ...
2671
+ @property
2672
+ def UpButtonState(self) -> RibbonGalleryButtonState: ...
2673
+ # end of class RibbonGallery
2674
+
2675
+
2676
+ class RibbonGalleryEvent(wx.CommandEvent):
2677
+ """
2678
+ RibbonGalleryEvent(command_type=wx.wxEVT_NULL, win_id=0, gallery=None, item=None) -> None
2679
+ """
2680
+
2681
+ def __init__(self, command_type: int=wx.wxEVT_NULL, win_id: int=0, gallery: Optional[RibbonGallery]=None, item: Optional[RibbonGalleryItem]=None) -> None:
2682
+ """
2683
+ RibbonGalleryEvent(command_type=wx.wxEVT_NULL, win_id=0, gallery=None, item=None) -> None
2684
+ """
2685
+
2686
+ def GetGallery(self) -> RibbonGallery:
2687
+ """
2688
+ GetGallery() -> RibbonGallery
2689
+
2690
+ Returns the gallery which the event relates to.
2691
+ """
2692
+
2693
+ def GetGalleryItem(self) -> RibbonGalleryItem:
2694
+ """
2695
+ GetGalleryItem() -> RibbonGalleryItem
2696
+
2697
+ Returns the gallery item which the event relates to, or nullptr if it
2698
+ does not relate to an item.
2699
+ """
2700
+
2701
+ def SetGallery(self, gallery: RibbonGallery) -> None:
2702
+ """
2703
+ SetGallery(gallery) -> None
2704
+
2705
+ Sets the gallery relating to this event.
2706
+ """
2707
+
2708
+ def SetGalleryItem(self, item: RibbonGalleryItem) -> None:
2709
+ """
2710
+ SetGalleryItem(item) -> None
2711
+
2712
+ Sets the gallery item relating to this event.
2713
+ """
2714
+ @property
2715
+ def Gallery(self) -> RibbonGallery: ...
2716
+ @Gallery.setter
2717
+ def Gallery(self, value: RibbonGallery, /) -> None: ...
2718
+ @property
2719
+ def GalleryItem(self) -> RibbonGalleryItem: ...
2720
+ @GalleryItem.setter
2721
+ def GalleryItem(self, value: RibbonGalleryItem, /) -> None: ...
2722
+ # end of class RibbonGalleryEvent
2723
+
2724
+
2725
+ EVT_RIBBONGALLERY_HOVER_CHANGED: wx.PyEventBinder[RibbonGalleryEvent]
2726
+ EVT_RIBBONGALLERY_SELECTED: wx.PyEventBinder[RibbonGalleryEvent]
2727
+ EVT_RIBBONGALLERY_CLICKED: wx.PyEventBinder[RibbonGalleryEvent]
2728
+ #-- end-ribbon_gallery --#
2729
+ #-- begin-ribbon_toolbar --#
2730
+ import wx.siplib
2731
+
2732
+ class RibbonToolBarToolBase(wx.siplib.wrapper):
2733
+ pass
2734
+ wxEVT_RIBBONTOOLBAR_CLICKED: int
2735
+ wxEVT_RIBBONTOOLBAR_DROPDOWN_CLICKED: int
2736
+
2737
+ class RibbonToolBar(RibbonControl):
2738
+ """
2739
+ RibbonToolBar() -> None
2740
+ RibbonToolBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2741
+
2742
+ A ribbon tool bar is similar to a traditional toolbar which has no
2743
+ labels.
2744
+ """
2745
+
2746
+ @overload
2747
+ 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) -> None:
2748
+ ...
2749
+
2750
+ @overload
2751
+ def __init__(self) -> None:
2752
+ """
2753
+ RibbonToolBar() -> None
2754
+ RibbonToolBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None
2755
+
2756
+ A ribbon tool bar is similar to a traditional toolbar which has no
2757
+ labels.
2758
+ """
2759
+
2760
+ 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) -> bool:
2761
+ """
2762
+ Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> bool
2763
+
2764
+ Create a tool bar in two-step tool bar construction.
2765
+ """
2766
+
2767
+ @overload
2768
+ def AddTool(self, tool_id: int, bitmap: wx.Bitmap, bitmap_disabled: wx.Bitmap=wx.NullBitmap, help_string: str='', kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL, clientData: Optional[Any]=None) -> RibbonToolBarToolBase:
2769
+ ...
2770
+
2771
+ @overload
2772
+ def AddTool(self, tool_id: int, bitmap: wx.Bitmap, help_string: str, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL) -> RibbonToolBarToolBase:
2773
+ """
2774
+ AddTool(tool_id, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonToolBarToolBase
2775
+ AddTool(tool_id, bitmap, bitmap_disabled=wx.NullBitmap, help_string='', kind=RIBBON_BUTTON_NORMAL, clientData=None) -> RibbonToolBarToolBase
2776
+
2777
+ Add a tool to the tool bar (simple version).
2778
+ """
2779
+
2780
+ def AddDropdownTool(self, tool_id: int, bitmap: wx.Bitmap, help_string: str='') -> RibbonToolBarToolBase:
2781
+ """
2782
+ AddDropdownTool(tool_id, bitmap, help_string='') -> RibbonToolBarToolBase
2783
+
2784
+ Add a dropdown tool to the tool bar (simple version).
2785
+ """
2786
+
2787
+ def AddHybridTool(self, tool_id: int, bitmap: wx.Bitmap, help_string: str='') -> RibbonToolBarToolBase:
2788
+ """
2789
+ AddHybridTool(tool_id, bitmap, help_string='') -> RibbonToolBarToolBase
2790
+
2791
+ Add a hybrid tool to the tool bar (simple version).
2792
+ """
2793
+
2794
+ def AddToggleTool(self, tool_id: int, bitmap: wx.Bitmap, help_string: str) -> RibbonToolBarToolBase:
2795
+ """
2796
+ AddToggleTool(tool_id, bitmap, help_string) -> RibbonToolBarToolBase
2797
+
2798
+ Add a toggle tool to the tool bar (simple version).
2799
+ """
2800
+
2801
+ def AddSeparator(self) -> RibbonToolBarToolBase:
2802
+ """
2803
+ AddSeparator() -> RibbonToolBarToolBase
2804
+
2805
+ Add a separator to the tool bar.
2806
+ """
2807
+
2808
+ @overload
2809
+ def InsertTool(self, pos: int, tool_id: int, bitmap: wx.Bitmap, bitmap_disabled: wx.Bitmap=wx.NullBitmap, help_string: str='', kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL, clientData: Optional[Any]=None) -> RibbonToolBarToolBase:
2810
+ ...
2811
+
2812
+ @overload
2813
+ def InsertTool(self, pos: int, tool_id: int, bitmap: wx.Bitmap, help_string: str, kind: Union[RibbonButtonKind, int]=RIBBON_BUTTON_NORMAL) -> RibbonToolBarToolBase:
2814
+ """
2815
+ InsertTool(pos, tool_id, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonToolBarToolBase
2816
+ InsertTool(pos, tool_id, bitmap, bitmap_disabled=wx.NullBitmap, help_string='', kind=RIBBON_BUTTON_NORMAL, clientData=None) -> RibbonToolBarToolBase
2817
+
2818
+ Insert a tool to the tool bar (simple version) as the specified
2819
+ position.
2820
+ """
2821
+
2822
+ def InsertDropdownTool(self, pos: int, tool_id: int, bitmap: wx.Bitmap, help_string: str='') -> RibbonToolBarToolBase:
2823
+ """
2824
+ InsertDropdownTool(pos, tool_id, bitmap, help_string='') -> RibbonToolBarToolBase
2825
+
2826
+ Insert a dropdown tool to the tool bar (simple version) as the
2827
+ specified position.
2828
+ """
2829
+
2830
+ def InsertHybridTool(self, pos: int, tool_id: int, bitmap: wx.Bitmap, help_string: str='') -> RibbonToolBarToolBase:
2831
+ """
2832
+ InsertHybridTool(pos, tool_id, bitmap, help_string='') -> RibbonToolBarToolBase
2833
+
2834
+ Insert a hybrid tool to the tool bar (simple version) as the specified
2835
+ position.
2836
+ """
2837
+
2838
+ def InsertToggleTool(self, pos: int, tool_id: int, bitmap: wx.Bitmap, help_string: str='') -> RibbonToolBarToolBase:
2839
+ """
2840
+ InsertToggleTool(pos, tool_id, bitmap, help_string='') -> RibbonToolBarToolBase
2841
+
2842
+ Insert a toggle tool to the tool bar (simple version) as the specified
2843
+ position.
2844
+ """
2845
+
2846
+ def InsertSeparator(self, pos: int) -> RibbonToolBarToolBase:
2847
+ """
2848
+ InsertSeparator(pos) -> RibbonToolBarToolBase
2849
+
2850
+ Insert a separator to the tool bar at the specified position.
2851
+ """
2852
+
2853
+ def ClearTools(self) -> None:
2854
+ """
2855
+ ClearTools() -> None
2856
+
2857
+ Deletes all the tools in the toolbar.
2858
+ """
2859
+
2860
+ def DeleteTool(self, tool_id: int) -> bool:
2861
+ """
2862
+ DeleteTool(tool_id) -> bool
2863
+
2864
+ Removes the specified tool from the toolbar and deletes it.
2865
+ """
2866
+
2867
+ def DeleteToolByPos(self, pos: int) -> bool:
2868
+ """
2869
+ DeleteToolByPos(pos) -> bool
2870
+
2871
+ This function behaves like DeleteTool() but it deletes the tool at the
2872
+ specified position and not the one with the given id.
2873
+ """
2874
+
2875
+ def FindById(self, tool_id: int) -> RibbonToolBarToolBase:
2876
+ """
2877
+ FindById(tool_id) -> RibbonToolBarToolBase
2878
+
2879
+ Returns a pointer to the tool opaque structure by id or nullptr if no
2880
+ corresponding tool is found.
2881
+ """
2882
+
2883
+ @overload
2884
+ def GetToolByPos(self, x: int, y: int) -> RibbonToolBarToolBase:
2885
+ ...
2886
+
2887
+ @overload
2888
+ def GetToolByPos(self, pos: int) -> RibbonToolBarToolBase:
2889
+ """
2890
+ GetToolByPos(pos) -> RibbonToolBarToolBase
2891
+ GetToolByPos(x, y) -> RibbonToolBarToolBase
2892
+
2893
+ Return the opaque pointer corresponding to the given tool.
2894
+ """
2895
+
2896
+ def GetToolCount(self) -> int:
2897
+ """
2898
+ GetToolCount() -> int
2899
+
2900
+ Returns the number of tools in the toolbar.
2901
+ """
2902
+
2903
+ def GetToolId(self, tool: RibbonToolBarToolBase) -> int:
2904
+ """
2905
+ GetToolId(tool) -> int
2906
+
2907
+ Return the id associated to the tool opaque structure.
2908
+ """
2909
+
2910
+ def GetActiveTool(self) -> RibbonToolBarToolBase:
2911
+ """
2912
+ GetActiveTool() -> RibbonToolBarToolBase
2913
+
2914
+ Returns the active item of the tool bar or nullptr if there is none.
2915
+ """
2916
+
2917
+ def GetToolClientData(self, tool_id: int) -> Any:
2918
+ """
2919
+ GetToolClientData(tool_id) -> Any
2920
+
2921
+ Get any client data associated with the tool.
2922
+ """
2923
+
2924
+ def GetToolEnabled(self, tool_id: int) -> bool:
2925
+ """
2926
+ GetToolEnabled(tool_id) -> bool
2927
+
2928
+ Called to determine whether a tool is enabled (responds to user
2929
+ input).
2930
+ """
2931
+
2932
+ def GetToolHelpString(self, tool_id: int) -> str:
2933
+ """
2934
+ GetToolHelpString(tool_id) -> str
2935
+
2936
+ Returns the help string for the given tool.
2937
+ """
2938
+
2939
+ def GetToolKind(self, tool_id: int) -> RibbonButtonKind:
2940
+ """
2941
+ GetToolKind(tool_id) -> RibbonButtonKind
2942
+
2943
+ Return the kind of the given tool.
2944
+ """
2945
+
2946
+ def GetToolPos(self, tool_id: int) -> int:
2947
+ """
2948
+ GetToolPos(tool_id) -> int
2949
+
2950
+ Returns the tool position in the toolbar, or wxNOT_FOUND if the tool
2951
+ is not found.
2952
+ """
2953
+
2954
+ def GetToolRect(self, tool_id: int) -> wx.Rect:
2955
+ """
2956
+ GetToolRect(tool_id) -> wx.Rect
2957
+
2958
+ Returns the tool's rect with coordinates relative to the toolbar's
2959
+ parent, or a default-constructed rect if the tool is not found.
2960
+ """
2961
+
2962
+ def GetToolState(self, tool_id: int) -> bool:
2963
+ """
2964
+ GetToolState(tool_id) -> bool
2965
+
2966
+ Gets the on/off state of a toggle tool.
2967
+ """
2968
+
2969
+ def Realize(self) -> bool:
2970
+ """
2971
+ Realize() -> bool
2972
+
2973
+ Calculate tool layouts and positions.
2974
+ """
2975
+
2976
+ def SetRows(self, nMin: int, nMax: int=-1) -> None:
2977
+ """
2978
+ SetRows(nMin, nMax=-1) -> None
2979
+
2980
+ Set the number of rows to distribute tool groups over.
2981
+ """
2982
+
2983
+ def SetToolClientData(self, tool_id: int, clientData: Any) -> None:
2984
+ """
2985
+ SetToolClientData(tool_id, clientData) -> None
2986
+
2987
+ Sets the client data associated with the tool.
2988
+ """
2989
+
2990
+ def SetToolDisabledBitmap(self, tool_id: int, bitmap: wx.Bitmap) -> None:
2991
+ """
2992
+ SetToolDisabledBitmap(tool_id, bitmap) -> None
2993
+
2994
+ Sets the bitmap to be used by the tool with the given ID when the tool
2995
+ is in a disabled state.
2996
+ """
2997
+
2998
+ def SetToolHelpString(self, tool_id: int, helpString: str) -> None:
2999
+ """
3000
+ SetToolHelpString(tool_id, helpString) -> None
3001
+
3002
+ Sets the help string shown in tooltip for the given tool.
3003
+ """
3004
+
3005
+ def SetToolNormalBitmap(self, tool_id: int, bitmap: wx.Bitmap) -> None:
3006
+ """
3007
+ SetToolNormalBitmap(tool_id, bitmap) -> None
3008
+
3009
+ Sets the bitmap to be used by the tool with the given ID.
3010
+ """
3011
+
3012
+ def EnableTool(self, tool_id: int, enable: bool=True) -> None:
3013
+ """
3014
+ EnableTool(tool_id, enable=True) -> None
3015
+
3016
+ Enable or disable a single tool on the bar.
3017
+ """
3018
+
3019
+ def ToggleTool(self, tool_id: int, checked: bool) -> None:
3020
+ """
3021
+ ToggleTool(tool_id, checked) -> None
3022
+
3023
+ Set a toggle tool to the checked or unchecked state.
3024
+ """
3025
+
3026
+ def SetKeyTip(self, tool_id: int, keytip: str) -> None:
3027
+ """
3028
+ SetKeyTip(tool_id, keytip) -> None
3029
+
3030
+ Assigns the KeyTip used to click the given tool.
3031
+ """
3032
+
3033
+ def GetKeyTip(self, tool_id: int) -> str:
3034
+ """
3035
+ GetKeyTip(tool_id) -> str
3036
+
3037
+ Returns the KeyTip of the given tool, or an empty string.
3038
+ """
3039
+
3040
+ def SetDropdownKeyTip(self, tool_id: int, keytip: str) -> None:
3041
+ """
3042
+ SetDropdownKeyTip(tool_id, keytip) -> None
3043
+
3044
+ Assigns the KeyTip used to open a hybrid tool's dropdown menu.
3045
+ """
3046
+
3047
+ def GetDropdownKeyTip(self, tool_id: int) -> str:
3048
+ """
3049
+ GetDropdownKeyTip(tool_id) -> str
3050
+
3051
+ Returns the dropdown KeyTip of the given tool, or an empty string.
3052
+ """
3053
+
3054
+ @staticmethod
3055
+ def GetClassDefaultAttributes(variant: Union[wx.WindowVariant, int]=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes:
3056
+ """
3057
+ GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
3058
+ """
3059
+ @property
3060
+ def ActiveTool(self) -> RibbonToolBarToolBase: ...
3061
+ @property
3062
+ def ToolCount(self) -> int: ...
3063
+ # end of class RibbonToolBar
3064
+
3065
+
3066
+ class RibbonToolBarEvent(wx.CommandEvent):
3067
+ """
3068
+ RibbonToolBarEvent(command_type=wx.wxEVT_NULL, win_id=0, bar=None) -> None
3069
+ """
3070
+
3071
+ def __init__(self, command_type: int=wx.wxEVT_NULL, win_id: int=0, bar: Optional[RibbonToolBar]=None) -> None:
3072
+ """
3073
+ RibbonToolBarEvent(command_type=wx.wxEVT_NULL, win_id=0, bar=None) -> None
3074
+ """
3075
+
3076
+ def GetBar(self) -> RibbonToolBar:
3077
+ """
3078
+ GetBar() -> RibbonToolBar
3079
+ """
3080
+
3081
+ def SetBar(self, bar: RibbonToolBar) -> None:
3082
+ """
3083
+ SetBar(bar) -> None
3084
+ """
3085
+
3086
+ def PopupMenu(self, menu: wx.Menu) -> bool:
3087
+ """
3088
+ PopupMenu(menu) -> bool
3089
+ """
3090
+ @property
3091
+ def Bar(self) -> RibbonToolBar: ...
3092
+ @Bar.setter
3093
+ def Bar(self, value: RibbonToolBar, /) -> None: ...
3094
+ # end of class RibbonToolBarEvent
3095
+
3096
+
3097
+ EVT_RIBBONTOOLBAR_CLICKED: wx.PyEventBinder[RibbonToolBarEvent]
3098
+ EVT_RIBBONTOOLBAR_DROPDOWN_CLICKED: wx.PyEventBinder[RibbonToolBarEvent]
3099
+ #-- end-ribbon_toolbar --#