<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/tutorial-memo/">
    <title>wxPythonの個人的メモ</title>
    <link>http://w.atwiki.jp/tutorial-memo/</link>
    <atom:link href="https://w.atwiki.jp/tutorial-memo/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>wxPythonの個人的メモ</description>

    <dc:language>ja</dc:language>
    <dc:date>2009-01-15T16:10:46+09:00</dc:date>
    <utime>1232003446</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/17.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/11.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/10.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/9.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/8.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tutorial-memo/pages/7.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/17.html">
    <title>wx.Window</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/17.html</link>
    <description>
      &gt;wx.Window

*wx.Winow

&gt;wx.Window is a base class out of which many widgets inherit. For instance, the wx.Frame widget inherits from wx.Window. Technically it means that we can use wx.Window&#039;s methods for all descendants. We will introduce here some of it&#039;s methods.

wx.Window は多くのウィジットが内部で継承する基本となるクラスである。
例えば、wx.Frame ウィジットは wx.Window を継承している。技術的いうと、全ての子クラスがwx.Windowのメソッドを使うことができる事を意味している。
ここでその幾つかのメソッドを紹介する。

&gt;-SetTitle(string title) - Sets the window&#039;s title. Applicable only to frames and dialogs.

-SetTitle(string title) - ウインドウのタイトルを指定する。フレームとダイアログのみ。

&gt;-SetToolTip(wx.ToolTip tip) - Attaches a tooltip to the window.

-SetToolTip(wx.ToolTip tip) - ツールチップをウインドウに結びつける。

&gt;-SetSize(wx.Size size) - Sets the size of the window.

-SetSize(wx.Size size) - ウインドウサイズを指定する。

&gt;-SetPosition(wx.Point pos) - Positions the window to given coordinates

-SetPosition(wx.Point pos) - ウインドウの位置を指定する。同等な値を与えること。

&gt;-Show(show=True) - Shows or hides the window. show parameter can b    </description>
    <dc:date>2009-01-15T16:10:46+09:00</dc:date>
    <utime>1232003446</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/16.html">
    <title>First Steps</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/16.html</link>
    <description>
      &gt;First Steps

最初の一歩

&gt;We start with a simple example.

