Titanium Desktopã Python, Ruby, PHPã§å¼ã³åºãGUIéçºã«ä¾¿å©ã ããã¨è¨ãè¨äºãåã«èªã¿ã¾ãã¦ãã©ãã ã便å©ãã¤ã³ã¹ãã¼ã«ãã¦è©¦ãã¦ã¿ã¾ããã
- Appcelerator Titanium Desktopã§Ruby,Python,PHPã使ã£ããæ軽ãã¹ã¯ãããã¢ããªéçºãã®ï¼ - ä»å° Rails Vim JavaScript社é·
http://d.hatena.ne.jp/yuichi_katahira/20100219/1266605194 - Appcelerator Titanium Desktopã§Ruby,Python,PHPã使ã£ããæ軽ãã¹ã¯ãããã¢ããªéçºãã®2 - ä»å° Rails Vim JavaScript社é·
http://d.hatena.ne.jp/yuichi_katahira/20100221/1266782806 - Pythonã§GUIãããªãTitaniumããããã ~ Twitterã¯ã©ã¤ã¢ã³ãä½ã£ã¦ã¿ã
http://d.hatena.ne.jp/miz_tech/20100304/1267676186 - titanium-desktop-doc-ja - Project Hosting on Google Code
http://code.google.com/p/titanium-desktop-doc-ja/
Titanium Desktopã ã©ããªãã®ãï¼ã©ããªäºãåºæ¥ããï¼ã«ã¤ãã¦ã¯ãä¸ã®Web siteãè¦ãæ¹ãè¯ãã§ãããã
ããã§ã¯ãPythonã¨ã®é£æºæ§ãã©ãã ãã®ãã®ããèªåã§è©¦ãã¦ã¿ãã¡ã¢ã§ãã
ã¤ã³ã¹ãã¼ã«
Titanium Desktopã使ã£ãéçºãè¡ãã«ã¯ãæ¬å®¶ã§ã»ããã¢ããããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãã¾ãã
- Download Titanium | Appcelerator
http://www.appcelerator.com/products/download/
ã®çãä¸è¾ºãã«ãWindows / Linux / Mac OSXã®ä¸ç¨®é¡ã®ã»ããã¢ãããç¨æããã¦ããã®ã§ããã¦ã³ãã¼ããã¦å®è¡ï¼ã¤ã³ã¹ãã¼ã«ãã¾ãã
ã¡ãªã¿ã«ãWindowsçã®ã»ããã¢ããã®ãµã¤ãºã¯5ã6MBç¨åº¦ã§ããã
(ããã¯ã°ã©ã³ãã§æ¬ä½ããã¦ã³ãã¼ããã¦ãããã§ããã)
ããã¸ã§ã¯ãã®æ°è¦ä½æ
ã¤ã³ã¹ãã¼ã«ãå®äºããããã¹ã¿ã¼ãã¡ãã¥ã¼ããTitanium Developerãèµ·åãã¦ãããã¸ã§ã¯ããæ°è¦ä½æãã¾ãã
ä¸ã®Linkã®èª¬æã§ãæ¸ãã¦ããã¾ããããã®Titanium Developerã¢ããªã±ã¼ã·ã§ã³ã¯ããã¸ã§ã¯ãã®ç®¡çè½åããç¡ãããã§ãVisual StudioãDelphiã®ãããªãããã¿éçºã¯åºæ¥ã¾ããããããããã
(ã½ã¼ã¹ç®¡çãç·¨éãåºæ¥ã¾ãããããªãæ½ãã§ã)
ã¾ãã¯ãç»é¢ä¸é¨ã®ãNew Projectãã¢ã¤ã³ã³ãã¯ãªãã¯ãã¾ãã¨ãããã¸ã§ã¯ãã®è¨å®ãæ±ãããã¾ãã®ã§é©å½ã«å
¥åãã¾ãã
7 posted by (C)wacky
æ°ãã¤ããã¹ãç¹ã¯ããProject TypeãããDesktopãã«è¨å®ããäºã¨ããDirectoryãã§ããã¸ã§ã¯ãã®ä¿åãã©ã«ããæå®ããäºããLanguage Modulesãã«ä½¿ç¨ããè¨èªã«ãã§ãã¯ããäºã§ããããã
å
¥åå¾ããCreate Projectããã¯ãªãã¯ããã¨ãããã¸ã§ã¯ãã®ä½æã¯OKã§ãã
å¾ããè¨å®ãå¤æ´ãããã£ãããå·¦æ¬ã®ãPROJECTSãæ¬ã«è¡¨ç¤ºããã¦ããããã¸ã§ã¯ããæå®ãã¤ã¤ãEditãæ¬ãã¯ãªãã¯ããã¨è¡¨ç¤ºãããé
ç®ãä¿®æ£ãã¦ããSave Changesãããã°OKã®ããã§ãã
ã¨ããããåãã
å
ã»ã©ä½ã£ãããã¸ã§ã¯ãããããããªãåããäºãã§ãã¾ãã
ãTest & Packageããé¸æãããLaunch Appããã¿ã³ãæ¼ãã¨ãä½ãããã«ããå§ã¾ãã¾ãã
2 posted by (C)wacky
ã¡ãã£ã¨å¾
ã£ã¦ããã¨ã以ä¸ã®ãããªãWelcome Titaniumãã¢ããªã±ã¼ã·ã§ã³ãèµ·åãã¾ãã
3 posted by (C)wacky
ã¡ãªã¿ã«ãã«ãããã¨ãããã¸ã§ã¯ãã®ãã©ã«ãä¸ã«ããdist\win32\<ããã¸ã§ã¯ãå>
ãã¨ãããµããã©ã«ããåºæ¥ã¦ãããã«å®è¡ãã¤ããªãåºæ¥ã¦ãã¾ãã
ãããããã«ã¯ãªãã¯ããã ãã§ããç°¡åã«åä½ãããäºãåºæ¥ã¾ãã
åºæ¥ãã¢ããªã±ã¼ã·ã§ã³ããã§ãã¯ãã¦ã¿ããã§ãããWebkit.dllãPython25.dllã®ä»ãè²ããªDLLãèµ·åãã¦ãã¾ãã
ãã®å²ã«ã¯ãèµ·å㯠ã¾ãã¾ãæ©ãã§ãã(代ããã«ãçµäºãé
ããèªåã®ãããã·ã³ã ã¨2ã3ç§ç¨åº¦å¾
ãããã)
Pythonã³ã¼ããçµã¿è¾¼ã
ãã¦ãå ã®ãã³ãã¬ã¼ãã¢ããªã±ã¼ã·ã§ã³ã«ãPythonãå¼ã³åºãã³ã¼ããçµã¿è¾¼ãã§ã¿ã¾ãã
ãResourcesããã©ã«ãã«ãindex.htmlããã¡ã¤ã«ãããããããã¢ããªã±ã¼ã·ã§ã³ã®å¤è¦ãå¸ãã¾ãã®ã§ãä¸é¨ãããã¾ãããã
index.html:
<html> <head> <title>hello Titanium</title> <script type="text/python" src="test.py"></script> </head> <body style="background-color:#1c1c1c;margin:0"> <div style="border-top:1px solid #404040"><div style="color:#fff;;padding:10px">Welcome to Titanium</div></div> <input type="button" onclick="test_call()" value="RUN"></input> </body> </html>
ãã£ã¦ããäºã¯ããRUNãã¨ããååã®ãã¿ã³ãè¨ç½®ãããããæ¼ãããããtest_call()ãã¡ã½ãããå¼ã³åºãã¨ãããã®ã§ãã
次ã«ããtest_call()ãã¡ã½ããæ¬ä½ããPythonè¨èªã§è¨è¿°ãã¾ãã
ããã¯ããtest.pyãã¨ããååã«ãã¾ããã
test.py:
from winsound import * def test_call(): MessageBeep() #test_call()
ãã£ã¦ããäºã¯ãåã«ãµã¦ã³ããé³´ããã ãã§ãã
å度ãLaunch Appãã§ãã«ããã¦åããã¾ãã
6 posted by (C)wacky
ãRUNããã¿ã³ãæ¼ãã¨ãããã³ãããã³ãã¨é³ãé³´ããã¡ããã¨å¼ã³åºããã¦ããäºãå¤ãã¾ãã
ææ³
æä¾ã®å©ç¨ãã¦ã®ææ³ã§ãã
- ã¤ã¡ã¼ã¸çã«ã¯ããã¤ããªåï¼ã¹ã¯ãªããè¨èªã§è¨è¿°ã§ããHTA(HTML Application)ã
- (çµäºã¯é ããã©)èµ·åãæ©ãã®ã¯ã好æ度ã¢ããã
- Titanium Developeræ¬ä½ã¯ãããã¸ã§ã¯ã管çã ãã®æ©è½ã ãã©ãä¸éå端ãªãã®ãä»ããããããããªã ããã§ååã