It'd probably be a better idea to use tkinter - in addition for it being part of python, it's also cross platform.
Here's an example pop up:
from tkinter import messagebox, Toplevel, Label, Tk, Button
def pop(msg): # This will be on top of the window which called this pop up
messagebox.showinfo('message', msg)
def pop_always_on_top(msg): # This will be on top of any other window
msg_window = Toplevel()
msg_window.title("Show Message")
msg_window.attributes('-topmost', True)
msg_label = Label(msg_window, text=msg)
msg_label.pack(expand=1, fill='both')
button = Button(msg_window, text="Ok", command=msg_window.destroy)
button.pack()
if __name__ == '__main__':
top = Tk()
hello_btn = Button(top, text="Say Hello", command=lambda: pop('hello world!'))
hello_btn.pack()
hello_btn = Button(top, text="Say Hello and stay on top!", command=lambda: pop_always_on_top('hello world - on top!'))
hello_btn.pack()
top.mainloop()
The message box is automatically on top of its parent window.
If you want to make it on top of every other window on the system, set the '-topmost' flag of your window (as the second method demonstrates).