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