-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingInterface.py
42 lines (35 loc) · 1.36 KB
/
SettingInterface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import wx
import shape_para_set as sps
import sys
import pcbnew
class SettingDialog(wx.Dialog):
def __init__(self, parent):
super().__init__(parent, title="Settings")
self.SetSize((300, 200))
# 创建一个静态文本控件用于显示提示信息
self.text = wx.StaticText(self, label="阿巴阿巴以后在做")
self.text.SetPosition((20, 20))
# 创建一个按钮用于关闭对话框
self.button = wx.Button(self, label="确定")
self.button.SetPosition((110, 100))
self.Bind(wx.EVT_BUTTON, self.on_button_clicked, self.button)
def on_button_clicked(self, event):
self.Close()
# class MyFrame(wx.Frame):
# def __init__(self):
# super().__init__(None, title="My App")
# self.SetSize((600, 400))
# # 创建一个按钮用于打开对话框
# self.button = wx.Button(self, label="打开对话框")
# self.button.SetPosition((220, 150))
# self.Bind(wx.EVT_BUTTON, self.on_button_clicked, self.button)
# shape_para_set.Add_Shapes.Run(self)
# def on_button_clicked(self, event):
# # 创建并显示对话框
# # dialog = MyDialog(self)
# # dialog.ShowModal()
# # shape_para_set.Add_Shapes.Run(self)
# # dialog = Dialog(None)
# # dialog.Center()
# # dialog.ShowModal()
# pass