As shown below:
out = ('adb shell pm list packages') top = () ('List of package names') ('%dx%d' % (400, 1200)) # Set window size t = Text(top, width=400, height=900) ('1.0', "{}".format(out[1])) # Insert text in quotes to bring up "1.0" This is the coordinates of the inserted text, and the dot between 1 and 0, not the comma, remember. # wraplength: Specify how many units to start the wrapping. # justify: Specify alignment for multiple lines # Example: Label(top, text='View all package names on current phone: ',wraplength = 80,justify = 'left').grid(row=1,stick=W, pady=10) () ()
The above example of this Python GUI programming text pop-up window is all that I have shared with you.