Пример #1
0
def main(argv):

    option = argv[0]
    if option == '--help':
        help = """
                終了ボタンから終了した場合は正常に終了できません。
                --new     新たなデータを入力できます
                --edit    データを更新できます
                --main    問題を開始します
                --all
        """
        print(help)
    elif option == '--new':
        New.new()
    elif option == '--edit':
        Edit.edit()
    elif option == '--main':
        Problem.start()
    elif option == '--all':
        All.all()
    else:
        print('やり直してください')
 def modeRun(self):
     m = str(self.modeComboBox.currentText())
     if m == "all":
         self.another = All.InputDlg()
         self.another.show()
     elif m == "facet-wprojection":
         self.theother = Fc_Wp.InputDlg()
         self.theother.show()
     elif m == "wprojection":
         self.another = Wp.InputDlg()
         self.another.show()
     elif m == "faceting":
         self.theother = Fc.InputDlg()
         self.theother.show()
     elif m == "--------mode choose--------":
         QMessageBox.information(self, "Information",
                                 self.tr("Please choose a mode type!"))
Пример #3
0
def getAll(params):
    return a.getSelector()
Пример #4
0
import All

# To record a sound and create graphs use All.record_and_graph(*)
# To graph the sound of an existing file use All.no_record(*)
# If you want to see the graph with a PyCharm window put True, otherwise leave as ()
# All graphs are saved to the file path C:\Users\eetestlab\PycharmProjects\Sound
# This is the same folder as the code
#
# If a file already exists the file will be overwritten

All.record_and_graph(True)
Пример #5
0
from Spot import*
from Road import *
from Path import *
from All import *

all = All()
print('欢迎来到旅游信息查询系统!')
print('请选择管理员登陆或者普通用户登陆。')
shenfen = int(input('1为管理员,输入其他数字为普通用户:'))
if shenfen == 1:
    sit = 1
    while sit != 0:
        print('操作列表:')
        print('1.添加景点信息')
        print('2.修改景点信息')
        print('3.删除景点信息')
        print('4.添加路径信息')
        print('5.修改路径信息')
        print('6.删除路径信息')
        op1 = int(input('请选择您要进行的操作(输入操作序号):'))
        if op1 not in {1,2,3,4,5,6}:
            print('请输入合法的操作序号!')
            continue
        else:
            if op1 == 1:

                name = str(input('请输入景点名称:'))
                intro = str(input('请输入景点介绍:'))
                cat = str(input('请输入景点类别:'))
                pos = str(input('请输入景点归属地:'))
                cost = int(input('请输入景点门票费:'))
Пример #6
0
def getAll(params):
    return a.getSelector()
Пример #7
0
 def setUp(self):
     self.selector = All.getSelector()
     Test1D.setUp(self)