wxpython 中的所有控件及高级应用

转自http://xoomer.virgilio.it/infinity77/Phoenix/lib.agw.html,,,哈哈终于找到了这块的内容,书上基本没有讲解

This is the Advanced Generic Widgets package (AGW). It provides many custom-drawn wxPython controls: some of them can be used as a replacement of the platform native controls, others are simply an addition to the already rich wxPython widgets set.

Description:

AGW contains many different modules, listed below. Items labelled with an asterisk were already present in lib before:

  • AdvancedSplash: reproduces the behaviour of SplashScreen, with more advanced features like custom shapes and text animations;
  • AquaButton: this is another custom-drawn button class which approximatively mimics the behaviour of Aqua buttons on the Mac;
  • AUI: a pure-Python implementation of aui, with many bug fixes and new features like HUD docking and AuiNotebook tab arts;
  • BalloonTip: allows you to display tooltips in a balloon style window (actually a frame), similarly to the Windows XP balloon help;
  • ButtonPanel (*): a panel with gradient background shading with the possibility to add buttons and controls still respecting the gradient background;
  • CubeColourDialog: an alternative implementation of ColourDialog, it offers different functionalities like colour wheel and RGB cube;
  • CustomTreeCtrl (*): mimics the behaviour of TreeCtrl, with almost the same base functionalities plus a bunch of enhancements and goodies;
  • FlatMenu: as the name implies, it is a generic menu implementation, offering the same MenuBar / Menu / ToolBar capabilities and much more;
  • FlatNotebook (*): a full implementation of the Notebook, and designed to be a drop-in replacement for Notebook with enhanced capabilities;
  • FloatSpin: this class implements a floating point spinctrl, cabable (in theory) of handling infinite-precision floating point numbers;
  • FoldPanelBar (*): a control that contains multiple panels that can be expanded or collapsed a la Windows Explorer/Outlook command bars;
  • FourWaySplitter: this is a layout manager which manages four children like four panes in a window, similar to many CAD software interfaces;
  • GenericMessageDialog: it is a possible replacement for the standard MessageDialog, with a fancier look and extended functionalities;
  • GradientButton: another custom-drawn button class which mimics Windows CE mobile gradient buttons, using a tri-vertex blended gradient background;
  • HyperLinkCtrl (*): this widget acts line an hyper link in a typical browser;
  • HyperTreeList: a class that mimics the behaviour of gizmos.TreeListCtrl, with almost the same base functionalities plus some more enhancements;
  • InfoBar: a transient window shown at top or bottom of its parent window to display non-critical information to the user;
  • KnobCtrl: a widget which lets the user select a numerical value by rotating it, like a slider with a wheel shape;
  • LabelBook and FlatImageBook: these are a quasi-full implementations of ListBook, with additional features;
  • MultiDirDialog: it represents a possible replacement for DirDialog, with the additional ability of selecting multiple folders at once and a fancier look;
  • PeakMeter: this widget mimics the behaviour of LED equalizers that are usually found in stereos and MP3 players;
  • PersistentControls: widgets which automatically save their state when they are destroyed and restore it when they are recreated, even during another program invocation;
  • PieCtrl and ProgressPie: these are simple classes that reproduce the behavior of a pie chart, in a static or progress-gauge-like way;
  • PyBusyInfo: constructs a busy info window and displays a message in it: it is similar to BusyInfo;
  • PyCollapsiblePane: a pure Python implementation of the original wxWidgets C++ code of CollapsiblePane, with customizable buttons;
  • PyGauge: a generic Gauge implementation, it supports the determinate mode functions as Gauge;
  • PyProgress: it is similar to ProgressDialog in indeterminated mode, but with a different gauge appearance and a different spinning behavior;
  • RibbonBar: the RibbonBar library is a set of classes for writing a ribbon user interface, similar to the user interface present in recent versions of Microsoft Office;
  • RulerCtrl: it implements a ruler window that can be placed on top, bottom, left or right to any wxPython widget. It is somewhat similar to the rulers you can find in text editors software;
  • ShapedButton: this class tries to fill the lack of “custom shaped” controls in wxPython. It can be used to build round buttons or elliptic buttons;
  • ShortcutEditor: a widget that allows the user to customize and change keyboard shortcuts via a dialog;
  • SpeedMeter: this widget tries to reproduce the behavior of some car controls (but not only), by creating an “angular” control;
  • SuperToolTip: a class that mimics the behaviour of TipWindow and generic tooltips, with many features and highly customizable;
  • ThumbnailCtrl: a widget that can be used to display a series of images in a “thumbnail” format; it mimics, for example, the Windows Explorer behavior when you select the “view thumbnails” option;
  • ToasterBox: a cross-platform widget to make the creation of MSN-style “toaster” popups easier;
  • UltimateListCtrl: mimics the behaviour of ListCtrl, with almost the same base functionalities plus some more enhancements;
  • XLSGrid: a class based on grid.Grid that can be used to faithfully reproduce the appearance of a Microsoft Excel spreadsheets;
  • ZoomBar: a class that appoximatively mimics the behaviour of the Mac Dock, inside a Panel.

