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
|
@@ -0,0 +1,1146 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# (c) 2021 Zombie
|
|
3
|
+
|
|
4
|
+
import sys
|
|
5
|
+
import os
|
|
6
|
+
import wx
|
|
7
|
+
import random
|
|
8
|
+
import datetime
|
|
9
|
+
import math
|
|
10
|
+
import operator
|
|
11
|
+
|
|
12
|
+
import wx.lib.mixins.listctrl as listmix
|
|
13
|
+
import wx.lib.colourdb as cdb
|
|
14
|
+
import wx.lib.colourselect as csel
|
|
15
|
+
import wx.lib.colourutils as cutils
|
|
16
|
+
|
|
17
|
+
from wx.lib.embeddedimage import PyEmbeddedImage
|
|
18
|
+
|
|
19
|
+
import images
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
dirName = os.path.dirname(os.path.abspath(__file__))
|
|
23
|
+
except:
|
|
24
|
+
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
|
|
25
|
+
|
|
26
|
+
sys.path.append(os.path.split(dirName)[0])
|
|
27
|
+
|
|
28
|
+
try:
|
|
29
|
+
from agw import ultimatelistctrl as ULC
|
|
30
|
+
except ImportError: # if it's not there locally, try the wxPython lib.
|
|
31
|
+
from wx.lib.agw import ultimatelistctrl as ULC
|
|
32
|
+
|
|
33
|
+
#---------------------------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
musicdata = {
|
|
36
|
+
1 : ("Bad English", "The Price Of Love", "Rock", ""),
|
|
37
|
+
2 : ("DNA featuring Suzanne Vega", "Tom's Diner", "Rock", ""),
|
|
38
|
+
3 : ("George Michael", "Praying For Time", "Rock - HYPERTEXT", ""),
|
|
39
|
+
4 : ("Gloria Estefan", "Here We Are", "Rock", ""),
|
|
40
|
+
5 : ("Linda Ronstadt", "Don't Know Much", "Rock", ""),
|
|
41
|
+
6 : ("Michael Bolton", "How Am I Supposed To Live Without You", "Blues - HYPERTEXT", ""),
|
|
42
|
+
7 : ("Paul Young", "Oh Girl", "Rock", ""),
|
|
43
|
+
8 : ("Paula Abdul", "Opposites Attract", "Rock", ""),
|
|
44
|
+
9 : ("Richard Marx", "Should've Known Better", "Rock", ""),
|
|
45
|
+
10: ("Rod Stewart", "Forever Young (DISABLED)", "Rock", ""),
|
|
46
|
+
11: ("I am a really long item and I am going into overflow", "", "", ""),
|
|
47
|
+
12: ("Sheena Easton", "The Lover In Me", "Rock", ""),
|
|
48
|
+
13: ("Sinead O'Connor", "Nothing Compares 2 U", "Rock", ""),
|
|
49
|
+
14: ("Stevie B.", "Because I Love You", "Rock", ""),
|
|
50
|
+
15: ("Taylor Dayne", "Love Will Lead You Back", "Rock", ""),
|
|
51
|
+
16: ("The Bangles", "Eternal Flame", "Rock", ""),
|
|
52
|
+
17: ("Wilson Phillips", "Release Me", "Rock", ""),
|
|
53
|
+
18: ("Billy Joel", "Blonde Over Blue", "Rock", ""),
|
|
54
|
+
19: ("Billy Joel", "Famous Last Words", "Rock", ""),
|
|
55
|
+
20: ("Billy Joel", "Lullabye (Goodnight, My Angel)", "Rock", ""),
|
|
56
|
+
21: ("Billy Joel", "The River Of Dreams", "Rock", ""),
|
|
57
|
+
22: ("Billy Joel", "Two Thousand Years", "Rock", ""),
|
|
58
|
+
23: ("Janet Jackson", "Alright", "Rock", ""),
|
|
59
|
+
24: ("Janet Jackson", "Black Cat", "Rock", ""),
|
|
60
|
+
25: ("Janet Jackson", "Come Back To Me", "Rock", ""),
|
|
61
|
+
26: ("Janet Jackson", "Escapade", "Rock", ""),
|
|
62
|
+
27: ("Janet Jackson", "Love Will Never Do (Without You)", "Rock", ""),
|
|
63
|
+
28: ("Janet Jackson", "Miss You Much", "Rock", ""),
|
|
64
|
+
29: ("Janet Jackson", "Rhythm Nation", "Rock", ""),
|
|
65
|
+
30: ("Janet Jackson", "State Of The World", "Rock", ""),
|
|
66
|
+
31: ("Janet Jackson", "The Knowledge", "Rock", ""),
|
|
67
|
+
32: ("Spyro Gyra", "End of Romanticism", "Jazz", ""),
|
|
68
|
+
33: ("Spyro Gyra", "Heliopolis", "Jazz", ""),
|
|
69
|
+
34: ("Spyro Gyra", "Jubilee", "Jazz", ""),
|
|
70
|
+
35: ("Spyro Gyra", "Little Linda", "Jazz", ""),
|
|
71
|
+
36: ("Spyro Gyra", "Morning Dance", "Jazz", ""),
|
|
72
|
+
37: ("Spyro Gyra", "Song for Lorraine", "Jazz", ""),
|
|
73
|
+
38: ("Yes", "Owner Of A Lonely Heart", "Rock", ""),
|
|
74
|
+
39: ("Yes", "Rhythm Of Love", "Rock", ""),
|
|
75
|
+
40: ("Cusco", "Dream Catcher", "New Age", ""),
|
|
76
|
+
41: ("Cusco", "Geronimos Laughter", "New Age", ""),
|
|
77
|
+
42: ("Cusco", "Ghost Dance", "New Age", ""),
|
|
78
|
+
43: ("Blue Man Group", "Drumbone", "New Age", ""),
|
|
79
|
+
44: ("Blue Man Group", "Endless Column", "New Age", ""),
|
|
80
|
+
45: ("Blue Man Group", "Klein Mandelbrot", "New Age", ""),
|
|
81
|
+
46: ("Kenny G", "Silhouette", "Jazz", ""),
|
|
82
|
+
47: ("Sade", "Smooth Operator", "Jazz", ""),
|
|
83
|
+
48: ("David Arkenstone", "Papillon (On The Wings Of The Butterfly)", "New Age", ""),
|
|
84
|
+
49: ("David Arkenstone", "Stepping Stars", "New Age", ""),
|
|
85
|
+
50: ("David Arkenstone", "Carnation Lily Lily Rose", "New Age", ""),
|
|
86
|
+
51: ("David Lanz", "Behind The Waterfall", "New Age", ""),
|
|
87
|
+
52: ("David Lanz", "Cristofori's Dream", "New Age", ""),
|
|
88
|
+
53: ("David Lanz", "Heartsounds", "New Age", ""),
|
|
89
|
+
54: ("David Lanz", "Leaves on the Seine", "New Age", ""),
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#---------------------------------------------------------------------------
|
|
93
|
+
|
|
94
|
+
_ulcStyles = ["ULC_VRULES", "ULC_HRULES", "ULC_ICON", "ULC_SMALL_ICON", "ULC_LIST",
|
|
95
|
+
"ULC_REPORT", "ULC_TILE", "ULC_ALIGN_TOP", "ULC_ALIGN_LEFT", "ULC_AUTOARRANGE",
|
|
96
|
+
"ULC_VIRTUAL", "ULC_EDIT_LABELS", "ULC_NO_HEADER", "ULC_NO_SORT_HEADER",
|
|
97
|
+
"ULC_SINGLE_SEL", "ULC_SORT_ASCENDING", "ULC_SORT_DESCENDING",
|
|
98
|
+
"ULC_NO_HIGHLIGHT", "ULC_STICKY_HIGHLIGHT", "ULC_STICKY_NOSELEVENT",
|
|
99
|
+
"ULC_SEND_LEFTCLICK", "ULC_HAS_VARIABLE_ROW_HEIGHT", "ULC_AUTO_CHECK_CHILD",
|
|
100
|
+
"ULC_AUTO_TOGGLE_CHILD", "ULC_AUTO_CHECK_PARENT", "ULC_SHOW_TOOLTIPS",
|
|
101
|
+
"ULC_HOT_TRACKING", "ULC_BORDER_SELECT", "ULC_TRACK_SELECT", "ULC_HEADER_IN_ALL_VIEWS",
|
|
102
|
+
"ULC_NO_FULL_ROW_SELECT", "ULC_FOOTER"]
|
|
103
|
+
|
|
104
|
+
#---------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
coloursBitmap = PyEmbeddedImage(
|
|
107
|
+
b"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0"
|
|
108
|
+
b"RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAnTSURBVHjaYvz//z/DQAKAAGIB"
|
|
109
|
+
b"EXl5DWAO0DGMnJxCScKiKg4cHPzyLMycwoyMTEDx3+///P329P+/z3dPndx25tbd61dd3MLf"
|
|
110
|
+
b"/P707O3GjfMZzGwiGG7dOM5w9uwxkh0AEEBgB+zfvwXM+fPnN4OCgjZHWERkDBurGMO3z0Cx"
|
|
111
|
+
b"30CH/WNgYGVkYGACqnZxcmWwd/j8/O7rN6/vfHj7TFBP+BYX//9TjP//7GBhZHj7h8QABQgg"
|
|
112
|
+
b"RlAUMDIywgU4OTmYSku23BYXdVb69AHiABD+9xdkMiMDMEAY2NkZGLi4GBi+ANl3vjAwnHvy"
|
|
113
|
+
b"g+HblzvPFBkOrL1+uK332YvnD4mNWYAAAjvA3MIR6M0/oChgkJJStLKz7tv366co+6dPDAzf"
|
|
114
|
+
b"vv9n+P7jH8PvP3/BaliZ/wId8J+BnYOVgZeHnUGAn4nhGzBkTjxnYDj4mIFBifHY1YfbA+Pe"
|
|
115
|
+
b"vnt1jhgHAAQQ2AFRMVkMjP9+MPz995tdRiZ0C5+An8uHt98Z2H4+YuBjuMcgznKXQYb9PoMg"
|
|
116
|
+
b"6wcGLqafDOzM/xhYmZgZ/jFxM/xl4Gb4xyLA8IdDluHKZxWGw++ZGNg4T97evn1u4evbb3e8"
|
|
117
|
+
b"/friLz4HAAQQOA38BQbvn//cDDx8mjWCfLYukt/XM/iIrGGQ5jnHIMTxioGV9Tsw9IEJ4T8z"
|
|
118
|
+
b"UDErELNAaSD/NxS/YGLQ/svE4GMjzLCQI05V3sZ5rcb5F9uuzLnadOfB1Qu4HAAQQGAH/AYa"
|
|
119
|
+
b"zMslUxAky1VjzRbDICJ4ioGBGxi5rL8YGIC+BSY/cPwz/Ad65t8fsAP+/wYmjN9A7b9ZGf5/"
|
|
120
|
+
b"ZmT4z8nPwGwpz8CtxsTgwvCA4e6zBvabjhWBEupCLkorg9uObNjZ/+3Pl5/oDgAIIJDJDCpc"
|
|
121
|
+
b"LFX1snd7/ZmnMogw3wLaB0xh/7iBFgJT23+QG/8z/Gf8C0wjwHTyF4h/Ax326yfD/6/fGf69"
|
|
122
|
+
b"BaZUXm4GZmcjBgZ1DSBbjUFK4AMDKzDNuDBOZBAQNeR9k3673TbWo5+TkZsf3QEAAQR2wNsX"
|
|
123
|
+
b"d0T+f3n8D+gNYJIHqvnNAcTsEAzy7T+gsl8gDAwFkB+AifL/V6BDPvxiYBSXY2BydWJgUFNl"
|
|
124
|
+
b"YBASAzpABBiVzAxSPGcYnv3kYPDj6mUQYrRgeB1zM9My3LWLlYmNB9kBAAEEdsC87VtrHFbd"
|
|
125
|
+
b"Klj3gO81w18+oEXcEAx0wH+QI36CMDDOfwAd84OZ4f83YOH06T8Dk5w8A5OzKQODgiwDA58g"
|
|
126
|
+
b"MNqAelmBjge6UlfgDMPLn/+ALBYGP+4eBuY/8gzfk16kaRoaZgAVMMMcABBATFD625Mn96ZG"
|
|
127
|
+
b"rTwR2XeJ/fK/30JAy0COADr2BzA6fgAN/c7B8P87GzDzAx3xgZmBSUaGgdFOmoFBCugwXiDm"
|
|
128
|
+
b"AKpjAqaRv2+BDn/OIMlxCRhlXxg+AZMKDxsvgwd7H8N7lu8MoimCJSK8kg4wBwAEEBNycPz8"
|
|
129
|
+
b"/HZv+ebj0W3n2c7AHQHC37iAvgaGwhdgiLxjZWCSlGBgtAJGlTAwd3B8BfoHiP8D08LvJ0B8"
|
|
130
|
+
b"FxiNLxkE2Z4z8LB8ZQCVX7+B6ViCS5XB6HcNw1uNR+IyVgpxQOvA6QEggJjQE8Wf7x8vN+44"
|
|
131
|
+
b"ET/pGtd5hj+CEAd8B6aNb8AQeM/OwCgmyMBoCfSxAMhioAP+vwHacB8YWteAGJiAfwNLo38/"
|
|
132
|
+
b"GXhZvjHwsH5h+ActEUEOUeUIYWD+q80g7MzlwcbEoQ0SBwggJmx588/X99dqth5P2/GY/zXj"
|
|
133
|
+
b"Hx4GRmA0/P/EycDIx83AZAEMZp73QFVAB/z9AVT8EWjpQ6Dld4D8p6AUCjaWE+g4DuZvDGD7"
|
|
134
|
+
b"oSU9C9A2yd8pDD80f4vJKSkCi18GDoAAYsJVQHz99PZM+YGHJQ++CgHLYS4GRjYOBiZzoKU8"
|
|
135
|
+
b"wDj+9w1UcwFpYNj+BWbJf8Ba6/9nkNMRRSww27Iw/EbiQ7DgfyeGX+xKDHzyXIZAYSGAAGLC"
|
|
136
|
+
b"V0xeun1j5bTrv9czsPAyMBkBfcr7CuhBoIW/gSb9YYGUhP+g4Qv2JtSrMG8D0d9/IHdC4oEJ"
|
|
137
|
+
b"yGdjBibiPxYMjMJ/xYFCAgABhNcBDH9//lx89l7bCV7Gz9+FgcH+A2TxX0iZ8BOIfwAN/vkX"
|
|
138
|
+
b"IvYXpYYBWszK8PsvG9gBv4EO+AtkgOodNrAR1gx/uThA5QEXQACxEKqtXjy/dS5k5s9kmRV8"
|
|
139
|
+
b"/mYqglpuRowqdlovefmkgFUlsFRk+AXMftzAHMIJ8jEzpNQGBsv3v9wMX35ygbnfgdkTFAbf"
|
|
140
|
+
b"/4BijoWB5b8aw08WCWBKZmADCCAWYqrMp48ergEmrwMnLzMJHrlm2mQpLxsqLP3yVab7OwlJ"
|
|
141
|
+
b"ZWDIMPICLWaCRjSQBlbZH37zM7z6xscgwPyH4dO/3+CY+gYMpW+gEPvPysD4SxQcVgABxEJk"
|
|
142
|
+
b"w+W/iIjEawV5FW4zYV6nA7cfHL22686q5fvlpYoChKJivd/K8ygA/cgkAHXIP4aXX8UZXn3m"
|
|
143
|
+
b"ZmBk/cHwD+gIUBh8/8vI8BGYLn8BKz/Gz6yg7PIXIIDADnB2C8PfaABiHj4BBlnWr3Vvntxl"
|
|
144
|
+
b"u/3s4X6g3m13Htx7nDWJd9PWM7L5PdlfIzQsgQkV2DZg4PjLcPWNFsPLj8wMrGwfGT4B23S/"
|
|
145
|
+
b"gEHwE5gWvv1jZPgGDCXObz9/gSpigAACO0BUVAq/94Exyfrviz3nj3vxR+89W/v757dDQOGH"
|
|
146
|
+
b"IB8As+CJrUeuX73+SOnknArOBkf/T/z/fvIwrLjlxPDy0x+G7/9/A+sTYAj8+wtsczACSwkW"
|
|
147
|
+
b"hn/AAkrq2ztQCPwGCCBog+Qv/swATCzyDA/q7r35+vTRs6cgyy8woKT7/5/vPbo7MaZJ/uV6"
|
|
148
|
+
b"Ho7ZotbK3MfuSDJwP9nxh+Hl+Q/sX55++P/nx1d2Ll7mPwKqwj8kTSX/fnoNbHAw/AIIIEga"
|
|
149
|
+
b"ADV7cYB/wIpLkOFVMPff1077rj6bBWwQnALV4NgC6tmLh8vze5V4NI+yFLLtDn/76enZM89+"
|
|
150
|
+
b"/rkEykxA/BFkHDA6uRUVlM2evX/3CSQGEEDgNmFoeCaOsP8P1MHEa8Z28eLhm+8+bj19YwJQ"
|
|
151
|
+
b"dB0Qf8adYFjYgK0XA0hjAhxNrxggrQjkdjKwWgU2JoHVG0AAgUOAlRl7efT52w8mBab7bb9+"
|
|
152
|
+
b"vhLfd+31KqDQSbyWgx39B5S4ThHIVb+gmAEggPCWhCzMDEF/2Hmytz/kuvH968fTQKF71O6a"
|
|
153
|
+
b"AQQQVgeAypN///7x/vrxrusjs8j/q/efngcKX4e5mpoAIIDAUcDGxobmACaGr18/xktLSyke"
|
|
154
|
+
b"OXL4wqePb4H5HtjUpQEACCCwA+7cuYbmAEaGnz+/Xfz+/cv6u3dvXwQKHQGVpLRwAEAAMRDo"
|
|
155
|
+
b"nssAsTLMobQAAAEGABjdycfQA1R2AAAAAElFTkSuQmCC")
|
|
156
|
+
|
|
157
|
+
#----------------------------------------------------------------------
|
|
158
|
+
decryptedBitmap = PyEmbeddedImage(
|
|
159
|
+
b"iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0"
|
|
160
|
+
b"RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAUnSURBVHjaYvz//z8DCISGpjLA"
|
|
161
|
+
b"AEjs9+8/DL9+fefh4uKoVlCQi5KQkBBnYmJifPHi2Ztbt66v+/DhfTMrK/Or////AHUwwvXu"
|
|
162
|
+
b"3bsXTAMEEAsDDvD79y95WVnpXV5eHmqSknJA/j8GVlYWBh4eLqlXr57mrFq1NPDKlQs+bGws"
|
|
163
|
+
b"F7DpBwggFuyG/mEBGrrJ399f7f9/NoYdO3b/f/Tozot///7+VVJSl/Lw8GDKzMyXnj69f8Pl"
|
|
164
|
+
b"yxcM2NnZP6CbARBATDDG338MDP/+/WP48+cPAwcHW7OFhaXez59MQEM3/zp58kDO06cPpB4/"
|
|
165
|
+
b"vi+7d+/m8IUL537984eJwc8vTJ6fX7Dj798/DIyMjGAMAwABBDeYjfk/w38WLgYmZlYWdjY2"
|
|
166
|
+
b"75s3b//fu3fb7ydPH7X8Z+Gc9p+ZneEfCycDEyvbmuvXzubt37/7v6KiGoOGhk4o0DF8//4B"
|
|
167
|
+
b"4+Tvf7jBAAEEN9jo9yEGiX+PGThYmf99+cMWfPX2A/X7z16rMjP8a5X5/5RBiuEFgzzjcwY+"
|
|
168
|
+
b"pp8Mv/4xLLpy5fyDHz9+MqioaAoyMzPb/wDGoQjzF7jBAAEED2Puv+8YdH/sZnjDJv/vOyPP"
|
|
169
|
+
b"bYZ/fxmAocPA+f8rg/i/J0A2MwMz0z+Gd0y8DIf+qP159+XrjU+fPikKCokw/mXiUJP6/5rB"
|
|
170
|
+
b"juMJ3GCAAIIb/O8/I8P3XywMvL8eMPCBjISG139gUvrCwAJmgZIVJ+NHBss/ZxjOf+X/+Pnb"
|
|
171
|
+
b"X4Zvf1gZRP5/+GvDcoPh/z9OuMEAAQQ3mJ2TvVtaUTSQiQmUjBn/w0MKbgETPL0y/f/9W4Hl"
|
|
172
|
+
b"gxzrw6UMYj++MYQZM1bz/FfOevH0436gdDpIDUAAMcIyyP4265/2Ee5sIC////sTaNJvIP4F"
|
|
173
|
+
b"9Aowxpn+M7Cw/QHz//z6xfD/538G5r/AZPnjK1COkYGZDehSdm6GU3vu/LHM38sKMg8ggOAu"
|
|
174
|
+
b"5mAH5iseQQYmFiGgjrfA9PcJkgYZgIb/fMLw7No1hn+/fzDIKPMBxXgZGL6yMbADLWQAWsAA"
|
|
175
|
+
b"DBIGRgEGDk5meHoDCCC4wf+BkcXw4zUDAzPQtb/fAzUAY5jpB9DQZwxb5h9gKJrzheEn0BOt"
|
|
176
|
+
b"MSwMMVEyDAx/eKAWgzQD9TL9Yfj/hwue3gACCJHz/gMV/fkIpIFe/guk/wENZv7B8Pv5I4ZF"
|
|
177
|
+
b"W78wPHoH5AKVLdr5h8HP6h0DnxTIAVBzQHpAIfefA24cQAAhGfwfajDQ638+QVz8/zsDK9cf"
|
|
178
|
+
b"BjclJoY7V4G5EqjMXR4YEGzfgb77BTYMkqR+g3IYkBaDGwcQQEwIg0EKvgIxyLWfIfgn0AIB"
|
|
179
|
+
b"RgZ3O04GVXYGBnmgag9TYNYVAFrxB+hiBhgGBTTI2n9w4wACCGEwKFkxgmL+KwQzfAOGGxB/"
|
|
180
|
+
b"+8Jw6/hPhn9A/cxAfbfPgPSzMTDwAb3NxQ7B3ECPc7KiFEIAAYSIPJDBTCCDf0AMBWEWoJdv"
|
|
181
|
+
b"f2QQeP+HIUQD4gzRX/8Z/r1gZGDSARr8AxZXQH0cQMuYEO4ECCAWFBczgILhE9RbQEN/AZ0p"
|
|
182
|
+
b"wsJgVCXEYMwGzSjAoGVkBRrAAsTcMM3MoPQKch3cOIAAQoo8oEImoKH/XgHVsYJdB9Ygzs3A"
|
|
183
|
+
b"iEiekLwHCkqkkgwchKzsyBUJA0AAwQ1mBBnEDTQQWLADy0cGkgDItywsKA4ACCAWpNTGyMAt"
|
|
184
|
+
b"AlQESjbMJBoMTBXMfMCE9QceyAABBDf43vXnp5nnMpswAQv0///+/yfNwSCH/GK6e+X5dWOo"
|
|
185
|
+
b"GECAAQCxvOh5cbsDqwAAAABJRU5ErkJggg==")
|
|
186
|
+
|
|
187
|
+
#----------------------------------------------------------------------
|
|
188
|
+
|
|
189
|
+
PIPE_HEIGHT = 18
|
|
190
|
+
PIPE_WIDTH = 300
|
|
191
|
+
|
|
192
|
+
class UltimateRenderer_1(object):
|
|
193
|
+
|
|
194
|
+
DONE_BITMAP = None
|
|
195
|
+
REMAINING_BITMAP = None
|
|
196
|
+
|
|
197
|
+
def __init__(self, parent):
|
|
198
|
+
|
|
199
|
+
self.progressValue = random.randint(1, 99)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def DrawSubItem(self, dc, rect, line, highlighted, enabled):
|
|
203
|
+
"""Draw a custom progress bar using double buffering to prevent flicker"""
|
|
204
|
+
|
|
205
|
+
canvas = wx.Bitmap(rect.width, rect.height)
|
|
206
|
+
mdc = wx.MemoryDC()
|
|
207
|
+
mdc.SelectObject(canvas)
|
|
208
|
+
|
|
209
|
+
if highlighted:
|
|
210
|
+
mdc.SetBackground(wx.Brush(wx.SystemSettings.GetColour(wx.SYS_COLOUR_HIGHLIGHT)))
|
|
211
|
+
else:
|
|
212
|
+
mdc.SetBackground(wx.Brush(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)))
|
|
213
|
+
mdc.Clear()
|
|
214
|
+
|
|
215
|
+
self.DrawProgressBar(mdc, 0, 0, rect.width, rect.height, self.progressValue)
|
|
216
|
+
|
|
217
|
+
mdc.SetFont(wx.Font(8, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD))
|
|
218
|
+
text = "%d Mb"%self.progressValue
|
|
219
|
+
textWidth, dummy = mdc.GetTextExtent(text)
|
|
220
|
+
mdc.DrawText(text, rect.width // 2 - textWidth // 2, rect.height // 2 - dummy // 2)
|
|
221
|
+
dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
|
|
222
|
+
dc.Blit(rect.x+3, rect.y, rect.width-6, rect.height, mdc, 0, 0)
|
|
223
|
+
dc.DestroyClippingRegion()
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def GetLineHeight(self):
|
|
227
|
+
|
|
228
|
+
return PIPE_HEIGHT + 6
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def GetSubItemWidth(self):
|
|
232
|
+
|
|
233
|
+
return 130
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def UpdateValue(self):
|
|
237
|
+
|
|
238
|
+
self.progressValue += 5
|
|
239
|
+
if self.progressValue >= 100:
|
|
240
|
+
self.progressValue = 1
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def DrawHorizontalPipe(self, dc, x, y, w, colour):
|
|
244
|
+
"""Draws a horizontal 3D-looking pipe."""
|
|
245
|
+
|
|
246
|
+
for r in range(PIPE_HEIGHT):
|
|
247
|
+
red = int(colour.Red() * math.sin((math.pi/PIPE_HEIGHT)*r))
|
|
248
|
+
green = int(colour.Green() * math.sin((math.pi/PIPE_HEIGHT)*r))
|
|
249
|
+
blue = int(colour.Blue() * math.sin((math.pi/PIPE_HEIGHT)*r))
|
|
250
|
+
dc.SetPen(wx.Pen(wx.Colour(*map(int, [red, green, blue]))))
|
|
251
|
+
dc.DrawLine(x, y+r, x+w, y+r)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
def DrawProgressBar(self, dc, x, y, w, h, percent):
|
|
255
|
+
"""
|
|
256
|
+
Draws a progress bar in the (x,y,w,h) box that represents a progress of
|
|
257
|
+
'percent'. The progress bar is only horizontal and it's height is constant
|
|
258
|
+
(PIPE_HEIGHT). The 'h' parameter is used to vertically center the progress
|
|
259
|
+
bar in the allotted space.
|
|
260
|
+
|
|
261
|
+
The drawing is speed-optimized. Two bitmaps are created the first time this
|
|
262
|
+
function runs - one for the done (green) part of the progress bar and one for
|
|
263
|
+
the remaining (white) part. During normal operation the function just cuts
|
|
264
|
+
the necessary part of the two bitmaps and draws them.
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
# Create two pipes
|
|
268
|
+
if self.DONE_BITMAP is None:
|
|
269
|
+
self.DONE_BITMAP = wx.Bitmap(PIPE_WIDTH, PIPE_HEIGHT)
|
|
270
|
+
mdc = wx.MemoryDC()
|
|
271
|
+
mdc.SelectObject(self.DONE_BITMAP)
|
|
272
|
+
self.DrawHorizontalPipe(mdc, 0, 0, PIPE_WIDTH, wx.GREEN)
|
|
273
|
+
mdc.SelectObject(wx.NullBitmap)
|
|
274
|
+
|
|
275
|
+
self.REMAINING_BITMAP = wx.Bitmap(PIPE_WIDTH, PIPE_HEIGHT)
|
|
276
|
+
mdc = wx.MemoryDC()
|
|
277
|
+
mdc.SelectObject(self.REMAINING_BITMAP)
|
|
278
|
+
self.DrawHorizontalPipe(mdc, 0, 0, PIPE_WIDTH, wx.RED)
|
|
279
|
+
self.DrawHorizontalPipe(mdc, 1, 0, PIPE_WIDTH-1, wx.WHITE)
|
|
280
|
+
mdc.SelectObject(wx.NullBitmap)
|
|
281
|
+
|
|
282
|
+
# Center the progress bar vertically in the box supplied
|
|
283
|
+
x = int(x)
|
|
284
|
+
y = int(y + (h - PIPE_HEIGHT)/2)
|
|
285
|
+
w = int(w)
|
|
286
|
+
|
|
287
|
+
if percent == 0:
|
|
288
|
+
middle = 0
|
|
289
|
+
else:
|
|
290
|
+
middle = int((w * percent)/100)
|
|
291
|
+
|
|
292
|
+
if middle == 0: # not started
|
|
293
|
+
bitmap = self.REMAINING_BITMAP.GetSubBitmap(wx.Rect(1, 0, w, PIPE_HEIGHT))
|
|
294
|
+
dc.DrawBitmap(bitmap, x, y, False)
|
|
295
|
+
elif middle == w: # completed
|
|
296
|
+
bitmap = self.DONE_BITMAP.GetSubBitmap(wx.Rect(0, 0, w, PIPE_HEIGHT))
|
|
297
|
+
dc.DrawBitmap(bitmap, x, y, False)
|
|
298
|
+
else: # in progress
|
|
299
|
+
doneBitmap = self.DONE_BITMAP.GetSubBitmap(wx.Rect(0, 0, middle, PIPE_HEIGHT))
|
|
300
|
+
dc.DrawBitmap(doneBitmap, x, y, False)
|
|
301
|
+
remainingBitmap = self.REMAINING_BITMAP.GetSubBitmap(wx.Rect(0, 0, w - middle, PIPE_HEIGHT))
|
|
302
|
+
dc.DrawBitmap(remainingBitmap, x + middle, y, False)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
class UltimateRenderer_2(object):
|
|
306
|
+
|
|
307
|
+
def __init__(self, parent):
|
|
308
|
+
|
|
309
|
+
e = wx.FontEnumerator()
|
|
310
|
+
e.EnumerateFacenames()
|
|
311
|
+
fontList = e.GetFacenames()
|
|
312
|
+
fontList.sort()
|
|
313
|
+
|
|
314
|
+
rdn = random.randint(0, len(fontList)-1)
|
|
315
|
+
randomFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
316
|
+
randomFont.SetFaceName(fontList[rdn])
|
|
317
|
+
|
|
318
|
+
self.randomFont = randomFont
|
|
319
|
+
self.text = "This is my renderer"
|
|
320
|
+
|
|
321
|
+
dc = wx.ClientDC(parent)
|
|
322
|
+
dc.SetFont(self.randomFont)
|
|
323
|
+
self.width, self.height, descent, el = dc.GetFullTextExtent(self.text)
|
|
324
|
+
|
|
325
|
+
self.height += descent
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def DrawSubItem(self, dc, rect, line, highlighted, enabled):
|
|
329
|
+
|
|
330
|
+
dc.SetBackgroundMode(wx.SOLID)
|
|
331
|
+
dc.SetBrush(wx.Brush(wx.BLACK, wx.BRUSHSTYLE_SOLID))
|
|
332
|
+
dc.SetPen(wx.TRANSPARENT_PEN)
|
|
333
|
+
dc.DrawRectangle(rect)
|
|
334
|
+
|
|
335
|
+
dc.SetBackgroundMode(wx.TRANSPARENT)
|
|
336
|
+
dc.SetFont(self.randomFont)
|
|
337
|
+
|
|
338
|
+
colours = [wx.RED, wx.WHITE, wx.GREEN, wx.Colour("SKY BLUE")]
|
|
339
|
+
w, h = dc.GetTextExtent("Hg")
|
|
340
|
+
x = int(rect.x + 1)
|
|
341
|
+
y = int(rect.y + rect.height/2 - h/2)
|
|
342
|
+
|
|
343
|
+
for ch in self.text:
|
|
344
|
+
dc.SetTextForeground(random.choice(colours))
|
|
345
|
+
dc.DrawText(ch, x, y)
|
|
346
|
+
w, h = dc.GetTextExtent(ch)
|
|
347
|
+
x = x + w
|
|
348
|
+
if x > rect.right - 5:
|
|
349
|
+
break
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def GetLineHeight(self):
|
|
353
|
+
|
|
354
|
+
return self.height + 5
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def GetSubItemWidth(self):
|
|
358
|
+
|
|
359
|
+
return self.width + 5
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
class UltimateRenderer_3(object):
|
|
363
|
+
|
|
364
|
+
def __init__(self):
|
|
365
|
+
|
|
366
|
+
cdb.updateColourDB()
|
|
367
|
+
colourList = cdb.getColourList()
|
|
368
|
+
lenCDB = len(colourList)
|
|
369
|
+
colourIndex = random.randint(0, lenCDB-1)
|
|
370
|
+
self.colour = colourList[colourIndex]
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
def DrawSubItem(self, dc, rect, line, highlighted, enabled):
|
|
374
|
+
|
|
375
|
+
centerX, centerY = rect.width // 2, rect.height // 2
|
|
376
|
+
dc.GradientFillConcentric(rect, self.colour, wx.WHITE, (centerX, centerY))
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
def GetLineHeight(self):
|
|
380
|
+
|
|
381
|
+
return 30
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
def GetSubItemWidth(self):
|
|
385
|
+
|
|
386
|
+
return 40
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class UltimateHeaderRenderer(object):
|
|
390
|
+
|
|
391
|
+
def __init__(self, parent):
|
|
392
|
+
self._hover = False
|
|
393
|
+
self._pressed = False
|
|
394
|
+
|
|
395
|
+
def DrawHeaderButton(self, dc, rect, flags):
|
|
396
|
+
|
|
397
|
+
self._hover = False
|
|
398
|
+
self._pressed = False
|
|
399
|
+
|
|
400
|
+
color = wx.Colour(150,150,150)
|
|
401
|
+
if flags & wx.CONTROL_DISABLED:
|
|
402
|
+
color = wx.Colour(wx.WHITE)
|
|
403
|
+
elif flags & wx.CONTROL_SELECTED:
|
|
404
|
+
color = wx.Colour(wx.BLUE)
|
|
405
|
+
|
|
406
|
+
if flags & wx.CONTROL_PRESSED:
|
|
407
|
+
self._pressed = True
|
|
408
|
+
color = cutils.AdjustColour(color,-50)
|
|
409
|
+
elif flags & wx.CONTROL_CURRENT:
|
|
410
|
+
self._hover = True
|
|
411
|
+
color = cutils.AdjustColour(color,50)
|
|
412
|
+
|
|
413
|
+
dc.SetBrush(wx.Brush(color, wx.BRUSHSTYLE_SOLID))
|
|
414
|
+
dc.SetBackgroundMode(wx.SOLID)
|
|
415
|
+
dc.SetPen(wx.TRANSPARENT_PEN)
|
|
416
|
+
dc.DrawRectangle(rect)
|
|
417
|
+
|
|
418
|
+
dc.SetBackgroundMode(wx.TRANSPARENT)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
def GetForegroundColour(self):
|
|
422
|
+
|
|
423
|
+
if self._hover:
|
|
424
|
+
return wx.Colour(30,30,30)
|
|
425
|
+
else:
|
|
426
|
+
return wx.Colour(230,230,230)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
class TestUltimateListCtrl(ULC.UltimateListCtrl):
|
|
431
|
+
|
|
432
|
+
def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, agwStyle=0):
|
|
433
|
+
|
|
434
|
+
ULC.UltimateListCtrl.__init__(self, parent, id, pos, size, style, agwStyle)
|
|
435
|
+
## listmix.TextEditMixin.__init__(self)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class UltimateListCtrlPanel(wx.Panel, listmix.ColumnSorterMixin):
|
|
439
|
+
|
|
440
|
+
def __init__(self, parent, log):
|
|
441
|
+
|
|
442
|
+
wx.Panel.__init__(self, parent, -1, style=wx.WANTS_CHARS|wx.SUNKEN_BORDER)
|
|
443
|
+
|
|
444
|
+
sizer = wx.BoxSizer(wx.VERTICAL)
|
|
445
|
+
|
|
446
|
+
cdb.updateColourDB()
|
|
447
|
+
self.colourList = cdb.getColourList()
|
|
448
|
+
self.count = 0
|
|
449
|
+
self.log = log
|
|
450
|
+
|
|
451
|
+
self.il = ULC.PyImageList(16, 16)
|
|
452
|
+
|
|
453
|
+
self.idx1 = self.il.Add(images.Smiles.GetBitmap())
|
|
454
|
+
self.sm_up = self.il.Add(images.SmallUpArrow.GetBitmap())
|
|
455
|
+
self.sm_dn = self.il.Add(images.SmallDnArrow.GetBitmap())
|
|
456
|
+
self.il.Add(images.core.GetBitmap())
|
|
457
|
+
self.il.Add(images.custom.GetBitmap())
|
|
458
|
+
self.il.Add(images.exit.GetBitmap())
|
|
459
|
+
self.il.Add(images.expansion.GetBitmap())
|
|
460
|
+
self.il.Add(decryptedBitmap.GetBitmap())
|
|
461
|
+
self.il.Add(coloursBitmap.GetBitmap())
|
|
462
|
+
|
|
463
|
+
self.list = TestUltimateListCtrl(self, -1,
|
|
464
|
+
agwStyle=wx.LC_REPORT
|
|
465
|
+
#| wx.BORDER_SUNKEN
|
|
466
|
+
| wx.BORDER_NONE
|
|
467
|
+
| wx.LC_EDIT_LABELS
|
|
468
|
+
#| wx.LC_SORT_ASCENDING
|
|
469
|
+
#| wx.LC_NO_HEADER
|
|
470
|
+
| wx.LC_VRULES
|
|
471
|
+
| wx.LC_HRULES
|
|
472
|
+
#| wx.LC_SINGLE_SEL
|
|
473
|
+
| ULC.ULC_HAS_VARIABLE_ROW_HEIGHT)
|
|
474
|
+
|
|
475
|
+
self.list.SetImageList(self.il, wx.IMAGE_LIST_SMALL)
|
|
476
|
+
sizer.Add(self.list, 1, wx.EXPAND)
|
|
477
|
+
|
|
478
|
+
self.timer = wx.Timer(self, wx.ID_ANY)
|
|
479
|
+
|
|
480
|
+
self.PopulateList()
|
|
481
|
+
self.SetSizer(sizer)
|
|
482
|
+
self.SetAutoLayout(True)
|
|
483
|
+
|
|
484
|
+
self.itemDataMap = musicdata
|
|
485
|
+
## listmix.ColumnSorterMixin.__init__(self, 4)
|
|
486
|
+
|
|
487
|
+
self.Bind(ULC.EVT_LIST_ITEM_SELECTED, self.OnItemSelected, self.list)
|
|
488
|
+
self.Bind(ULC.EVT_LIST_ITEM_DESELECTED, self.OnItemDeselected, self.list)
|
|
489
|
+
self.Bind(ULC.EVT_LIST_ITEM_ACTIVATED, self.OnItemActivated, self.list)
|
|
490
|
+
self.Bind(ULC.EVT_LIST_DELETE_ITEM, self.OnItemDelete, self.list)
|
|
491
|
+
self.Bind(ULC.EVT_LIST_COL_CLICK, self.OnColClick, self.list)
|
|
492
|
+
self.Bind(ULC.EVT_LIST_COL_RIGHT_CLICK, self.OnColRightClick, self.list)
|
|
493
|
+
self.Bind(ULC.EVT_LIST_COL_BEGIN_DRAG, self.OnColBeginDrag, self.list)
|
|
494
|
+
self.Bind(ULC.EVT_LIST_COL_DRAGGING, self.OnColDragging, self.list)
|
|
495
|
+
self.Bind(ULC.EVT_LIST_COL_END_DRAG, self.OnColEndDrag, self.list)
|
|
496
|
+
self.Bind(ULC.EVT_LIST_BEGIN_LABEL_EDIT, self.OnBeginEdit, self.list)
|
|
497
|
+
self.Bind(ULC.EVT_LIST_BEGIN_DRAG, self.OnBeginDrag)
|
|
498
|
+
self.Bind(ULC.EVT_LIST_END_DRAG, self.OnEndDrag)
|
|
499
|
+
|
|
500
|
+
self.list.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick)
|
|
501
|
+
self.list.Bind(wx.EVT_RIGHT_DOWN, self.OnRightDown)
|
|
502
|
+
|
|
503
|
+
# for wxMSW
|
|
504
|
+
self.list.Bind(wx.EVT_COMMAND_RIGHT_CLICK, self.OnRightClick)
|
|
505
|
+
|
|
506
|
+
# for wxGTK
|
|
507
|
+
self.list.Bind(wx.EVT_RIGHT_UP, self.OnRightClick)
|
|
508
|
+
|
|
509
|
+
self.Bind(wx.EVT_IDLE, self.OnIdle)
|
|
510
|
+
self.Bind(wx.EVT_TIMER, self.OnTimer)
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
def PopulateList(self):
|
|
514
|
+
|
|
515
|
+
self.list.Freeze()
|
|
516
|
+
|
|
517
|
+
font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
518
|
+
boldfont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
519
|
+
boldfont.SetWeight(wx.FONTWEIGHT_BOLD)
|
|
520
|
+
boldfont.SetPointSize(12)
|
|
521
|
+
boldfont.SetUnderlined(True)
|
|
522
|
+
|
|
523
|
+
info = ULC.UltimateListItem()
|
|
524
|
+
info._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_FORMAT | ULC.ULC_MASK_CHECK
|
|
525
|
+
info._image = [1, 2]
|
|
526
|
+
info._format = 0
|
|
527
|
+
info._kind = 1
|
|
528
|
+
info._text = "Artist\nName"
|
|
529
|
+
|
|
530
|
+
self.list.InsertColumnInfo(0, info)
|
|
531
|
+
|
|
532
|
+
info = ULC.UltimateListItem()
|
|
533
|
+
info._format = wx.LIST_FORMAT_RIGHT
|
|
534
|
+
info._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_FORMAT | ULC.ULC_MASK_FONT
|
|
535
|
+
info._image = []
|
|
536
|
+
info._text = "Title"
|
|
537
|
+
info._font = boldfont
|
|
538
|
+
|
|
539
|
+
self.list.InsertColumnInfo(1, info)
|
|
540
|
+
|
|
541
|
+
info = ULC.UltimateListItem()
|
|
542
|
+
info._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_IMAGE | wx.LIST_MASK_FORMAT
|
|
543
|
+
info._format = 0
|
|
544
|
+
info._text = "Genre"
|
|
545
|
+
info._font = font
|
|
546
|
+
info._image = [3]
|
|
547
|
+
self.list.InsertColumnInfo(2, info)
|
|
548
|
+
|
|
549
|
+
info = ULC.UltimateListItem()
|
|
550
|
+
info._mask = wx.LIST_MASK_TEXT | wx.LIST_MASK_FORMAT | ULC.ULC_MASK_FONTCOLOUR
|
|
551
|
+
info._format = 0
|
|
552
|
+
info._text = "Custom Renderer"
|
|
553
|
+
info._colour = wx.RED
|
|
554
|
+
|
|
555
|
+
# Add our custom renderer for the header of column 3, we can also use
|
|
556
|
+
# SetHeaderCustomRenderer to set the renderer for all the columns.
|
|
557
|
+
klass = UltimateHeaderRenderer(self)
|
|
558
|
+
info.SetCustomRenderer(klass)
|
|
559
|
+
|
|
560
|
+
self.list.InsertColumnInfo(3, info)
|
|
561
|
+
|
|
562
|
+
# The custom renderer can also be set for all columns on the header and/or footer
|
|
563
|
+
# self.list.SetHeaderCustomRenderer(klass)
|
|
564
|
+
|
|
565
|
+
# We must first have a footer in order to set its custom renderer:
|
|
566
|
+
# style = self.list.GetAGWWindowStyleFlag() | ULC.ULC_FOOTER
|
|
567
|
+
# if self.list.GetAGWWindowStyleFlag() != style:
|
|
568
|
+
# self.list.SetAGWWindowStyleFlag(style)
|
|
569
|
+
# self.list.SetFooterCustomRenderer(klass)
|
|
570
|
+
|
|
571
|
+
items = musicdata.items()
|
|
572
|
+
renderers = {}
|
|
573
|
+
|
|
574
|
+
for key, data in items:
|
|
575
|
+
if key == 3:
|
|
576
|
+
index = self.list.InsertImageStringItem(sys.maxsize, data[0], [3, 4, 7], it_kind=1)
|
|
577
|
+
elif key == 4:
|
|
578
|
+
dt = "\n".join(data[0].split())
|
|
579
|
+
index = self.list.InsertImageStringItem(sys.maxsize, dt, [self.idx1, 8, 7])
|
|
580
|
+
else:
|
|
581
|
+
index = self.list.InsertImageStringItem(sys.maxsize, data[0], self.idx1)
|
|
582
|
+
|
|
583
|
+
if key == 6:
|
|
584
|
+
self.list.SetStringItem(index, 1, data[1], it_kind=1)
|
|
585
|
+
elif key == 7:
|
|
586
|
+
self.list.SetStringItem(index, 1, data[1], [6, 5, 4])
|
|
587
|
+
elif key == 8:
|
|
588
|
+
dt = "\n".join(data[1].split())
|
|
589
|
+
self.list.SetStringItem(index, 1, dt)
|
|
590
|
+
else:
|
|
591
|
+
self.list.SetStringItem(index, 1, data[1])
|
|
592
|
+
|
|
593
|
+
it_kind = 0
|
|
594
|
+
if random.randint(0, 2) == 2:
|
|
595
|
+
# set some radiobutton-like item on the 3rd column
|
|
596
|
+
it_kind = 2
|
|
597
|
+
|
|
598
|
+
self.list.SetStringItem(index, 2, data[2], it_kind=it_kind)
|
|
599
|
+
self.list.SetStringItem(index, 3, data[3])
|
|
600
|
+
|
|
601
|
+
randomRenderer = random.randint(0, 2)
|
|
602
|
+
if randomRenderer == 2:
|
|
603
|
+
# set some custom renderers...
|
|
604
|
+
klass = UltimateRenderer_1(self)
|
|
605
|
+
renderers[index] = klass
|
|
606
|
+
self.list.SetItemCustomRenderer(index, 3, klass)
|
|
607
|
+
elif randomRenderer == 1:
|
|
608
|
+
klass = UltimateRenderer_2(self)
|
|
609
|
+
self.list.SetItemCustomRenderer(index, 3, klass)
|
|
610
|
+
else:
|
|
611
|
+
klass = UltimateRenderer_3()
|
|
612
|
+
self.list.SetItemCustomRenderer(index, 3, klass)
|
|
613
|
+
|
|
614
|
+
self.list.SetItemData(index, key)
|
|
615
|
+
|
|
616
|
+
self.renderers = renderers
|
|
617
|
+
|
|
618
|
+
# show how to select an item
|
|
619
|
+
self.list.Select(5, True)
|
|
620
|
+
|
|
621
|
+
# show how to change the colour of a couple items
|
|
622
|
+
item = self.list.GetItem(1)
|
|
623
|
+
item.SetTextColour(wx.BLUE)
|
|
624
|
+
pyData = datetime.date(2009, 1, 1)
|
|
625
|
+
item.SetPyData(pyData)
|
|
626
|
+
|
|
627
|
+
self.list.SetItem(item)
|
|
628
|
+
item = self.list.GetItem(4)
|
|
629
|
+
item.SetTextColour(wx.RED)
|
|
630
|
+
pyData = datetime.date(2011, 3, 2)
|
|
631
|
+
item.SetPyData(pyData)
|
|
632
|
+
self.list.SetItem(item)
|
|
633
|
+
|
|
634
|
+
# Disable one item
|
|
635
|
+
item = self.list.GetItem(9)
|
|
636
|
+
item.Enable(False)
|
|
637
|
+
self.list.SetItem(item)
|
|
638
|
+
|
|
639
|
+
# Set 2 hypertext items
|
|
640
|
+
for ids in [2, 5]:
|
|
641
|
+
item = self.list.GetItem(ids, 2)
|
|
642
|
+
item.SetHyperText(True)
|
|
643
|
+
self.list.SetItem(item)
|
|
644
|
+
|
|
645
|
+
# Set 2 items with widgets
|
|
646
|
+
item = self.list.GetItem(8, 1)
|
|
647
|
+
self.gauge = wx.Gauge(self.list, -1, 50, style=wx.GA_HORIZONTAL|wx.GA_SMOOTH)
|
|
648
|
+
self.gauge.SetValue(20)
|
|
649
|
+
item.SetWindow(self.gauge)
|
|
650
|
+
self.list.SetItem(item)
|
|
651
|
+
|
|
652
|
+
item = self.list.GetItem(11, 0)
|
|
653
|
+
textctrl = wx.TextCtrl(self.list, -1, "I Am A Simple\nMultiline wx.TexCtrl", style=wx.TE_MULTILINE)
|
|
654
|
+
item.SetWindow(textctrl)
|
|
655
|
+
self.list.SetItem(item)
|
|
656
|
+
|
|
657
|
+
# Put an item with overflow
|
|
658
|
+
self.list.SetItemOverFlow(10, 0, True)
|
|
659
|
+
|
|
660
|
+
self.currentItem = 0
|
|
661
|
+
|
|
662
|
+
fontMask = ULC.ULC_MASK_FONTCOLOUR|ULC.ULC_MASK_FONT
|
|
663
|
+
fullMask = fontMask|ULC.ULC_MASK_BACKCOLOUR
|
|
664
|
+
|
|
665
|
+
customRow, customCol, colours = [0, 3], [2, 1], [wx.RED, wx.YELLOW]
|
|
666
|
+
|
|
667
|
+
for row, col, colour in zip(customRow, customCol, colours):
|
|
668
|
+
item = self.list.GetItem(row, col)
|
|
669
|
+
item.SetMask(fullMask)
|
|
670
|
+
item.SetTextColour(wx.GREEN)
|
|
671
|
+
font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
672
|
+
font.SetWeight(wx.FONTWEIGHT_BOLD)
|
|
673
|
+
item.SetFont(font)
|
|
674
|
+
item.SetBackgroundColour(colour)
|
|
675
|
+
self.list.SetItem(item)
|
|
676
|
+
|
|
677
|
+
standardFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
678
|
+
italicFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
679
|
+
italicFont.SetStyle(wx.FONTSTYLE_ITALIC)
|
|
680
|
+
boldFont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
|
681
|
+
boldFont.SetWeight(wx.FONTWEIGHT_BOLD)
|
|
682
|
+
|
|
683
|
+
lenCDB = len(self.colourList)
|
|
684
|
+
|
|
685
|
+
for indx in range(11, 20):
|
|
686
|
+
for col in range(self.list.GetColumnCount()):
|
|
687
|
+
result = random.randint(0, 2)
|
|
688
|
+
colourIndex = random.randint(0, lenCDB-1)
|
|
689
|
+
|
|
690
|
+
if result == 0:
|
|
691
|
+
fnt = standardFont
|
|
692
|
+
elif result == 1:
|
|
693
|
+
fnt = boldFont
|
|
694
|
+
else:
|
|
695
|
+
fnt = italicFont
|
|
696
|
+
|
|
697
|
+
item = self.list.GetItem(indx, col)
|
|
698
|
+
item.SetMask(fontMask)
|
|
699
|
+
item.SetFont(fnt)
|
|
700
|
+
item.SetTextColour(wx.TheColourDatabase.FindColour(self.colourList[colourIndex]))
|
|
701
|
+
self.list.SetItem(item)
|
|
702
|
+
|
|
703
|
+
self.list.SetColumnWidth(0, wx.LIST_AUTOSIZE)
|
|
704
|
+
self.list.SetColumnWidth(1, wx.LIST_AUTOSIZE)
|
|
705
|
+
self.list.SetColumnWidth(2, 100)
|
|
706
|
+
self.list.SetColumnWidth(3, 130)
|
|
707
|
+
|
|
708
|
+
## self.list.SetColumnShown(1, False)
|
|
709
|
+
|
|
710
|
+
self.list.Thaw()
|
|
711
|
+
self.list.Update()
|
|
712
|
+
|
|
713
|
+
self.timer.Start(300)
|
|
714
|
+
|
|
715
|
+
## self.list.EnableSelectionVista(True)
|
|
716
|
+
## self.list.SetGradientStyle(1)
|
|
717
|
+
## self.list.SetBackgroundImage(wx.Bitmap("splash.png", wx.BITMAP_TYPE_PNG))
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
def ChangeStyle(self, checks):
|
|
721
|
+
|
|
722
|
+
style = 0
|
|
723
|
+
for check in checks:
|
|
724
|
+
if check.GetValue() == 1:
|
|
725
|
+
style = style | eval("ULC." + check.GetLabel())
|
|
726
|
+
|
|
727
|
+
if self.list.GetAGWWindowStyleFlag() != style:
|
|
728
|
+
self.list.SetAGWWindowStyleFlag(style)
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
# Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py
|
|
732
|
+
def GetListCtrl(self):
|
|
733
|
+
return self.list
|
|
734
|
+
|
|
735
|
+
# Used by the ColumnSorterMixin, see wx/lib/mixins/listctrl.py
|
|
736
|
+
def GetSortImages(self):
|
|
737
|
+
return (self.sm_dn, self.sm_up)
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
def OnTimer(self, event):
|
|
741
|
+
|
|
742
|
+
for key, renderer in self.renderers.items():
|
|
743
|
+
renderer.UpdateValue()
|
|
744
|
+
self.list.RefreshItem(key)
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
def OnIdle(self, event):
|
|
748
|
+
|
|
749
|
+
if self.gauge:
|
|
750
|
+
try:
|
|
751
|
+
if self.gauge.IsEnabled() and self.gauge.IsShown():
|
|
752
|
+
self.count = self.count + 1
|
|
753
|
+
|
|
754
|
+
if self.count >= 50:
|
|
755
|
+
self.count = 0
|
|
756
|
+
|
|
757
|
+
self.gauge.SetValue(self.count)
|
|
758
|
+
|
|
759
|
+
except:
|
|
760
|
+
self.gauge = None
|
|
761
|
+
|
|
762
|
+
event.Skip()
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
def OnRightDown(self, event):
|
|
766
|
+
x = event.GetX()
|
|
767
|
+
y = event.GetY()
|
|
768
|
+
|
|
769
|
+
self.log.write("x, y = %s\n" % str((x, y)))
|
|
770
|
+
|
|
771
|
+
item, flags = self.list.HitTest((x, y))
|
|
772
|
+
|
|
773
|
+
if item != wx.NOT_FOUND and flags & wx.LIST_HITTEST_ONITEM:
|
|
774
|
+
self.list.Select(item)
|
|
775
|
+
|
|
776
|
+
event.Skip()
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
def getColumnText(self, index, col):
|
|
780
|
+
item = self.list.GetItem(index, col)
|
|
781
|
+
return item.GetText()
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
def OnItemSelected(self, event):
|
|
785
|
+
self.currentItem = event.Index
|
|
786
|
+
self.log.write("OnItemSelected: %s, %s, %s, %s\n" %(self.currentItem,
|
|
787
|
+
self.list.GetItemText(self.currentItem),
|
|
788
|
+
self.getColumnText(self.currentItem, 1),
|
|
789
|
+
self.getColumnText(self.currentItem, 2)))
|
|
790
|
+
|
|
791
|
+
if self.list.GetPyData(self.currentItem):
|
|
792
|
+
self.log.write("PYDATA = %s\n"%repr(self.list.GetPyData(self.currentItem)))
|
|
793
|
+
|
|
794
|
+
if self.currentItem == 10:
|
|
795
|
+
self.log.write("OnItemSelected: Veto'd selection\n")
|
|
796
|
+
#event.Veto() # doesn't work
|
|
797
|
+
# this does
|
|
798
|
+
self.list.SetItemState(10, 0, wx.LIST_STATE_SELECTED)
|
|
799
|
+
|
|
800
|
+
event.Skip()
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
def OnItemDeselected(self, evt):
|
|
804
|
+
item = evt.GetItem()
|
|
805
|
+
self.log.write("OnItemDeselected: %d\n" % evt.Index)
|
|
806
|
+
|
|
807
|
+
## # Show how to reselect something we don't want deselected
|
|
808
|
+
## if evt.Index == 11:
|
|
809
|
+
## wx.CallAfter(self.list.SetItemState, 11, wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED)
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
def OnItemActivated(self, event):
|
|
813
|
+
self.currentItem = event.Index
|
|
814
|
+
self.log.write("OnItemActivated: %s\nTopItem: %s\n" %(self.list.GetItemText(self.currentItem), self.list.GetTopItem()))
|
|
815
|
+
|
|
816
|
+
def OnBeginEdit(self, event):
|
|
817
|
+
self.log.write("OnBeginEdit\n")
|
|
818
|
+
event.Allow()
|
|
819
|
+
|
|
820
|
+
def OnItemDelete(self, event):
|
|
821
|
+
self.log.write("OnItemDelete\n")
|
|
822
|
+
|
|
823
|
+
def OnColClick(self, event):
|
|
824
|
+
self.log.write("OnColClick: %d\n" % event.GetColumn())
|
|
825
|
+
event.Skip()
|
|
826
|
+
|
|
827
|
+
def OnColRightClick(self, event):
|
|
828
|
+
item = self.list.GetColumn(event.GetColumn())
|
|
829
|
+
self.log.write("OnColRightClick: %d %s\n" %(event.GetColumn(), (item.GetText(), item.GetAlign(),
|
|
830
|
+
item.GetWidth(), item.GetImage())))
|
|
831
|
+
|
|
832
|
+
def OnColBeginDrag(self, event):
|
|
833
|
+
self.log.write("OnColBeginDrag\n")
|
|
834
|
+
## Show how to not allow a column to be resized
|
|
835
|
+
#if event.GetColumn() == 0:
|
|
836
|
+
# event.Veto()
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
def OnColDragging(self, event):
|
|
840
|
+
self.log.write("OnColDragging\n")
|
|
841
|
+
|
|
842
|
+
def OnColEndDrag(self, event):
|
|
843
|
+
self.log.write("OnColEndDrag\n")
|
|
844
|
+
|
|
845
|
+
def OnBeginDrag(self, event):
|
|
846
|
+
self.log.write("OnBeginDrag\n")
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
def OnEndDrag(self, event):
|
|
850
|
+
self.log.write("OnEndDrag\n")
|
|
851
|
+
|
|
852
|
+
def OnDoubleClick(self, event):
|
|
853
|
+
self.log.write("OnDoubleClick item %s\n" % self.list.GetItemText(self.currentItem))
|
|
854
|
+
event.Skip()
|
|
855
|
+
|
|
856
|
+
def OnRightClick(self, event):
|
|
857
|
+
self.log.write("OnRightClick %s\n" % self.list.GetItemText(self.currentItem))
|
|
858
|
+
|
|
859
|
+
# only do this part the first time so the events are only bound once
|
|
860
|
+
if not hasattr(self, "popupID1"):
|
|
861
|
+
self.popupID1 = wx.NewIdRef()
|
|
862
|
+
self.popupID2 = wx.NewIdRef()
|
|
863
|
+
self.popupID3 = wx.NewIdRef()
|
|
864
|
+
self.popupID4 = wx.NewIdRef()
|
|
865
|
+
self.popupID5 = wx.NewIdRef()
|
|
866
|
+
self.popupID6 = wx.NewIdRef()
|
|
867
|
+
|
|
868
|
+
self.Bind(wx.EVT_MENU, self.OnPopupOne, id=self.popupID1)
|
|
869
|
+
self.Bind(wx.EVT_MENU, self.OnPopupTwo, id=self.popupID2)
|
|
870
|
+
self.Bind(wx.EVT_MENU, self.OnPopupThree, id=self.popupID3)
|
|
871
|
+
self.Bind(wx.EVT_MENU, self.OnPopupFour, id=self.popupID4)
|
|
872
|
+
self.Bind(wx.EVT_MENU, self.OnPopupFive, id=self.popupID5)
|
|
873
|
+
self.Bind(wx.EVT_MENU, self.OnPopupSix, id=self.popupID6)
|
|
874
|
+
|
|
875
|
+
# make a menu
|
|
876
|
+
menu = wx.Menu()
|
|
877
|
+
# add some items
|
|
878
|
+
menu.Append(self.popupID1, "FindItem tests")
|
|
879
|
+
menu.Append(self.popupID2, "Iterate Selected")
|
|
880
|
+
menu.Append(self.popupID3, "ClearAll and repopulate")
|
|
881
|
+
menu.Append(self.popupID4, "DeleteAllItems")
|
|
882
|
+
menu.Append(self.popupID5, "GetItem")
|
|
883
|
+
menu.Append(self.popupID6, "Edit")
|
|
884
|
+
|
|
885
|
+
# Popup the menu. If an item is selected then its handler
|
|
886
|
+
# will be called before PopupMenu returns.
|
|
887
|
+
self.PopupMenu(menu)
|
|
888
|
+
menu.Destroy()
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
def OnPopupOne(self, event):
|
|
892
|
+
self.log.write("Popup one")
|
|
893
|
+
self.log.write("FindItem: %s"%self.list.FindItem(-1, "Roxette"))
|
|
894
|
+
self.log.write("FindItemData: %s\n"%self.list.FindItemData(-1, 11))
|
|
895
|
+
|
|
896
|
+
def OnPopupTwo(self, event):
|
|
897
|
+
self.log.write("Selected items:")
|
|
898
|
+
index = self.list.GetFirstSelected()
|
|
899
|
+
|
|
900
|
+
while index != -1:
|
|
901
|
+
self.log.write(" %s: %s" % (self.list.GetItemText(index), self.getColumnText(index, 1)))
|
|
902
|
+
index = self.list.GetNextSelected(index)
|
|
903
|
+
|
|
904
|
+
self.log.write("\n")
|
|
905
|
+
|
|
906
|
+
def OnPopupThree(self, event):
|
|
907
|
+
self.log.write("Popup three")
|
|
908
|
+
self.list.ClearAll()
|
|
909
|
+
wx.CallAfter(self.PopulateList)
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
def OnPopupFour(self, event):
|
|
913
|
+
self.list.DeleteAllItems()
|
|
914
|
+
|
|
915
|
+
def OnPopupFive(self, event):
|
|
916
|
+
item = self.list.GetItem(self.currentItem)
|
|
917
|
+
self.log.write(("%s, %s, %s")%(item._text, item._itemId, self.list.GetItemData(self.currentItem)))
|
|
918
|
+
|
|
919
|
+
def OnPopupSix(self, event):
|
|
920
|
+
self.list.EditLabel(self.currentItem)
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
#---------------------------------------------------------------------------
|
|
924
|
+
|
|
925
|
+
class TestFrame(wx.Frame):
|
|
926
|
+
|
|
927
|
+
def __init__(self, parent, log):
|
|
928
|
+
|
|
929
|
+
wx.Frame.__init__(self, parent, -1, "UltimateListCtrl in wx.LC_REPORT mode", size=(800, 600))
|
|
930
|
+
|
|
931
|
+
splitter = wx.SplitterWindow(self, -1, style=wx.CLIP_CHILDREN | wx.SP_LIVE_UPDATE | wx.SP_3D)
|
|
932
|
+
|
|
933
|
+
self.log = log
|
|
934
|
+
# Create the CustomTreeCtrl, using a derived class defined below
|
|
935
|
+
self.ulc = UltimateListCtrlPanel(splitter, self.log)
|
|
936
|
+
|
|
937
|
+
self.leftpanel = wx.ScrolledWindow(splitter, -1, style=wx.SUNKEN_BORDER)
|
|
938
|
+
self.leftpanel.SetScrollRate(20, 20)
|
|
939
|
+
width = self.PopulateLeftPanel()
|
|
940
|
+
|
|
941
|
+
# add the windows to the splitter and split it.
|
|
942
|
+
splitter.SplitVertically(self.leftpanel, self.ulc, width+5)
|
|
943
|
+
splitter.SetMinimumPaneSize(width+5)
|
|
944
|
+
|
|
945
|
+
sizer = wx.BoxSizer()
|
|
946
|
+
sizer.Add(splitter, 1, wx.EXPAND)
|
|
947
|
+
self.SetSizer(sizer)
|
|
948
|
+
self.SetIcon(images.Mondrian.GetIcon())
|
|
949
|
+
self.CenterOnScreen()
|
|
950
|
+
self.Show()
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
def PopulateLeftPanel(self):
|
|
954
|
+
|
|
955
|
+
pnl = wx.Panel(self.leftpanel)
|
|
956
|
+
mainsizer = wx.BoxSizer(wx.VERTICAL)
|
|
957
|
+
|
|
958
|
+
staticboxstyles = wx.StaticBox(pnl, -1, "UltimateListCtrl Styles")
|
|
959
|
+
stylesizer = wx.StaticBoxSizer(staticboxstyles, wx.VERTICAL)
|
|
960
|
+
staticboxthemes = wx.StaticBox(pnl, -1, "UltimateListCtrl Themes/Gradients")
|
|
961
|
+
themessizer = wx.StaticBoxSizer(staticboxthemes, wx.VERTICAL)
|
|
962
|
+
|
|
963
|
+
self.ulcstyles = []
|
|
964
|
+
sorted_styles = []
|
|
965
|
+
|
|
966
|
+
for style in _ulcStyles:
|
|
967
|
+
sorted_styles.append((style, eval("ULC." + style)))
|
|
968
|
+
|
|
969
|
+
sorted_styles.sort(key=operator.itemgetter(1))
|
|
970
|
+
|
|
971
|
+
count = 0
|
|
972
|
+
for styleName, styleVal in sorted_styles:
|
|
973
|
+
|
|
974
|
+
if styleName in ["ULC_VIRTUAL", "ULC_TILE", "ULC_LIST", "ULC_ICON",
|
|
975
|
+
"ULC_SMALL_ICON", "ULC_AUTOARRANGE"]:
|
|
976
|
+
continue
|
|
977
|
+
|
|
978
|
+
if "SORT" in styleName or "ALIGN" in styleName or "VIEWS" in styleName:
|
|
979
|
+
continue
|
|
980
|
+
|
|
981
|
+
if count == 0:
|
|
982
|
+
tags = wx.ALL
|
|
983
|
+
else:
|
|
984
|
+
tags = wx.LEFT|wx.RIGHT|wx.BOTTOM
|
|
985
|
+
|
|
986
|
+
check = wx.CheckBox(pnl, -1, styleName)
|
|
987
|
+
stylesizer.Add(check, 0, tags, 3)
|
|
988
|
+
|
|
989
|
+
if self.ulc.list.HasAGWFlag(styleVal):
|
|
990
|
+
check.SetValue(1)
|
|
991
|
+
else:
|
|
992
|
+
check.SetValue(0)
|
|
993
|
+
|
|
994
|
+
if styleName in ["ULC_HAS_VARIABLE_ROW_HEIGHT", "ULC_REPORT"]:
|
|
995
|
+
check.SetValue(1)
|
|
996
|
+
check.Enable(False)
|
|
997
|
+
|
|
998
|
+
check.Bind(wx.EVT_CHECKBOX, self.OnCheckStyle)
|
|
999
|
+
self.ulcstyles.append(check)
|
|
1000
|
+
count += 1
|
|
1001
|
+
|
|
1002
|
+
sizera = wx.BoxSizer(wx.HORIZONTAL)
|
|
1003
|
+
self.checknormal = wx.CheckBox(pnl, -1, "Standard Colours")
|
|
1004
|
+
self.checknormal.Bind(wx.EVT_CHECKBOX, self.OnCheckNormal)
|
|
1005
|
+
sizera.Add(self.checknormal, 0, wx.ALL, 3)
|
|
1006
|
+
|
|
1007
|
+
sizerb = wx.BoxSizer(wx.VERTICAL)
|
|
1008
|
+
self.checkgradient = wx.CheckBox(pnl, -1, "Gradient Theme")
|
|
1009
|
+
self.checkgradient.Bind(wx.EVT_CHECKBOX, self.OnCheckGradient)
|
|
1010
|
+
sizerb1 = wx.BoxSizer(wx.HORIZONTAL)
|
|
1011
|
+
sizerb1.Add((10, 0))
|
|
1012
|
+
self.radiohorizontal = wx.RadioButton(pnl, -1, "Horizontal", style=wx.RB_GROUP)
|
|
1013
|
+
self.radiohorizontal.Bind(wx.EVT_RADIOBUTTON, self.OnHorizontal)
|
|
1014
|
+
sizerb1.Add(self.radiohorizontal, 0, wx.TOP|wx.BOTTOM, 3)
|
|
1015
|
+
sizerb2 = wx.BoxSizer(wx.HORIZONTAL)
|
|
1016
|
+
sizerb2.Add((10, 0))
|
|
1017
|
+
self.radiovertical = wx.RadioButton(pnl, -1, "Vertical")
|
|
1018
|
+
self.radiovertical.Bind(wx.EVT_RADIOBUTTON, self.OnVertical)
|
|
1019
|
+
sizerb2.Add(self.radiovertical, 0, wx.BOTTOM, 3)
|
|
1020
|
+
sizerb3 = wx.BoxSizer(wx.HORIZONTAL)
|
|
1021
|
+
self.firstcolour = csel.ColourSelect(pnl, -1, "First Colour",
|
|
1022
|
+
self.ulc.list.GetFirstGradientColour())
|
|
1023
|
+
self.secondcolour = csel.ColourSelect(pnl, -1, "Second Colour",
|
|
1024
|
+
self.ulc.list.GetSecondGradientColour())
|
|
1025
|
+
self.firstcolour.Bind(csel.EVT_COLOURSELECT, self.OnFirstColour)
|
|
1026
|
+
self.secondcolour.Bind(csel.EVT_COLOURSELECT, self.OnSecondColour)
|
|
1027
|
+
sizerb3.Add(self.firstcolour, 0, wx.TOP|wx.BOTTOM, 3)
|
|
1028
|
+
sizerb3.Add(self.secondcolour, 0, wx.LEFT|wx.TOP|wx.BOTTOM, 3)
|
|
1029
|
+
sizerb.Add(self.checkgradient, 0, wx.ALL, 3)
|
|
1030
|
+
sizerb.Add(sizerb1, 0)
|
|
1031
|
+
sizerb.Add(sizerb2, 0)
|
|
1032
|
+
sizerb.Add(sizerb3, 0, wx.ALIGN_CENTER)
|
|
1033
|
+
|
|
1034
|
+
self.checkvista = wx.CheckBox(pnl, -1, "Windows Vista Theme")
|
|
1035
|
+
self.checkvista.Bind(wx.EVT_CHECKBOX, self.OnVista)
|
|
1036
|
+
|
|
1037
|
+
themessizer.Add(sizera, 0, wx.EXPAND)
|
|
1038
|
+
themessizer.Add(sizerb, 0, wx.EXPAND)
|
|
1039
|
+
themessizer.Add((0, 5))
|
|
1040
|
+
themessizer.Add(self.checkvista, 0, wx.EXPAND|wx.ALL, 3)
|
|
1041
|
+
|
|
1042
|
+
mainsizer.Add(stylesizer, 0, wx.EXPAND|wx.ALL, 5)
|
|
1043
|
+
mainsizer.Add(themessizer, 0, wx.EXPAND|wx.ALL, 5)
|
|
1044
|
+
|
|
1045
|
+
pnl.SetSizer(mainsizer)
|
|
1046
|
+
pnl.Fit()
|
|
1047
|
+
|
|
1048
|
+
swsizer = wx.BoxSizer(wx.VERTICAL)
|
|
1049
|
+
swsizer.Add(pnl, 0, wx.EXPAND)
|
|
1050
|
+
self.leftpanel.SetSizer(swsizer)
|
|
1051
|
+
swsizer.Layout()
|
|
1052
|
+
swsizer.Fit(self.leftpanel)
|
|
1053
|
+
|
|
1054
|
+
self.checknormal.SetValue(1)
|
|
1055
|
+
self.radiohorizontal.Enable(False)
|
|
1056
|
+
self.radiovertical.Enable(False)
|
|
1057
|
+
self.firstcolour.Enable(False)
|
|
1058
|
+
self.secondcolour.Enable(False)
|
|
1059
|
+
|
|
1060
|
+
return mainsizer.CalcMin().width + wx.SystemSettings.GetMetric(wx.SYS_VSCROLL_X)
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
def OnCheckStyle(self, event):
|
|
1064
|
+
|
|
1065
|
+
self.ulc.ChangeStyle(self.ulcstyles)
|
|
1066
|
+
event.Skip()
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
def OnCheckNormal(self, event):
|
|
1070
|
+
|
|
1071
|
+
self.radiohorizontal.Enable(False)
|
|
1072
|
+
self.radiovertical.Enable(False)
|
|
1073
|
+
self.firstcolour.Enable(False)
|
|
1074
|
+
self.secondcolour.Enable(False)
|
|
1075
|
+
self.checkgradient.SetValue(0)
|
|
1076
|
+
self.checkvista.SetValue(0)
|
|
1077
|
+
self.ulc.list.EnableSelectionGradient(False)
|
|
1078
|
+
self.ulc.list.EnableSelectionVista(False)
|
|
1079
|
+
event.Skip()
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
def OnCheckGradient(self, event):
|
|
1083
|
+
|
|
1084
|
+
self.radiohorizontal.Enable(True)
|
|
1085
|
+
self.radiovertical.Enable(True)
|
|
1086
|
+
self.firstcolour.Enable(True)
|
|
1087
|
+
self.secondcolour.Enable(True)
|
|
1088
|
+
self.checknormal.SetValue(0)
|
|
1089
|
+
self.checkvista.SetValue(0)
|
|
1090
|
+
self.ulc.list.SetGradientStyle(self.radiovertical.GetValue())
|
|
1091
|
+
self.ulc.list.EnableSelectionVista(False)
|
|
1092
|
+
self.ulc.list.EnableSelectionGradient(True)
|
|
1093
|
+
|
|
1094
|
+
event.Skip()
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
def OnHorizontal(self, event):
|
|
1098
|
+
|
|
1099
|
+
self.ulc.list.SetGradientStyle(self.radiovertical.GetValue())
|
|
1100
|
+
event.Skip()
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
def OnVertical(self, event):
|
|
1104
|
+
|
|
1105
|
+
self.ulc.list.SetGradientStyle(self.radiovertical.GetValue())
|
|
1106
|
+
event.Skip()
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
def OnFirstColour(self, event):
|
|
1110
|
+
|
|
1111
|
+
col1 = event.GetValue()
|
|
1112
|
+
self.ulc.list.SetFirstGradientColour(wx.Colour(col1[0], col1[1], col1[2]))
|
|
1113
|
+
event.Skip()
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
def OnSecondColour(self, event):
|
|
1117
|
+
|
|
1118
|
+
col1 = event.GetValue()
|
|
1119
|
+
self.ulc.list.SetSecondGradientColour(wx.Colour(col1[0], col1[1], col1[2]))
|
|
1120
|
+
event.Skip()
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
def OnVista(self, event):
|
|
1124
|
+
|
|
1125
|
+
self.radiohorizontal.Enable(False)
|
|
1126
|
+
self.radiovertical.Enable(False)
|
|
1127
|
+
self.firstcolour.Enable(False)
|
|
1128
|
+
self.secondcolour.Enable(False)
|
|
1129
|
+
self.checknormal.SetValue(0)
|
|
1130
|
+
self.checkgradient.SetValue(0)
|
|
1131
|
+
self.ulc.list.EnableSelectionGradient(False)
|
|
1132
|
+
self.ulc.list.EnableSelectionVista(True)
|
|
1133
|
+
|
|
1134
|
+
event.Skip()
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
#---------------------------------------------------------------------------
|
|
1138
|
+
|
|
1139
|
+
if __name__ == '__main__':
|
|
1140
|
+
import sys
|
|
1141
|
+
app = wx.App(0)
|
|
1142
|
+
frame = TestFrame(None, sys.stdout)
|
|
1143
|
+
frame.Show(True)
|
|
1144
|
+
app.MainLoop()
|
|
1145
|
+
|
|
1146
|
+
|