æ«ãåãã欲ããéçºç°å¢ã£ã¦ã®ããã£ã¦ããGUIã¢ããªã±ã¼ã·ã§ã³ãç°¡åã«ä½ãç°å¢ã欲ãããããããã¾ãã
ä½ã§æ¬²ãããã¨ããã¨ã
- ä»äºã¨ã趣å³ã§ãã¡ãã£ã¨ãããã¼ã«ã欲ããéè¦ãããã
- Windowsç°å¢ãã¡ã¤ã³ã«ãã¦ããã®ã¨ãä»äºä»²éã«é å¸ãããã®ã§ãGUIã¢ããªã±ã¼ã·ã§ã³ã«ãããã
- éçºã«æéããããããªãã
ãããªäºæ ããã訳ã§ãã
ãããªè¨³ã§ãPythonã使ã£ã¦ç°¡åã«GUIã¢ããªãä½ããªãããªï¼ã¨å¦æ³ãã訳ã§ãã
ç´¹ä»
â¦åç½®ããé·ããªã£ã¦ãã¾ãã¾ããããæè¿ãVisualWx(http://visualwx.altervista.org/indexit.php)ãã¢ãããã¼ãããããããã0.87.0.1ã«ãªã£ã¦ãã¾ããã
æ©é å
¥ãã¦ã¿ã¾ãã
01 posted from ãã©ãèµ
ä½ããç»é¢å¤ãã£ã¦ã¾ããã
ãFileãâãNew Projectãã¨ããã¨ããã¸ã§ã¯ãä¸è¦§ãåºã¾ãã
02 posted from ãã©ãèµ
ä½ããè²ã
å¢ãã¦ã¾ãã
C++, Python, Ruby, Luaâ¦ãLuaããã
ãã¦ãããã§ã¯
ä¸çªç°¡åãããªããWX_DLG_Pythonããé¸ã³ã¾ãã
03 posted from ãã©ãèµ
ãã®ç¶æ
ã§ãæ©éåããäºãåºæ¥ã¾ãã
ã»ããã
04 posted from ãã©ãèµ
ä½ã£ã¦ã¿ã¾ããã
ã§ã¯ãVisualWxã使ã£ã¦ç°¡åãªã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ã¿ã¾ãã
ããã§ã¯ãç°¡åãªHTMLãã©ã¦ã¶ãä½ã£ã¦ã¿ã¾ãã
ã¾ããURLãå
¥åããã¨ãã£ããããã¯ã¹ããã½ã¡ã£ã¨ãªã
05 posted from ãã©ãèµ
次ã¯ãURLãå
¥åããå¾ã移åããçºã®ãã¿ã³ããã½ã¡ã£ã¨ãªã
06 posted from ãã©ãèµ
æå¾ã«ãHTMLãæç»ããã³ã³ãã¼ãã³ãããã½ã¡ã£ã¨ãªã
07 posted from ãã©ãèµ
ãã®æç¹ã§ã以ä¸ã®ããã«3ã¤ã®ã³ã³ãã¼ãã³ãããã¤ã¢ãã°ããã¯ã¹ä¸ã«ä¸¦ãã§ãã¾ãã
08 posted from ãã©ãèµ
ããããé©å½ã«ã¬ã¤ã¢ã¦ããã¡ããã¾ãããã
09 posted from ãã©ãèµ
ã¬ã¤ã¢ã¦ãã¯ãVBãDelphiã®æè¦ã§åºæ¥ã¡ããã¾ããã§ã楽ã§ãã
次ã¯ãåã³ã³ãã¼ãã³ãã®å称ãããããã£ã¨ãã£ã¿ã§ä¿®æ£ãã¾ãã
- ã¨ãã£ããããã¯ã¹
- Name:edtURL
- Text:"http://"
- ãã¿ã³
- Name:btnGO
- Text:移å
- HTMLã³ã³ãã¼ãã³ã
- Name:htmlCtrl
ããããã£ã®å¤æ´ã¯ãããããã£ã¦ã£ã³ãã¦ä¸ã§ããã«ã¯ãªãã¯ãã¦ä¿®æ£ããã°OKã§ãã
10 posted from ãã©ãèµ
次ã¯ããã¿ã³(btnGO)ãã¯ãªãã¯ããã¨ãã¨ãã£ããããã¯ã¹(edtURL)ã®URLã«ç§»åã»æç»ãããããã«ãã¾ãããã
ãã¿ã³(btnGO)ãé¸æããããããã£ã¦ã£ã³ãã¦ã®ãEventsããã¯ãªãã¯ããã¨ã¤ãã³ãã¿ãã表示ããã¾ãã
ããã§ããEããé¸æããã¨ããEVT_BUTTONãã¤ãã³ãã表示ããã¾ãã
ããã§ããã§ãã¯ããã¯ã¹ã«ãã§ãã¯ãå
¥ãã¾ãã
11 posted from ãã©ãèµ
ãã®å¾ãä¸å¤®ã®ã¦ã£ã³ãã¦ã®ãPythonããé¸æããã¨ããã¤ã¢ãã°ã®ã³ã¼ãã¦ã£ã³ãã¦ãç¾ãã¾ãã
ããã¨ããã£ãã®ãEVT_BUTTONãã¤ãã³ãã«è©²å½ããç®æã®ã³ã¼ããã³ãã¬ã¼ããæ¿å
¥ããã¦ãã¾ãã
(VBãDelphiã¿ãããããã«ã¯ãªãã¯ã§ã³ã¼ãã¦ã£ã³ãã¦ã«ç§»åâ¦ã¨ããäºã¯ããã¾ãããã¡ãã£ã¨æ®å¿µ)
12 posted from ãã©ãèµ
ããã§ãã¨ãã£ããããã¯ã¹(edtURL)ã®ããã¹ãå¤ãURLã¨ãã¦ãHTMLã³ã³ããã¼ã«(htmlCtrl)ã«ç§»åã»æç»ããã¦ã¿ã¾ãã
以ä¸ã®ã³ã¼ãã追å ãã¾ãã
(追å ããã®ã¯ã"add your code here"ã®ä¸ã®3è¡ã§ã)
#[win]add your code here def btnGO_VwXEvOnButtonClick(self,event): #init function #[3d6]Code event VwX...Don't modify[3d6]# #add your code here url = self.edtURL.GetValue() print url self.htmlCtrl.LoadPage(url) return #end function
13 posted from ãã©ãèµ
æ©éå®è¡ãã¦ã¿ã¾ãããã
14 posted from ãã©ãèµ
ããã§ã"http://www.google.co.jp/"ã¨å
¥åãã¦ãã移åããã¿ã³ãã¯ãªãã¯ãã¾ããæ«ãããã¨ã
15 posted from ãã©ãèµ
ã¨ç»é¢ã表示ããã¾ãããã£ãã
ã¾ã¨ã
- VisualWxã使ãã¨ãä½ã¡ãã£ã¦ãªGUIã¢ããªãä½ãäºãåºæ¥ã¾ãã
- ã¤ãã³ãã¨ããããã£ãå¼ããªãããã¤ãã³ãããªãã³ãªããã°ã©ã ãåºæ¥ã¾ãã
- ãã¤ã¢ãã°ã¢ããªãªãããã®é¢åãªSizer(ãµã¤ã¶ã¼)ã«æ©ã¾ãããå¿ è¦ãããã¾ããã
VisualWxã®åé¡ç¹ã¯ãã¾ã¨ããªãããã°ãåºæ¥ãªãç¹ã§ãã
ã§ãprintãããã°ã¯å¯è½(ä¸åº¦ã³ã³ã½ã¼ã«ã¦ã£ã³ãã¦ãåºãã)ãªã®ã§ãä½ã¡ãã£ã¦ã¢ããªç¨åº¦ãªãåé¡ã¨ãªããªãã§ãããã
(ã¨ããããVisualWxã£ã¦ãé«ç´ãªGUIãã¶ã¤ãã¨ããæ°ããã¾ã)
Pythonã使ã£ã¦ãªã人ã«é
ãå ´åãpy2exeã§EXEã«å¤æããã°OKã§ãããã
å¤ææãçµæ§ãªãã¡ã¤ã«ãµã¤ãºã«ãªãããç¥ãã¾ããããä»æãã¡ã¤ã«ãµã¤ãºãæ°ã«ããæ代ã§ããªãã§ããã(ç¹ã«ä¼ç¤¾å
ã§é
ãå ´åãLANåæã§ãããã)