[pukiwiki]
やりたいこと。
-PythonプログラムのフロントエンドをHTMLで書きたい~
-できればhtmlサーバ立てずに。CGIとして動かすのではなく。((今は、どのご家庭でも、ファイアウォールなどで、ポートがふさがってるでしょうし。)
-試してみたら、なかなか面白そうです。
*[[Handling Com Events in Python:http://mail.python.org/pipermail/python-list/2000-August/047702.html]]
PythonでIEを起動したり、イベントを監視するサンプル。~
今日見つけたなかで、一番判りやすかった。~
-PythonからIEを起動
-URLを指定して開く
-窓を閉じたらPythonに知らせる
っていう、知りたかった最低限の部分はこれで知ることが出来ました。
*[[PythonからActiveXを使ってExcelとIEを操作する例 :http://d.hatena.ne.jp/Wacky/20060412/1144850587]]
ページの内容を取得。
*[[IE自動操作いろいろ:http://d.hatena.ne.jp/spacecadet/20060911#1157987449]]
*[[P.A.M.I.E. :http://pamie.sourceforge.net/]]
“from cPAMIE import PAMIE
ie = PAMIE( )
ie.navigate(“www.google.com” )
ie.textBoxSet(“q”, “python” )
ie.buttonClick(“btnI” )
で、IEを起動し、「”Python”を I’m Feeling Lucky」できちゃいます。これは便利。
*[[comtypes 0.4.1:http://cheeseshop.python.org/pypi/comtypes]]
[[紹介記事:http://blog.trirhino.com/komatsu/1169477417]]
ctypesを使い、pythonのみで書かれたcom周りのモジュール。~
-[[開発元:http://starship.python.net/crew/theller/comtypes/]]
-[[svnのドキュメント:http://svn.python.org/projects/ctypes/trunk/comtypes/docs/]]
—-
IEコンポーネントが使えるGUIツールキット
*[[wxPythonで簡易Webブラウザ:http://d.hatena.ne.jp/LaclefYoshi/20050213]]
-IEHtmlWindow (wx.lib.iewin.IEHtmlWindow)モジュール
-wx.HtmlWindowモジュールってのも有るもよう。
*[[Venster:http://venster.sourceforge.net/]]
[[日本語紹介記事:http://www.moongift.jp/2007/09/venster/]]
あとで。。。
*[[IronPython 1.0 のサンプルを動かしてみる:http://blog.so-net.ne.jp/nakagami/2006-09-09]]
IEコンポーネント使うのなら、pythonより.NETなC#やIronPythonかしらん?
—-
//その他の関連しそうな記事
//*[[Customizing the urllib library to fetch web pages the way you want :http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/224043]]
—-
*[[Documancer:http://documancer.sourceforge.net/]]
Pythonで書かれたドキュメントリーダー~
IEと連携してるあたりを、あとで読む、かも。
*[[Google ソースコード検索:http://www.google.com/codesearch?hl=ja]]
初めて使いました。便利ー
—-
今日はここまで
[/pukiwiki]