def text_mode_buck(): if not os.path.isfile(sys.path[0]+os.sep+"prices_file.txt"): print "text mode" buckPCh.prices_reset() else: buckPCh.prices_reset_ask() no=0 n=0 yes=1 y=1 run=0 L2=0 D0=0 D1=0 D2=0 D0 = float(input('Enter Butt Diameter: ')) #Get Inputs L1 = float(input('Enter Minimum Length: ')) #L1=L1+0.8333 D1 = float(input('Enter Minimum Diameter: ')) run=input('Account for diameter reduction?: ') L2 = float(input('Enter Maximum Length: ')) # L2=L2+0.8333 D2 = float(input('Enter Maximum Diameter: ')) process_buck(L1,L2,D0,D1,D2,gui_mode=0)
def text_mode_buck(): if not os.path.isfile(sys.path[0]+os.sep+"prices_file.txt"): print "text mode" buckPCh.prices_reset() else: buckPCh.prices_reset_ask() D0 = float(input('Enter Butt Diameter: ')) #Get Inputs L1 = float(input('Enter First Length: ')) #L1=L1+0.8333 D1 = float(input('Enter End Diameter: ')) run=input('Account for diameter reduction?: ') if run == yes: L2 = float(input('Enter Second Length: ')) # L2=L2+0.8333 D2 = float(input('Enter End Diameter: ')) run=input('Account for another diameter reduction?: ') if run==yes: L3 = float(input('Enter Third Length: ')) # L3=L3+0.8333 D3 = float(input('Enter End Diameter: ')) process_buck(L1,L2,L3,D0,D1,D2,D3,gui_mode=0)