Showing posts with label text. Show all posts
Showing posts with label text. Show all posts

Tuesday, 8 August 2017

Mach Number Calculator

img_a_01

Code for the simple Mach Number calculator:

from Tkinter import *

def mc():
    # 1st Function
    try:
        ns00, ns01 = a00.get(), a01.get()
        ns02, ns03 = a02.get(), a03.get()
        V = ns00
        k = ns01
        R = ns02
        T = ns03  

Thursday, 1 December 2016

Canvas - Text

img_a_01

The first code shows how the text is located in the canvas:

from Tkinter import *

root = Tk()

ch, cw = 200, 200
x0, y0 =   0,   0
x1, y1 =  20,  40