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()
Ejemplo n.º 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()
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():
    subgrd = e1.get()
    subgrd2 = e2.get()
    subgrd3 = e3.get()
    obs=[]
    if (str(subgrd)=="A"):
        obs.append(0)
    if (str(subgrd)=="B"):
        obs.append(1)
    if (str(subgrd)=="C"):
        obs.append(2)
    if (str(subgrd)=="F"):
        obs.append(3)
    if (str(subgrd2)=="A"):
        obs.append(4)
    if (str(subgrd2)=="B"):
        obs.append(5)
    if (str(subgrd2)=="C"):
        obs.append(6)
    if (str(subgrd2)=="F"):
        obs.append(7)
    if (str(subgrd3)=="A"):
        obs.append(8)
    if (str(subgrd3)=="B"):
        obs.append(9)
    if (str(subgrd3)=="C"):
        obs.append(10)
    if (str(subgrd3)=="F"):
        obs.append(11)
    if (obs==[]): Example().onError()
    print obs
    mastert.withdraw()
    import Readsub3
    Readsub3.getSub()
    Readsub3.getSub1()
    Readsub3.getSub2()
    Readsub3.getSub3()
    Readsub3.fun1()
    Readsub3.fun2()
    Readsub3.fun3()
    Readsub3.getprob(obs)
def Fun():
    subgrd = e1.get()
    subgrd2 = e2.get()
    subgrd3 = e3.get()
    obs = []
    if (str(subgrd) == "A"):
        obs.append(0)
    if (str(subgrd) == "B"):
        obs.append(1)
    if (str(subgrd) == "C"):
        obs.append(2)
    if (str(subgrd) == "F"):
        obs.append(3)
    if (str(subgrd2) == "A"):
        obs.append(4)
    if (str(subgrd2) == "B"):
        obs.append(5)
    if (str(subgrd2) == "C"):
        obs.append(6)
    if (str(subgrd2) == "F"):
        obs.append(7)
    if (str(subgrd3) == "A"):
        obs.append(8)
    if (str(subgrd3) == "B"):
        obs.append(9)
    if (str(subgrd3) == "C"):
        obs.append(10)
    if (str(subgrd3) == "F"):
        obs.append(11)
    if (obs == []): Example().onError()
    print obs
    mastert.withdraw()
    import Readsub3
    Readsub3.getSub()
    Readsub3.getSub1()
    Readsub3.getSub2()
    Readsub3.getSub3()
    Readsub3.fun1()
    Readsub3.fun2()
    Readsub3.fun3()
    Readsub3.getprob(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()