You've already forked IPyConsole
mirror of
https://github.com/izzy2lost/IPyConsole.git
synced 2026-03-10 11:52:51 -07:00
31 lines
600 B
Python
31 lines
600 B
Python
# -*- coding: utf-8 -*-
|
|
import clr
|
|
|
|
clr.AddReference('PresentationCore')
|
|
clr.AddReference('PresentationFramework')
|
|
clr.AddReference('WindowsBase')
|
|
|
|
from System.Windows import Application, Window
|
|
from System.Windows.Controls import Button
|
|
|
|
|
|
class DFWin(Window):
|
|
def __init__(self):
|
|
self.Title = "Console"
|
|
self.Width = 300
|
|
self.Height = 200
|
|
|
|
self.btn = Button()
|
|
self.btn.Width = 20
|
|
self.btn.Height = 20
|
|
self.btn.Content = "Click"
|
|
|
|
|
|
def main():
|
|
app = Application()
|
|
win = DFWin()
|
|
app.Run(win)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |