text: #!usr/bin/python
  __author__='''
  S.S.B
  surajsinghbisht054@gmail.com
  https://hackworldwithssb.blogspot.in
  '''
  # This Script Is Created only For Practise And Educational purpose Only
  
  # Here Import Modules
  try:
  	import Tkinter, ttk
  except:
  	import tkinter as Tkinter
  	import tkinter.ttk as ttk
  
  PROGRAM_NAME="Choose Mode"
  text="""
  Client Mode [Default]:
  		Here Your Machine will Search Server Connection.
  Server Mode:
  		Here Your Machine will wait For Client Connection
  """
  def Ask_Mode_Option():
  	root=Tkinter.Tk(className=PROGRAM_NAME)
  	mode=Tkinter.IntVar()
  	mode.set(3)
  	# 0 for Client Mode
  	# 1 For Server Mode
  	def out():
  		root.destroy()
  		return 
  	def mode_set(value):
  		mode.set(value)
  		out()
  		return
  
  	frame=ttk.LabelFrame(root, text="Choose Your Option")
  	frame.pack(side='top',padx=10,pady=10, ipady=10, ipadx=10)
  	ttk.Button(frame, text='Client Mode', command=lambda: mode_set(0)).grid(row=1, column=1, padx=10, pady=10)
  	ttk.Button(frame, text='Server Mode', command=lambda: mode_set(1)).grid(row=1, column=2, padx=10, pady=10)
  	ttk.Button(frame, text="Exit ", command=out).grid(row=1, column=3)
  	# Description About Modes
  	Label=Tkinter.Text(frame, width=60, height=8, font=('Timesnewroman 10'))
  	Label.insert('1.0',text,'end')
  	Label.grid(row=3, column=1, columnspan=4, rowspan=5, padx=10, pady=10)
  	Label.config(state='disabled') 
  	root.mainloop()
  	return mode.get()
  # Trigger For Script
  if __name__=='__main__':
  	print(Ask_Mode_Option())
  