アットウィキロゴ

wxPython API

wxPython API

wxPython API is a set of functions and widgets. Widgets are essential building blocks of a GUI application.

Under Windows widgets are calles controls.

We can roughly divide programmers into two groups. They code applications or libraries.

In our case, wxPython is a library that is used by application programmers to code applications.

Technically, wxPython is a wrapper over a C++ GUI API called wxWidgets.

So it is not a native API. e.g. not written directly in Python.

The only native GUI library for an interpreted language that I know is Java's Swing library.

Wxpython API は関数とウィジットのセットである。ウィジットは肝心な GUI アプリケーションの一部である。

Windows環境下では、ウィジットはコントロールを呼んでいる。

だいたい、アプリケーションとライブラリの二つのグループに分けることができるだろう。

wxPython はアプリケーション作成者がアプリケーションを記述する時に使うライブラリである。

技術的には wxPython は wxWidgets の C++ GUI API を呼ぶラッパーだ。

そう、ネイティブな API ではない。直接 Python で書かれていない。

(?)インタプリタ言語でネイティブ GUI ライブラリなものは、私の知る限り Java の Swing ライブラリのみである。

In wxPython we have lot's of widgets. These can be divided into some logical groups.

wxPython には沢山のウィジットがある。論理的なグループに分けてみよう。

Base Widgets

ベース ウィジット

These widgets provide basic functionality for derived widgets. They are usually not used directly.

これらのウィジットは基本的な機能をウィジットに付与している。ただ、普通は直接使わない。

  • wx.Window
  • wx.Control
  • wx.ControlWithItem

Top level Widgets

トップレベル ウィジット

These widgets exist independently of each other.

これらのウィジットはそれぞれ独立している。

  • wx.Frame
  • wx.MDIParentFrame
  • wx.MDIChildFrame
  • wx.Dialog
  • wx.PopupWindow

Containers

コンテナ

Containers contain other widgets. These widgets are called children.

コンテナは他のウィジットを収納できる。収納されたウィジットは「子ウィジット」と呼ばれる。

  • wx.Panel
  • wx.Notebook
  • wx.ScrolledWindow
  • wx.SplitterWindow

Dynamic Widgets

ダイナミック ウィジット

These widgets can be edited by users.

これらのウィジットはユーザーによって編集される。

  • wx.Button
  • wx.BitmapButton
  • wx.Choice
  • wx.ComboBox
  • wx.CheckBox
  • wx.Grid
  • wx.ListBox
  • wx.RadioBox
  • wx.RadioButton
  • wx.ScrollBar
  • wx.SpinButton
  • wx.SpinCtrl
  • wx.Slider
  • wx.TextCtrl
  • wx.ToggleButton

Static Widgets

スタティック ウィジット

These widgets display informatin. They cannot be edited by user.

これらのウィジットは情報を表示する。これらはユーザーが編集できない。

  • wx.Gauge
  • wx.StaticText
  • wx.StaticBitmap
  • wx.StaticLine
  • wx.StaticBox

Other Widgets

その他のウィジット

These widgets implement statusbar, toolbar and menubar in an application.

これらのウィジットはアプリケーションのステータスバーやツールバー、メニューバーになる。

  • wx.MenuBar
  • wx.ToolBar
  • wx.StatusBar
最終更新:2009年01月08日 23:13