Bugs and Limitations: many, patches and fixes welcome :-D

See the demos for an example of what AGW can do, and on how to use it.

Copyright: Andrea Gavana

License: Same as the version of wxPython you are using it with.

SVN for latest code: http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/AGW/

Mailing List: [email protected]

My personal web page: http://xoomer.alice.it/infinity77

Please let me know if you are using AGW!

You can contact me at:

[email protected] [email protected]

AGW version: 0.9.6

Last updated: 09 Apr 2012, 11.00 GMT

 Packages Summary

aui AUI is an Advanced User Interface library that aims to implement “cutting-edge”
persist Introduction
ribbon The RibbonBar library is a set of classes for writing a ribbon user interface.

 Modules Summary

advancedsplash AdvancedSplash tries to reproduce the behavior of SplashScreen, with
aquabutton AquaButton is another custom-drawn button class which approximatively mimics
artmanager This module contains drawing routines and customizations for the AGW widgets
balloontip BalloonTip is a class that allows you to display tooltips in a balloon style
buttonpanel A custom panel class with gradient background shading with the possibility to
cubecolourdialog CubeColourDialog is an alternative implementation of ColourDialog.
customtreectrl CustomTreeCtrl is a class that mimics the behaviour of TreeCtrl, with some more
flatmenu FlatMenu is a generic menu implementation.
flatnotebook FlatNotebook is a full, generic and owner-drawn implementation of Notebook.
floatspin FloatSpin implements a floating point SpinCtrl.
fmcustomizedlg This module contains a custom dialog class used to personalize the appearance of a
fmresources  
foldpanelbar FoldPanelBar is a control that contains multiple panels, which can be expanded
fourwaysplitter FourWaySplitter is a layout manager which manages 4 children like 4 panes in a
genericmessagedialog This class is a possible, fancy replacement for MessageDialog.
gradientbutton GradientButton is another custom-drawn button class which mimics Windows CE mobile
hyperlink HyperLinkCtrl is a control for wxPython that acts like a hyper link
hypertreelist HyperTreeList is a class that mimics the behaviour of gizmos.TreeListCtrl, with
infobar An info bar is a transient window shown at top or bottom of its parent window to display
knobctrl KnobCtrl lets the user select a numerical value by rotating it.
labelbook LabelBook and FlatImageBook are a quasi-full generic and owner-drawn
multidirdialog This class represents a possible replacement for DirDialog, with the additional
peakmeter PeakMeterCtrl mimics the behaviour of equalizers that are usually found in stereos
piectrl PieCtrl and ProgressPie are simple classes that reproduce the behavior of a pie
pybusyinfo PyBusyInfo constructs a busy info window and displays a message in it.
pycollapsiblepane PyCollapsiblePane is a container with an embedded button-like control which
pygauge PyGauge is a generic Gauge implementation.
pyprogress PyProgress is similar to ProgressDialog in indeterminated mode, but with a
rulerctrl RulerCtrl implements a ruler window that can be placed on top, bottom, left or right
shapedbutton ShapedButton tries to fill the lack of “custom shaped” controls in wxPython
shortcuteditor ShortcutEditor is a widget that allows the user to customize and change keyboard
speedmeter SpeedMeter tries to reproduce the behavior of some car controls (but not only),
supertooltip SuperToolTip is a class that mimics the behaviour of TipWindow and generic tooltip
thumbnailctrl ThumbnailCtrl is a widget that can be used to display a series of images in
toasterbox ToasterBox is a cross-platform widget to make the creation of MSN style “toaster”
ultimatelistctrl Description
xlsgrid XLSGrid is a class based on grid.Grid that can be used to faithfully
zoombar ZoomBar is a class that appoximatively mimics the behaviour of the Mac Dock,
时间: 2024-08-03 21:56:23

