def Fun():
    val=e1.get()
    if (int(val) ==1):

        import ReadSub1
        ReadSub1.getSub()
        ReadSub1.getSub1()
        ReadSub1.fun1()
    if (int(val) ==2):

        import ReadSub2
        ReadSub2.getSub()
        ReadSub2.getSub1()
        ReadSub2.getSub2()
        ReadSub2.fun1()
        ReadSub2.fun2()
    if (int(val) ==3):

        import Readsub3
        Readsub3.getSub()
        Readsub3.getSub1()
        Readsub3.getSub2()
        Readsub3.getSub3()
        Readsub3.fun1()
        Readsub3.fun2()
        Readsub3.fun3()
    if (int(val)>3):Example().onError()
    Example().onInfo()
    mastert.quit()
示例#2
0
def Fun():
    val = e1.get()
    if (int(val) == 1):

        import ReadSub1
        ReadSub1.getSub()
        ReadSub1.getSub1()
        ReadSub1.fun1()
    if (int(val) == 2):

        import ReadSub2
        ReadSub2.getSub()
        ReadSub2.getSub1()
        ReadSub2.getSub2()
        ReadSub2.fun1()
        ReadSub2.fun2()
    if (int(val) == 3):

        import Readsub3
        Readsub3.getSub()
        Readsub3.getSub1()
        Readsub3.getSub2()
        Readsub3.getSub3()
        Readsub3.fun1()
        Readsub3.fun2()
        Readsub3.fun3()
    if (int(val) > 3): Example().onError()
    Example().onInfo()
    mastert.quit()
示例#3
0
def Fun():
    subgrd = e1.get()
    subgrd2 = e2.get()
    obs=[]
    if (str(subgrd)=="A+"):
        obs.append(0)
    if (str(subgrd)=="A"):
        obs.append(1)
    if (str(subgrd)=="A-"):
        obs.append(2)
    if (str(subgrd)=="B+"):
        obs.append(3)
    if (str(subgrd)=="B"):
        obs.append(4)
    if (str(subgrd)=="B-"):
        obs.append(5)
    if (str(subgrd)=="C+"):
        obs.append(6)
    if (str(subgrd)=="C"):
        obs.append(7)
    if (str(subgrd)=="C-"):
        obs.append(8)
    if (str(subgrd)=="F"):
        obs.append(9)
    if (str(subgrd2)=="A+"):
        obs.append(10)
    if (str(subgrd2)=="A"):
        obs.append(11)
    if (str(subgrd2)=="A-"):
        obs.append(12)
    if (str(subgrd2)=="B+"):
        obs.append(13)
    if (str(subgrd2)=="B"):
        obs.append(14)
    if (str(subgrd2)=="B-"):
        obs.append(15)
    if (str(subgrd2)=="C+"):
        obs.append(16)
    if (str(subgrd2)=="C"):
        obs.append(17)
    if (str(subgrd2)=="C-"):
        obs.append(18)
    if (str(subgrd2)=="F"):
        obs.append(19)
    if (obs==[]): Example().onError()
    print obs
    mastert.withdraw()
    import ReadSub2
    #ReadSub2.getSub()
    #ReadSub2.getSub1()
    #ReadSub2.getSub2()
    #ReadSub2.fun1()
    #ReadSub2.fun2()
    ReadSub2.getprob2(obs)
def Fun():
    val = e1.get()
    """
    For subject 1 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    """
    if int(val) == 1:
        import ReadSub1

        ReadSub1.getSub()
        ReadSub1.getSub1()
        ReadSub1.fun1()
    """
    For subject 2 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    """
    if int(val) == 2:
        import ReadSub2

        ReadSub2.getSub()
        ReadSub2.getSub1()
        ReadSub2.getSub2()
        ReadSub2.fun1()
        ReadSub2.fun2()
    """
    For subject 3 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    """
    if int(val) == 3:
        import Readsub3

        Readsub3.getSub()
        Readsub3.getSub1()
        Readsub3.getSub2()
        Readsub3.getSub3()
        Readsub3.fun1()
        Readsub3.fun2()
        Readsub3.fun3()
    """
   if exceed the number of the subject 3
    """
    if int(val) > 3:
        Example().onError()
    Example().onInfo()
def Fun():
    val = e1.get()
    '''
    For subject 1 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    '''
    if (int(val) == 1):
        import ReadSub1
        ReadSub1.getSub()
        ReadSub1.getSub1()
        ReadSub1.fun1()
    '''
    For subject 2 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    '''
    if (int(val) == 2):
        import ReadSub2
        ReadSub2.getSub()
        ReadSub2.getSub1()
        ReadSub2.getSub2()
        ReadSub2.fun1()
        ReadSub2.fun2()
    '''
    For subject 3 it analyziz the value on the text file and anlayziz the patter of thy achiving the marks
    '''
    if (int(val) == 3):
        import Readsub3
        Readsub3.getSub()
        Readsub3.getSub1()
        Readsub3.getSub2()
        Readsub3.getSub3()
        Readsub3.fun1()
        Readsub3.fun2()
        Readsub3.fun3()
    '''
   if exceed the number of the subject 3
    '''
    if (int(val) > 3): Example().onError()
    Example().onInfo()