コード例 #1
0
 def test_del(self):
     """测试删除接口"""
     print("测试删除接口")
     step1()
     step2()
     step3()
コード例 #2
0
ファイル: main.py プロジェクト: pranavsnayak/plugin-x
    if curStep > 1:
        curStep -= 1
        showStep(curStep - 1)

    updateBtnState()


# init root view
root = Tk()
root.title('Plugin-x Integration Guide')
root.geometry("600x400")
rootFrame = Frame(root)
rootFrame.pack(fill=BOTH)

# steps view
MyStep1 = steps.step1()
MyStep1.initStep(rootFrame)
MyStep2 = steps.step2()
MyStep2.initStep(rootFrame, pluginList)
stepList.append(MyStep1)
stepList.append(MyStep2)

MyStep1.stepFrame.pack(fill=BOTH, anchor='nw')

# add step error message
controlFrame = Frame(root)
controlFrame.pack(side=BOTTOM, fill=X, anchor='s')
stepError = Label(controlFrame)
stepError.pack(side=LEFT, padx=30)

# add step button
コード例 #3
0
 def test_update(self):
     """测试更新接口"""
     print("测试更新接口")
     step1()
     step2()
     step3()
コード例 #4
0
ファイル: main.py プロジェクト: 0309/cocos2d-x
    stepError['text'] = ''
    if curStep > 1:
        curStep -= 1
        showStep(curStep - 1)
    
    updateBtnState()

# init root view
root = Tk()
root.title('Plugin-x Integration Guide')
root.geometry("600x400")
rootFrame = Frame(root)
rootFrame.pack(fill=BOTH)

# steps view
MyStep1 = steps.step1()
MyStep1.initStep(rootFrame)
MyStep2 = steps.step2()
MyStep2.initStep(rootFrame, pluginList)
stepList.append(MyStep1)
stepList.append(MyStep2)

MyStep1.stepFrame.pack(fill=BOTH, anchor='nw')

# add step error message
controlFrame = Frame(root)
controlFrame.pack(side=BOTTOM, fill=X, anchor='s')
stepError = Label(controlFrame)
stepError.pack(side=LEFT, padx=30)

# add step button