Jump to content


pygame + Tkinter - Fullscreen problem


  • You cannot reply to this topic
No replies to this topic

#1 Arg0

    New Member

  • Members
  • PipPip
  • 20 posts

Posted 21 May 2008 - 03:36 PM

Hello, i'm running pygame in fullscreen and the problem i have with my Tkinter is that it doesn't show up infront of the window, it shows up behind and can't see it. So my question is, how do i make Tkinter show up infront of the fullscreen window?

Here is my code of Tkinter


master = Tk()

def callback():

    print e.get()


    if mouseX >=344 and mouseX <= 443 and mouseY >=464 and mouseY <= 524:

        #newPilot = load_image('newP_hover.gif')

        if event.type == MOUSEBUTTONDOWN:

            b1,b2,b3 = pygame.mouse.get_pressed()

            if b1 == True:

                e = Entry(master)

                e.pack()

                e.focus_set()

                b = Button(master, text="Next", width=10, command=callback)

                b.pack()

                mainloop()

                e = Entry(master, width=50)

                e.pack()







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users