Python Forum
popup message box code runs in Windows, but not in Linux
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
popup message box code runs in Windows, but not in Linux
#8
(May-02-2017, 07:49 PM)Luke_Drillbrain Wrote: However, it was exactly as it was when running from Pycharm.  The main menu came up and the message box was in the background until I found it in the task bar and clicked on it.
You wouldn't really start a program and open up repetitive dialogs without something to initiate it, like a button. The program does what you ask it to do. It opens up root, then showinfo, then askquestion.

messagebox is for quick popups, if you want to customize thigns like window position, it would be easier to make your own dialogs as a Toplevel instead.

Try adding this code after you create root
root.attributes("-topmost", True)
Recommended Tutorials:
Reply


Messages In This Thread
RE: popup message box code runs in Windows, but not in Linux - by metulburr - May-02-2017, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Hover over highlighted text and open popup window DrakeSoft 2 1,683 Oct-29-2022, 04:30 PM
Last Post: DrakeSoft
  POPUP on widget Entry taratata2020 4 3,933 Mar-10-2020, 05:04 PM
Last Post: taratata2020
  [WxPython] How to show remove button at the right side of the hovering item of a combobox popup? indrajitmajumdar 0 2,575 Mar-28-2019, 11:24 AM
Last Post: indrajitmajumdar
  [Tkinter] [SOLVED] Create per button popup menu py2.7 AceScottie 5 6,339 May-31-2018, 12:39 AM
Last Post: AceScottie
  Code fails on Mac, works on Windows and Raspberry Pi eugenedakin 4 4,131 May-30-2018, 03:49 AM
Last Post: eugenedakin
  [PyQt] source code is not running in REDHAT 7 linux platform shridhara 0 2,166 May-23-2018, 07:58 AM
Last Post: shridhara
  Please advice Linux library - tray icon, popup windows, ICQ/Skype style etc ramendik 5 4,198 Dec-03-2017, 04:35 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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