次のサンプルから初めよう。

   1 #!/usr/bin/python
   2 
   3 # simple.py
   4 
   5 import wx
   6 
   7 app = wx.App()
   8 
   9 frame = wx.Frame(None, -1, &#039;simple.py&#039;)
  10 frame.Show()
  11 
  12 app.MainLoop()

&gt;In every wxPython application, we must import the wx library.

全てのwxPythonアプリケーションは必ずwx ライブラリをインポートしなければならない。

 import wx

&gt;An application object is created by initiating class wx.App.

アプリケーションのオブジェクトがwx.Appクラスの初期化にて作成される 。

 app = wx.App()

&gt;We create a frame widget. The window pops up only if we call Show() method on a widget.

フレームウィジットを作成する。ウインドウはウィジットのShow関数を呼んだときだけ出現する。

 frame = wx.Frame(None, -1, &quot;simple.py&quot;)
 frame.Show()

&gt;The last line enters a Mainloop. A mainloop is an endless cycle that catches up all events coming up to your application.
&gt;It is an integral part of any windows GUI application.

最後の行でメインループに入る。メインループとはずっとアプリケーションに送られる全てのイベントをキャッチするサイクルのことだ。

ウインドウを使うGUIアプリ    </description>
    <dc:date>2009-01-15T15:44:17+09:00</dc:date>
    <utime>1232001857</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/15.html">
    <title>wxPython API</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/15.html</link>
    <description>
      &#039;&#039;wxPython API&#039;&#039;

&gt;wxPython API is a set of functions and widgets. Widgets are essential building blocks of a GUI application. 
&gt;Under Windows widgets are calles controls. 
&gt;We can roughly divide programmers into two groups. They code applications or libraries.
&gt;In our case, wxPython is a library that is used by application programmers to code applications.
&gt;Technically, wxPython is a wrapper over a C++ GUI API called wxWidgets.
&gt;So it is not a native API. e.g. not written directly in Python.
&gt;The only native GUI library for an interpreted language that I know is Java&#039;s Swing library.

Wxpython API は関数とウィジットのセットである。ウィジットは肝心な GUI アプリケーションの一部である。

Windows環境下では、ウィジットはコントロールを呼んでいる。

だいたい、アプリケーションとライブラリの二つのグループに分けることができるだろう。

wxPython はアプリケーション作成者がアプリケーションを記述する時に使うライブラリである。

技術的には wxPython は wxWidgets の C++ GUI API を呼ぶラッパーだ。

そう、ネイティブな API ではない。直接 Python で書かれていない。

(?)インタプリタ言語でネイティブ GUI ライブラリなものは、私の知る限り Java の Swing ライブラリのみである。


&gt;In wxPython we have lot&#039;s of widget    </description>
    <dc:date>2009-01-08T23:13:37+09:00</dc:date>
    <utime>1231424017</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/14.html">
    <title>前書き</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/14.html</link>
    <description>
      Foreword

前書き

The purpose of this tutorial is to get you started with the wxPython toolkit, from the basics to the advanced topics. It has lots of code examples, not much talking. After that, you will be able to dig in yourself.

このチュートリアルの目的は、あなたに 基本的な事から先進的な事を通してwxPython ツールキットのスタートをしてもらうことだ。沢山のサンプルコードを載せている。これを読んだあとは自身で掘りさげて行けるだろう。

    * mailing list
    * reference book
    * source code of wxPython applications
    * /home/vronskij/bin/wxPython/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx - the ultimate resource, on my Linux box 

There are three decent toolkits for the python programming language:

Pythonには三つのツールキットがある。

    * wxPython
    * PyQt
    * PyGTK 

Note that this tutorial is done on Linux. Some scripts do not work correctly on windows.

注記:このチュートリアルはLinuxで実行された。いくつかのスクリプトはWindows上では動かないかもしれない。

Icons used in this tutorial: icons.tgz Images used in this tutorial: images.tgz

jan bodnar 2005 - 2007

status update. (april 2007) Al    </description>
    <dc:date>2009-01-08T19:28:28+09:00</dc:date>
    <utime>1231410508</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/12.html">
    <title>Dialog</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/12.html</link>
    <description>
      Dialogs

In wxPython you can use predefined dialogs or create your own dialogs. You can also create dialog based applications.

The example shows a skeleton of a dialog based application in wxPython.


ダイアログ

wxPythonにおいて、あなたはあらかじめ定義されているダイアログを使ったり、自身でダイアログを作ることができる。
ダイアログベースのアプリケーションを作ることもできる。

(wxPythonにおいて)ダイアログベースのアプリケーションの骨格を示す。

   1 #!/usr/bin/python
   2 # simpledialog.py
   3 
   4 import wx
   5 
   6 class MyDialog(wx.Dialog):
   7     def __init__(self, parent, id, title):
   8         wx.Dialog.__init__(self, parent, id, title)
   9 
  10 class MyApp(wx.App):
  11     def OnInit(self):
  12         dia = MyDialog(None, -1, &quot;simpledialog.py&quot;)
  13         dia.ShowModal()
  14         dia.Destroy()
  15         return True
  16 
  17 app = MyApp(0)
  18 app.MainLoop()


Notice that you cannot resize the dialog window. The Destroy() method is necessary. It deletes the dialog from the memory. Otherwise, the script would not exit properly. 

    </description>
    <dc:date>2009-01-08T01:16:21+09:00</dc:date>
    <utime>1231344981</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/11.html">
    <title>プラグイン/コメント</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/11.html</link>
    <description>
      * コメントプラグイン
@wikiのwikiモードでは
 #comment()
と入力することでコメントフォームを簡単に作成することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_60_ja.html


-----
たとえば、#comment() と入力すると以下のように表示されます。

#comment    </description>
    <dc:date>2009-01-08T00:55:16+09:00</dc:date>
    <utime>1231343716</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/10.html">
    <title>プラグイン/関連ブログ</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/10.html</link>
    <description>
      * 関連ブログ
@wikiのwikiモードでは
 #bf(興味のある単語)
と入力することで、あるキーワードに関連するブログ一覧を表示することができます

詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_161_ja.html

-----


たとえば、#bf(ゲーム)と入力すると以下のように表示されます。


#bf(ゲーム)
    </description>
    <dc:date>2009-01-08T00:55:16+09:00</dc:date>
    <utime>1231343716</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/9.html">
    <title>プラグイン</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/9.html</link>
    <description>
      @wikiにはいくつかの便利なプラグインがあります。

-----


#ls

-----

これ以外のプラグインについては@wikiガイドをご覧ください
=&gt;http://atwiki.jp/guide/
    </description>
    <dc:date>2009-01-08T00:55:16+09:00</dc:date>
    <utime>1231343716</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/8.html">
    <title>プラグイン/動画(Youtube)</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/8.html</link>
    <description>
      * 動画(youtube)
@wikiのwikiモードでは
 #video(動画のURL)
と入力することで、動画を貼り付けることが出来ます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_209_ja.html

また動画のURLはYoutubeのURLをご利用ください。
＝＞http://www.youtube.com/

-----


たとえば、#video(http://youtube.com/watch?v=kTV1CcS53JQ)と入力すると以下のように表示されます。


#video(http://youtube.com/watch?v=kTV1CcS53JQ)

    </description>
    <dc:date>2009-01-08T00:55:16+09:00</dc:date>
    <utime>1231343716</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tutorial-memo/pages/7.html">
    <title>プラグイン/アーカイブ</title>
    <link>https://w.atwiki.jp/tutorial-memo/pages/7.html</link>
    <description>
      * アーカイブ
@wikiのwikiモードでは
 #archive_log()
と入力することで、特定のウェブページを保存しておくことができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/25_171_ja.html


-----


たとえば、#archive_log()と入力すると以下のように表示されます。
保存したいURLとサイト名を入力して&quot;アーカイブログ&quot;をクリックしてみよう


#archive_log()
    </description>
    <dc:date>2009-01-08T00:55:16+09:00</dc:date>
    <utime>1231343716</utime>
  </item>
  </rdf:RDF>
