Quote:Right now it display ping and clear is not place together.
if i put pack(side"left"), it will look really strange.
If you just try to pack it to side left then it is going to attempt to center it on the Y axis making it far down. You have to anchor it the north.
try using anchor to northwest
tk.Button(my_gui,text="Ping Test", bd=2, command=ping).pack(side='left', anchor='nw') tk.Button(my_gui,text="Clear", bd=2, command=clear_text).pack(side='left', anchor='nw')Or a little more uniformed
tk.Button(my_gui,text="Ping Test", bd=2, command=ping).pack(side='left', anchor='nw', padx=25) tk.Button(my_gui,text="Clear", bd=2, command=clear_text).pack(side='right', anchor='ne', padx=25)or even more uniformed
tk.Button(my_gui,text="Ping Test", bd=2, command=ping).pack(side='left', anchor='n', fill='x',expand='yes') tk.Button(my_gui,text="Clear", bd=2, command=clear_text).pack(side='right', anchor='n', fill='x',expand='yes')depending on your tastes.
Recommended Tutorials: