Skip to content

Commit 7f6318c

Browse files
V1.3.7
改进了界面,增加了组件市场,修改了用户体验和BUG.
1 parent 82cb6c3 commit 7f6318c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+116
-121
lines changed

Examples/AircraftWar/ico.png

29.5 KB

Examples/CallTest/Fun.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ def SetUIText(uiName,elementName,textValue):
9999
return
100100
if uiName in G_UIElementArray:
101101
if elementName in G_UIElementArray[uiName]:
102-
G_UIElementArray[uiName][elementName].configure(text=showtext)
102+
if elementName.find('Text_') >= 0:
103+
G_UIElementArray[uiName][elementName].delete('0.0',tkinter.END)
104+
G_UIElementArray[uiName][elementName].insert(tkinter.END,showtext)
105+
else:
106+
G_UIElementArray[uiName][elementName].configure(text=showtext)
103107
#Get Element 's Text:Param1:uiName, Param2:elementName
104108
def GetUIText(uiName,elementName):
105109
global G_UIElementArray

Examples/CallTest/RegDlg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ def __init__(self,root,isTKroot = True):
3737
Group_1_Variable.set(1)
3838
#Create the elements of root
3939
Label_2= tkinter.Label(root,text="",width = 10,height = 4)
40-
Label_2.place(x = 48,y = 33,width = 77,height = 48)
41-
ElementBGArray[2]=Image.open("ico1.png")
42-
ElementBGArray_Resize[2]=ElementBGArray[2].resize((77, 48),Image.ANTIALIAS)
40+
Label_2.place(x = 50,y = 0,width = 100,height = 100)
41+
ElementBGArray[2]=Image.open("ico.png")
42+
ElementBGArray_Resize[2]=ElementBGArray[2].resize((100, 100),Image.ANTIALIAS)
4343
ElementBGArray_IM[2]=ImageTk.PhotoImage(ElementBGArray_Resize[2])
4444
Label_2.configure(image = ElementBGArray_IM[2])
4545
Label_2_Ft=tkinter.font.Font(family='System', size=24,weight='bold',slant='roman',underline=0,overstrike=0)
4646
Label_2.configure(font = Label_2_Ft)
4747
Fun.AddElement(className,'Label_2',Label_2)
4848
Label_3= tkinter.Label(root,text="注册信息",width = 10,height = 4)
49-
Label_3.place(x = 134,y = 34,width = 256,height = 45)
49+
Label_3.place(x = 150,y = 34,width = 206,height = 45)
5050
Label_3_Ft=tkinter.font.Font(family='System', size=29,weight='bold',slant='roman',underline=0,overstrike=0)
5151
Label_3.configure(font = Label_3_Ft)
5252
Fun.AddElement(className,'Label_3',Label_3)

Examples/CallTest/ico.png

26.5 KB

Examples/CallTest/ico1.png

-31.4 KB
Binary file not shown.

Examples/Embedding/Fun.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ def SetUIText(uiName,elementName,textValue):
9999
return
100100
if uiName in G_UIElementArray:
101101
if elementName in G_UIElementArray[uiName]:
102-
G_UIElementArray[uiName][elementName].configure(text=showtext)
102+
if elementName.find('Text_') >= 0:
103+
G_UIElementArray[uiName][elementName].delete('0.0',tkinter.END)
104+
G_UIElementArray[uiName][elementName].insert(tkinter.END,showtext)
105+
else:
106+
G_UIElementArray[uiName][elementName].configure(text=showtext)
103107
#Get Element 's Text:Param1:uiName, Param2:elementName
104108
def GetUIText(uiName,elementName):
105109
global G_UIElementArray

Examples/Embedding/Page1_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ def Button_11_onCommand(className,widgetName):
2222
Fun.SetUIText(className,'Entry_3','')
2323
Fun.SetElementVariable(className,'Group_1',1)
2424
Fun.SetUIText(className,'Entry_8',0)
25-
combobox.current(0)
25+
combobox.current(0)
359 Bytes
Binary file not shown.
319 Bytes
Binary file not shown.
5.93 KB
Binary file not shown.

0 commit comments

Comments
 (0)