{"id":706,"date":"2006-07-03T12:34:45","date_gmt":"2006-07-03T12:34:45","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2006\/07\/03\/ironpython3-%e7%ac%ac%e4%b8%80%e5%80%8b%e7%aa%97\/"},"modified":"2006-07-03T12:34:45","modified_gmt":"2006-07-03T12:34:45","slug":"ironpython3-%e7%ac%ac%e4%b8%80%e5%80%8b%e7%aa%97","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2006\/07\/ironpython3-%e7%ac%ac%e4%b8%80%e5%80%8b%e7%aa%97\/","title":{"rendered":"IronPython(3) &#8211; \u7b2c\u4e00\u500b\u7a97"},"content":{"rendered":"<p>\u57fa\u672c\u4e0a\u53c3\u8003 tutorial\/wfdemo.py \u5c31\u53ef\u4ee5\u5f88\u5feb\u7684\u5beb\u51fa\u4f86\u7b2c\u4e00\u500b\u7a97\u3002<\/p>\n<blockquote><p>import clr<br \/>\nclr.AddReferenceByPartialName(&#8220;System.Windows.Forms&#8221;)<br \/>\nclr.AddReferenceByPartialName(&#8220;System.Drawing&#8221;)<br \/>\nfrom System.Windows.Forms import *<br \/>\nfrom System.Drawing import *<br \/>\nf = Form()<br \/>\nf.Text = &#8220;RSSMSN &#8211; customize your msn personal message&#8221;<br \/>\n# Initialize Label<br \/>\nlblHello = Label(Text=&#8221;Hello world!&#8221; )<br \/>\nlblHello.Visible=True<br \/>\nlblHello.Location=Point( 10, 10 )<br \/>\nlblHello.AutoSize=True<br \/>\nf.Controls.Add( lblHello )<br \/>\n# Initialize NotifyIcon<br \/>\nnotifyIcon1 = NotifyIcon( Visible=True, Text=&#8221;RSSMSN&#8221;, Icon=Icon(&#8220;Matrix.ico&#8221;) )<br \/>\n# Initialize Form<br \/>\nf.StartPosition=FormStartPosition.CenterScreen<br \/>\nApplication.Run(f)\n<\/p><\/blockquote>\n<p>\u4ed6\u662f\u76f4\u63a5\u7522\u751f Form \u8207 Label \u7684\u5be6\u9ad4\uff0c\u7136\u5f8c\u4e1f\u7d66 Application\uff0c\u5c31\u53ef\u4ee5\u5f88\u9806\u5229\u7684\u7522\u751f\u7b2c\u4e00\u500b\u7a97\u3002<br \/>\n\u9019\u88e1\u6709\u500b\u6709\u8da3\u7684\u7528\u6cd5\uff1a<\/p>\n<blockquote><p>lblHello = Label( Text=&#8221;Hello world!&#8221; )<\/p><\/blockquote>\n<p>\u6240\u4ee5\u7522\u751f\u5be6\u9ad4\u7684\u6642\u5019\uff0c\u53ef\u4ee5\u76f4\u63a5\u4ee5 PropertyName=value \u4f86\u6307\u5b9a Property \u7684\u521d\u59cb\u503c\u3002<br \/>\n\u4f46\u662f\u9019\u6a23\u7684\u5beb\u6cd5\uff0c\u5728\u5f8c\u671f\u5927\u6982\u6703\u5beb\u5230\u6688\u5012\u3002<br \/>\n\u6240\u4ee5\u9084\u662f\u8981\u641e\u6e05\u695a\u5982\u4f55\u64b0\u5beb\u985e\u5225\u4e26\u4e14\u7e7c\u627f\u624d\u6703\u662f\u6bd4\u8f03\u597d\u7684\u89e3\u6cd5\u3002<br \/>\n\u4e0b\u6b21\u7684\u76ee\u6a19\uff1a\u64b0\u5beb\u985e\u5225\u8207\u7e7c\u627f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u4e0a\u53c3\u8003 tutorial\/wfdemo.py \u5c31\u53ef\u4ee5\u5f88\u5feb\u7684\u5beb\u51fa\u4f86\u7b2c\u4e00\u500b\u7a97\u3002 import clr clr.AddReferenceByPartialName(&#8220;System.Windows.Forms&#8221;) clr.AddReferenceByPartialName(&#8220;System.Drawing&#8221;) from System.Windows.Forms import * from System.Drawing import * f = Form() f.Text = &#8220;RSSMSN &#8211; customize your msn personal message&#8221; # Initialize Label lblHello = Label(Text=&#8221;Hello world!&#8221; ) lblHello.Visible=True lblHello.Location=Point( 10, 10 ) lblHello.AutoSize=True f.Controls.Add( lblHello ) # Initialize NotifyIcon notifyIcon1 = NotifyIcon( Visible=True, Text=&#8221;RSSMSN&#8221;, Icon=Icon(&#8220;Matrix.ico&#8221;) ) # &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2006\/07\/ironpython3-%e7%ac%ac%e4%b8%80%e5%80%8b%e7%aa%97\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;IronPython(3) &#8211; \u7b2c\u4e00\u500b\u7a97&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-net"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-bo","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=706"}],"version-history":[{"count":0,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}