ButtonMenu_WPF.py



  • WPF アプリケーションとして、IronPython で実現した事例を紹介します。


# -*- coding: utf-8 -*-
#===============================================================================
# Copyright (C) 2000-2008, 小泉ひよ子とタマゴ倶楽部
#
# History: Design Pattern
# 2008/01/25, IronPython 1.1.1 (download)
# 2008/08/22, IronPython 1.1.2 (download)
# 2008/01/15, ver.1.0, Windows Forms
# 2008/03/21, ver.2.0, WPF
# 2008/10/05, ver.2.1, IronPython 1.1.2
#===============================================================================
import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import OpenFileDialog
#
clr.AddReference("PresentationFramework")
clr.AddReference("PresentationCore")
from System.Windows import *
from System.Windows.Controls import *
from System.Windows.Media import *