Python Forum
[Tkinter] showing return from button on main screen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] showing return from button on main screen
#3
Your ideas makes me to do something like this:
def ping_screen():
        ping_command = 'ping -c 5 google.com'.split()
        proc = subprocess.run(ping_command, capture_output=True, text=True)
        ekran.insert("end", proc.stdout + "\n")
    def ping_google():
        # Wypisuje w polu tekstowym ping z Google.com
        czysc_ekran()
        ping_screen()
About the results of ping I got them after it ends pinging . So for now there is -c added to get answer quickly.
the problem I stuck for now is how to get it "dynamic" on gui screen ?
Reply


Messages In This Thread
RE: showing return from button on main screen - by blazejwiecha - Nov-20-2020, 02:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter showing image in button rwahdan 3 5,707 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  [Kivy] Kivy pop up shows duplicate buttons from main screen CEKinch 0 1,985 Feb-05-2021, 05:40 PM
Last Post: CEKinch
  [PyQt] QPainter issue showing black screen mart79 0 2,039 May-06-2020, 12:02 PM
Last Post: mart79
  [Tkinter] Listbox and Button not showing Linuxdesire 2 3,902 Oct-05-2019, 06:33 PM
Last Post: woooee
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,068 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp
  “main thread is not in main loop” in Tkinter Long_r 1 24,392 Jun-26-2019, 11:00 PM
Last Post: metulburr
  [Tkinter] RE: status bar to return to the centre after 1 minute of clicking a button ? chano 6 4,762 May-27-2019, 04:24 PM
Last Post: Yoriz
  Unable to return value from callback function of a button in Python Tkinter nilaybnrj 4 20,889 Aug-05-2018, 11:01 PM
Last Post: woooee
  Tkinter touch screen button click ashtona 2 9,705 Apr-13-2018, 11:46 AM
Last Post: buran
  GTK main window calling a main window DennisT 4 6,909 Oct-19-2016, 09:36 PM
Last Post: DennisT

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020