wxpython 中的所有控件及高级应用的相关文章

Winform中使用用户控件实现带行数和标尺的RichTextBox(附代码下载)

场景 RichTextBox控件允许用户输入和编辑文本的同时提供了比普通的TextBox控件更高级的格式特征. 效果 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 新建一个用户控件GuageRichTextBox. 编辑用户控件,相当于自己定义了一个控件,和其他控件一样在窗体中使用,是一个类. 然后打开其设计页面,放置一个RichTextBox 然后进入其代码 usi

android 在布局中动态添加控件

第一步 Java代码 final LayoutInflater inflater = LayoutInflater.from(this); 第二步:获取需要被添加控件的布局 Java代码 final LinearLayout lin = (LinearLayout) findViewById(R.id.LinearLayout01); 第三步:获取需要添加的布局(控件) Java代码 LinearLayout layout = (LinearLayout) inflater.inflate( R

使用Devexpress中的CharControl控件,需要控制AxisY轴的显示范围,需要使用该控件的BoundDataChanged事件

一.控制ChartControl的Y轴范围 使用Devexpress中的CharControl控件,需要控制AxisY轴的显示范围,需要使用该控件的BoundDataChanged事件,具体代码如下: 该代码实现的效果如下: 参考文献: [1]AxisY Range Auto https://www.devexpress.com/Support/Center/Question/Details/Q266328 二.设置GridControl表格中的超级链接: 1.首先在表格的设计器中添加一个Hyp

C# dataGridView控件中加入comboBox控件及注意事项

DataGridViewComboBoxColumn pCombo; private void Teaching_Add_Load(object sender, EventArgs e) { MyDBase DB = new MyDBase(DBUser.sserver,DBUser.DBName, DBUser.suser, DBUser.spasswd); DataSet DS= DB.GetRecordset("select * from view_teach_tmp"); da

WPF 中动态改变控件模板

在某些项目中,可能需要动态的改变控件的模板,例如软件中可以选择不同的主题,在不同的主题下软件界面.控件的样式都会有所不同,这时即可通过改变控件模板的方式实现期望的功能. 基本方法是当用户点击切换主题按钮是加载新的资源字典,并使用新加载的资源字典替代当前的资源字典这时要用到ResourceManager. 假设现有两个不同的资源字典文件Dictionary1.xaml和Dictionary2.xaml存在于Themes文件夹内: 在MainPage中使用其中一个资源字典作为默认样式文件: <Win

FormView的插入模板中的DropDownList控件参数

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT

SplendidCRM中给来自EditView中的listbox控件设置选中值或数据源

DropDownList list = this.findContol("aas") as DropDownList;list.DataSource = new DataTable() ------------------------------- Control ctl = this.FindControl("NAME");            if (ctl != null)            {                if (ctl is Dro

vs2010中的ADO控件及绑定控件

要在项目中添加某一个ActiveX控件,则该ActiveX控件必须要注册.由于VS2010中,并没有自动注册ADO及ADO数据绑定控件(Microsoft ADO Data Control,Microsoft DataCombo等),参考http://msdn.microsoft.com/zh-cn/library/dsb06ab6(v=vs.100).aspx 故没法在插入ActiveX控件对话框中找到它们. 若要在VS2010中获得这种控件,需要另外下载然后注册,或者利用以前的VS版本获得.

Android 在布局容器中动态添加控件

这里,通过一个小demo,就可以掌握在布局容器中动态添加控件,以动态添加Button控件为例,添加其他控件同样道理. 1.addView 添加控件到布局容器 2.removeView 在布局容器中删掉已有的控件 3.使用,来个小demo就明白了 public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save