title: Communication between 2 python GUIs
body: <p>In file 2, a value would be entered by the user and i want that value to be used in 1 file. Also i want to make a function to check file 2 that if file 2 is missing, file 1 should independently get a default value.
  Would this also work if i convert the file into exe, I tried using os.path.exists("Path"), but i want it to be path independent, any suggestions?</p>
  
  <pre><code>from tkinter import *
  
  
  multiplier = Tk()
  multiplier.config(background="BLACK")
  multiplier.geometry("400x400")
  multiplier.wm_title("Multiplier Selector")
  label1 = Label(multiplier, text="Select the Appropriate Multiplier", bg="BLACK", fg="WHITE", font="Times 14 bold")
  label1.place(relx=0.1,rely=0.1)
  a = StringVar()
  x2 = Radiobutton (multiplier, text="x2", font="Times 14 bold", bg="BLACK", fg="WHITE", value=1,command=lambda:a.set("2"),selectcolor="BLACK")
  x4 = Radiobutton (multiplier, text="x4", font="times 14 bold", bg="BLACK", fg="WHITE", value=2, command=lambda:a.set("4"), selectcolor="BLACK")
  x6 = Radiobutton (multiplier, text="x6", font="Times 14 bold", bg="BLACK", fg="WHITE", value=3, command=lambda:a.set("6"), selectcolor="BLACK")
  button = Button (multiplier, text="value of a", fg="White", bg="BLACK", command=lambda:print (a.get()))
  button.place(relx=0.5, rely=0.5)
  x2.place(relx=0.1, rely=0.3)
  x4.place(relx=0.1, rely=0.5)
  x6.place(relx=0.1,rely=0.7)
  
  multiplier.mainloop()
  </code></pre>
  
  <h1>file_2</h1>
  
  <pre><code>from tkinter import*
  from tkinter import messagebox
  from file_3 import abc
  def raise_frame(Frame):
    Frame.tkraise()
  
  def on():
    if a2.get()=="" or a3.get()=="" or a4.get()=="" or a5.get()=="" or a6.get()=="" :
     messagebox.showerror("Error", "Empty Field")
  
   else:
      a = float(a1.get()) * 10000000000
      b = float(a2.get()) * 1000000000
      c = float(a3.get()) * 1000000
      d = float(a4.get()) * 1000
      e = float(a5.get())
      f = float(a6.get()) / 1000
      h = float(abc.get())
      g = float((a + b + c + d + e + f)/h)
       setframepowergreen.lift()
       print(g)
  </code></pre>