IRonPython 1.0 릴리즈
Python :
2007. 6. 16. 03:39
반응형
IRonPython 1.0 릴리즈
닷넷엔 Python 지원을 목표로 IronPython.
1.0이 릴리즈 되었습니다. (Release 1.0 Production Sep-05-2006)
CLI 부분의 활용 영역이 기대 됩니다.
[MS소개 동영상]
[infoworld 쪽에도 있네요]
개념은 좋은 것 같습니다. Mix라는 용어가 갑자기 떠오르네요.
정말 쓰고 싶은데 써라!!! 어떤 부분에서 어떤 Lang을 써야 할지가 필요하겠네요.
아니면 해당 언어의 Code Template을 적절히 툴이 지원하던지..
ShapeDeveloper에서 IronPython을 지원할거라는 부분도 있는데
동영상을 보니 VS 에서 지원하는 부분의 디버깅은 굳이네요
Why? C#으로 코딩을 하면 되지 왜 ? Runtime의 Script로 고려를 하고 있을까?
빌드를 필요로 하는 부분 때문일까?
[예제]
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Shared Source License
# for IronPython. A copy of the license can be found in the License.html file
# at the root of this distribution. If you can not locate the Shared Source License
# for IronPython, please send an email to ironpy@microsoft.com.
# By using this source code in any fashion, you are agreeing to be bound by
# the terms of the Shared Source License for IronPython.
#
# You must not remove this notice, or any other, from this software.
#
######################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Shared Source License
# for IronPython. A copy of the license can be found in the License.html file
# at the root of this distribution. If you can not locate the Shared Source License
# for IronPython, please send an email to ironpy@microsoft.com.
# By using this source code in any fashion, you are agreeing to be bound by
# the terms of the Shared Source License for IronPython.
#
# You must not remove this notice, or any other, from this software.
#
######################################################################################
import clr
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Drawing")
from System.Windows.Forms import *
from System.Drawing import *
import System
from System import *
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Drawing")
from System.Windows.Forms import *
from System.Drawing import *
import System
from System import *
class FormV6(Form):
def __init__(self):
# setup TableLayoutPanel and FlowLayoutPanel
self._tableLayoutPanel1 = TableLayoutPanel(ColumnCount = 1,RowCount = 2, Dock = DockStyle.Fill)
self._flowLayoutPanel1 = FlowLayoutPanel(Dock = DockStyle.Fill)
def __init__(self):
# setup TableLayoutPanel and FlowLayoutPanel
self._tableLayoutPanel1 = TableLayoutPanel(ColumnCount = 1,RowCount = 2, Dock = DockStyle.Fill)
self._flowLayoutPanel1 = FlowLayoutPanel(Dock = DockStyle.Fill)
self._webBrowser = WebBrowser(Dock = DockStyle.Fill)
self._label1 = Label(Text ='Enter Message')
self._txtMessage = TextBox(TabIndex = 0,Size = Size(200,20))
self._button1 = Button(Text ='Message')
self._label1 = Label(Text ='Enter Message')
self._txtMessage = TextBox(TabIndex = 0,Size = Size(200,20))
self._button1 = Button(Text ='Message')
# Setup ToolStrip and ToolStripLabel
self._StatusStrip1 = StatusStrip()
self._ToolStripStatusLabel1 = ToolStripStatusLabel()
self._StatusStrip1.Items.Add(self._ToolStripStatusLabel1)
self.Controls.Add(self._StatusStrip1)
self.AcceptButton = self._button1 # when the enter key is pressed self._button1 will be clicked
self._button1.Click += self.OnMsgButtonClick
self._StatusStrip1 = StatusStrip()
self._ToolStripStatusLabel1 = ToolStripStatusLabel()
self._StatusStrip1.Items.Add(self._ToolStripStatusLabel1)
self.Controls.Add(self._StatusStrip1)
self.AcceptButton = self._button1 # when the enter key is pressed self._button1 will be clicked
self._button1.Click += self.OnMsgButtonClick
# Set TableLayoutPanel column and row styles and add FlowLayoutPanel and Web Browser
self._tableLayoutPanel1.ColumnStyles.Add(ColumnStyle(SizeType.Percent, 100.0))
self._tableLayoutPanel1.RowStyles.Add(RowStyle(SizeType.Absolute, 80.0))
self._tableLayoutPanel1.RowStyles.Add(RowStyle(SizeType.Percent, 100.0))
self._tableLayoutPanel1.Controls.Add(self._flowLayoutPanel1, 0, 0)
self._tableLayoutPanel1.Controls.Add(self._webBrowser, 0, 1)
self._tableLayoutPanel1.RowStyles.Add(RowStyle(SizeType.Absolute, 80.0))
self._tableLayoutPanel1.RowStyles.Add(RowStyle(SizeType.Percent, 100.0))
self._tableLayoutPanel1.Controls.Add(self._flowLayoutPanel1, 0, 0)
self._tableLayoutPanel1.Controls.Add(self._webBrowser, 0, 1)
# add controls that will be contained in FlowLayoutPanel
self._flowLayoutPanel1.Controls.Add(self._label1)
self._flowLayoutPanel1.Controls.Add(self._txtMessage)
self._flowLayoutPanel1.Controls.Add(self._button1)
self._flowLayoutPanel1.Controls.Add(self._txtMessage)
self._flowLayoutPanel1.Controls.Add(self._button1)
self.Controls.Add(self._tableLayoutPanel1)
def OnMsgButtonClick(self, *args):
self._webBrowser.Navigate(self._txtMessage.Text)
self._ToolStripStatusLabel1.Text = self._txtMessage.Text
self._txtMessage.Text = ""
self._webBrowser.Navigate(self._txtMessage.Text)
self._ToolStripStatusLabel1.Text = self._txtMessage.Text
self._txtMessage.Text = ""
Application.Run(FormV6())
아래 예제를 실행 화면.
[참고]
http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython
http://go.microsoft.com/?linkid=3906240
http://workspaces.gotdotnet.com/ironpython
http://go.microsoft.com/?linkid=3906240
http://workspaces.gotdotnet.com/ironpython
Welcome!
IronPython is a new implementation of the Python programming language running on .NET. It supports an interactive console with fully dynamic compilation. It is well integrated with the rest of the .NET Framework and makes all .NET libraries easily available to Python programmers, while maintaining full compatibility with the Python language.
IronPython 1.0 has shipped!
- Download IronPython -- The latest release (IronPython 1.0). You can also view the v1.0 Release Notes
- Samples -- In addition to the tutorial that is in the download, there are several available samples.
- Differences -- between IronPython 1.0 and CPython 2.4.3
- Thanks to all the users who provided feedback that helped shape IronPython
- Join the IronPython Mailing List -- You can browse the archives. This is the mailing list that IronPython has used since the beginning. We have not yet switched to CodePlex discussion forums as they do not support receiving emails directly in your Inbox. We will take a look at this again in the near future.
- Get the Sources -- The source code can be downloaded by going to the "Source Code" tab at the top. You can also use Team Explorer from inside Visual Studio for a richer view of source history.
- More Information -- More detailed information on IronPython
Upcoming Events
- TechEd Developers, 07-10 NOV 06, Barcelona, Spain -- Look for talk "BCL206 Common Language Runtime (CLR): IronPython and .NET Scripting Languages"
- ASP.NET Connections, 06-09 NOV 06, Las Vegas
반응형
'Python' 카테고리의 다른 글
py2exe (0) | 2007.07.09 |
---|---|
IronPython 임베딩 예제 (0) | 2007.06.16 |
IronPython에서 Python 기본 라이브러리 사용하기 (0) | 2007.06.16 |