.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.grid.Grid:
==========================================================================================================================================
|phoenix_title| **wx.grid.Grid**
==========================================================================================================================================
:ref:`wx.grid.Grid` and its related classes are used for displaying and editing tabular data.
They provide a rich set of features for display, editing, and interacting with a variety of data sources. For simple applications, and to help you get started, :ref:`wx.grid.Grid` is the only class you need to refer to directly. It will set up default instances of the other classes and manage them for you. For more complex applications you can derive your own classes for custom grid views, grid data tables, cell editors and renderers. The :ref:`Grid Overview <grid overview>` has examples of simple and more complex applications, explains the relationship between the various grid classes and has a summary of the keyboard shortcuts and mouse functions provided by :ref:`wx.grid.Grid`.
A :ref:`wx.grid.GridTableBase` class holds the actual data to be displayed by a :ref:`wx.grid.Grid` class. One or more :ref:`wx.grid.Grid` classes may act as a view for one table class. The default table class is called :ref:`wx.grid.GridStringTable` and holds an array of strings. An instance of such a class is created by :meth:`~wx.grid.Grid.CreateGrid`.
:ref:`wx.grid.GridCellRenderer` is the abstract base class for rendering contents in a cell. The following renderers are predefined:
- :ref:`wx.grid.GridCellBoolRenderer`
- :ref:`wx.grid.GridCellFloatRenderer`
- :ref:`wx.grid.GridCellNumberRenderer`
- :ref:`wx.grid.GridCellStringRenderer`
- :ref:`wx.grid.GridCellDateRenderer`
- :ref:`wx.grid.GridCellDateTimeRenderer`
The look of a cell can be further defined using :ref:`wx.grid.GridCellAttr`. An object of this type may be returned by :meth:`wx.grid.GridTableBase.GetAttr` .
:ref:`wx.grid.GridCellEditor` is the abstract base class for editing the value of a cell. The following editors are predefined:
- :ref:`wx.grid.GridCellBoolEditor`
- :ref:`wx.grid.GridCellChoiceEditor`
- :ref:`wx.grid.GridCellFloatEditor`
- :ref:`wx.grid.GridCellNumberEditor`
- :ref:`wx.grid.GridCellTextEditor`
- :ref:`wx.grid.GridCellDateEditor`
Please see :ref:`wx.grid.GridEvent`, :ref:`wx.grid.GridSizeEvent`, :ref:`wx.grid.GridRangeSelectEvent`, and :ref:`wx.grid.GridEditorCreatedEvent` for the documentation of all event types you can use with :ref:`wx.grid.Grid`.
.. seealso:: :ref:`Grid Overview <grid overview>`, :ref:`wx.grid.GridUpdateLocker`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for class <strong>Grid</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/wx.grid.Grid_inheritance.png" alt="Inheritance diagram of Grid" usemap="#dummy" class="inheritance"/></center>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
<map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.grid.Grid.html" title="wx.grid.Grid and its related classes are used for displaying and editing tabular data." alt="" coords="41,179,137,208"/> <area shape="rect" id="node2" href="Scrolled< wxWindow >.html" title="Scrolled< wxWindow >" alt="" coords="5,101,172,131"/> </map>
</p>
</div>
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.grid.Grid.__init__` Default constructor.
:meth:`~wx.grid.Grid.AppendCols` Appends one or more new columns to the right of the grid.
:meth:`~wx.grid.Grid.AppendRows` Appends one or more new rows to the bottom of the grid.
:meth:`~wx.grid.Grid.AreHorzGridLinesClipped` Return ``True`` if the horizontal grid lines stop at the last column boundary or ``False`` if they continue to the end of the window.
:meth:`~wx.grid.Grid.AreVertGridLinesClipped` Return ``True`` if the vertical grid lines stop at the last row boundary or ``False`` if they continue to the end of the window.
:meth:`~wx.grid.Grid.AssignTable` Assigns a pointer to a custom grid table to be used by the grid.
:meth:`~wx.grid.Grid.AutoSize` Automatically sets the height and width of all rows and columns to fit their contents.
:meth:`~wx.grid.Grid.AutoSizeColLabelSize` Automatically adjusts width of the column to fit its label.
:meth:`~wx.grid.Grid.AutoSizeColumn` Automatically sizes the column to fit its contents.
:meth:`~wx.grid.Grid.AutoSizeColumns` Automatically sizes all columns to fit their contents.
:meth:`~wx.grid.Grid.AutoSizeRow` Automatically sizes the row to fit its contents.
:meth:`~wx.grid.Grid.AutoSizeRowLabelSize` Automatically adjusts height of the row to fit its label.
:meth:`~wx.grid.Grid.AutoSizeRows` Automatically sizes all rows to fit their contents.
:meth:`~wx.grid.Grid.BeginBatch` Increments the grid's batch count.
:meth:`~wx.grid.Grid.BlockToDeviceRect` Convert grid cell coordinates to grid window pixel coordinates.
:meth:`~wx.grid.Grid.CalcCellsExposed` Appends one or more new columns to the right of the grid.
:meth:`~wx.grid.Grid.CalcColLabelsExposed` Appends one or more new columns to the right of the grid.
:meth:`~wx.grid.Grid.CalcGridWindowScrolledPosition` Translates the logical coordinates to the device ones, taking into account the grid window type.
:meth:`~wx.grid.Grid.CalcGridWindowUnscrolledPosition` Translates the device coordinates to the logical ones, taking into account the grid window type.
:meth:`~wx.grid.Grid.CalcRowLabelsExposed` Appends one or more new columns to the right of the grid.
:meth:`~wx.grid.Grid.CanDragCell` Return ``True`` if the dragging of cells is enabled or ``False`` otherwise.
:meth:`~wx.grid.Grid.CanDragColMove` Returns ``True`` if columns can be moved by dragging with the mouse.
:meth:`~wx.grid.Grid.CanDragColSize` Returns ``True`` if the given column can be resized by dragging with the mouse.
:meth:`~wx.grid.Grid.CanDragGridColEdges` Return ``True`` if co
没有合适的资源?快使用搜索试试~ 我知道了~
wxPython-docs-4.2.0.tar.gz 开发文档
需积分: 2 0 下载量 188 浏览量
2023-08-27
11:09:25
上传
评论
收藏 26.33MB GZ 举报
温馨提示
wxPython 4.2 开发文档 pip install wxpython==4.2 cd \Python37\Scripts wxdocs.exe 下载 wxPython-docs-4.2.0.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
wxPython-docs-4.2.0.tar.gz 开发文档 (2000个子文件)
wx.lib.agw.aui.framemanager.AuiManager.html 297KB
wx.lib.agw.ultimatelistctrl.UltimateListMainWindow.html 289KB
wx.1moduleindex.html 248KB
genindex-O.html 236KB
wx.lib.agw.hypertreelist.HyperTreeList.html 235KB
genindex-I.html 174KB
wx.TextAttr.html 174KB
wx.dataview.DataViewCtrl.html 168KB
wx.TreeCtrl.html 164KB
wx.lib.agw.aui.framemanager.AuiPaneInfo.html 162KB
wx.richtext.RichTextBuffer.html 161KB
wx.stc.StyledTextEvent.html 161KB
wx.richtext.RichTextObject.html 153KB
wx.Language.enumeration.html 143KB
wx.ComboCtrl.html 132KB
wx.Bitmap.html 122KB
genindex-R.html 122KB
wx.SearchCtrl.html 109KB
wx.aui.AuiToolBar.html 109KB
wx.dataview.TreeListCtrl.html 107KB
wx.lib.agw.ultimatelistctrl.UltimateListItem.html 106KB
wx.lib.agw.ribbon.art_msw.RibbonMSWArtProvider.html 104KB
wx.lib.agw.flatmenu.FlatMenuBar.html 103KB
wx.xrc.XmlResourceHandler.html 102KB
wx.lib.agw.artmanager.ArtManager.html 100KB
genindex-M.html 89KB
wx.lib.editor.editor.Editor.html 88KB
wx.aui.AuiManager.html 87KB
wx.lib.agw.floatspin.FloatSpin.html 85KB
sizers_overview.html 85KB
wx.html.HtmlWindow.html 83KB
wx.aui.AuiNotebook.html 81KB
wx.lib.agw.persist.persistencemanager.PersistenceManager.html 79KB
wx.lib.agw.speedmeter.SpeedMeter.html 78KB
wx.MouseEvent.html 77KB
wx.RendererNative.html 74KB
wx.EvtHandler.html 74KB
MigrationGuide.html 73KB
wx.richtext.RichTextFieldTypeStandard.html 71KB
wx.HeaderCtrl.html 71KB
wx.lib.agw.aui.framemanager.html 70KB
py-modindex.html 70KB
wx.FileDialog.html 69KB
wx.adv.GenericCalendarCtrl.html 68KB
wx.VListBox.html 67KB
wx.adv.CalendarCtrl.html 66KB
wx.adv.Wizard.html 65KB
wx.xml.XmlDocument.html 64KB
wx.html.HtmlCell.html 64KB
wx.lib.agw.ultimatelistctrl.UltimateListItemData.html 63KB
wx.lib.plot.examples.demo.PlotDemoMainFrame.html 61KB
wx.Log.html 61KB
wx.ArtProvider.html 61KB
wx.lib.agw.ribbon.gallery.RibbonGallery.html 60KB
wx.lib.agw.labelbook.ImageContainerBase.html 59KB
wx.MessageDialog.html 59KB
wx.lib.agw.aui.auibar.AuiToolBarItem.html 59KB
wx.PrintData.html 59KB
wx.ribbon.RibbonBar.html 59KB
wx.Pen.html 57KB
wx.MenuBar.html 57KB
wx.ComboBox.html 55KB
wx.lib.buttons.GenButton.html 55KB
wx.py.shell.Shell.html 55KB
wx.richtext.RichTextImage.html 55KB
wx.lib.calendar.Calendar.html 54KB
wx.GenericDirCtrl.html 54KB
wx.richtext.RichTextPrinting.html 54KB
wx.lib.agw.ultimatelistctrl.html 54KB
wx.richtext.RichTextAction.html 53KB
wx.lib.agw.aui.auibook.AuiTabCtrl.html 52KB
wx.lib.masked.numctrl.NumCtrl.html 51KB
wx.html.HtmlHelpController.html 51KB
wx.lib.agw.ultimatelistctrl.UltimateListHeaderData.html 51KB
genindex-B.html 51KB
html_overview.html 50KB
wx.ribbon.RibbonGallery.html 50KB
wx.AnyButton.html 49KB
wx.SpinCtrl.html 49KB
wx.lib.agw.ribbon.page.RibbonPage.html 49KB
wx.lib.agw.aui.tabart.AuiDefaultTabArt.html 49KB
wx.lib.agw.labelbook.LabelContainer.html 47KB
wx.Icon.html 47KB
wx.PickerBase.html 46KB
wx.adv.PropertySheetDialog.html 46KB
wx.UpdateUIEvent.html 46KB
wx.lib.agw.flatnotebook.html 46KB
wx.ImageHandler.html 45KB
wx.NativeFontInfo.html 45KB
wx.SpinCtrlDouble.html 45KB
wx.lib.masked.maskededit.html 45KB
wx.dataview.DataViewCustomRenderer.html 44KB
wx.IndividualLayoutConstraint.html 44KB
wx.FileCtrl.html 44KB
wx.richtext.RichTextStyleOrganiserDialog.html 44KB
wx.EventLoopBase.html 44KB
wx.richtext.SymbolPickerDialog.html 44KB
wx.Notebook.html 43KB
wx.Event.html 43KB
wx.CommandProcessor.html 43KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
belldeep
- 粉丝: 1011
- 资源: 55
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 料带自动上料机含bom和3D图纸和工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- 使用Java多线程和同步机制实现生产者-消费者模式.zip
- 端子排自动切割设备含bom工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- Python爬虫入门实例:利用requests和BeautifulSoup抓取网页标题
- HBase常用的Shell命令
- Linux下Oracle 11g的完整安装与配置指南
- MySQL多平台安装教程:Windows、macOS与Linux
- 新年快乐,喜庆html
- 单片机综合实验储物箱重庆邮电大学
- Screenshot_20241224_205242_com.tencent.tmgp.sgame.jpg
- html css网页制作成品.docx
- Selenium-ECShop项目文档
- 实验报告,重庆邮电大学,单片机,大作业
- 汽车防撞梁总成装配台3D图纸和工程图机械结构设计图纸和其它技术资料和技术方案非常好100%好用.zip
- Java平台Maven项目管理和构建工具的安装与配置
- 重庆邮电大学所有实验单片机,大作业,串口,双机编程,程序文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功