Re: TkMessageBox doesn't show up Programming Software Development by woooee … =text): which would take care of both situations. [CODE]import tkMessageBox def __invitation__( address, name): print 'Invitation received' text = ('Player "… an invitation \n\nDo you accept it?') print text result = tkMessageBox.askyesno(title='Invitation', message =text) print("result =", result… tkMessageBox does not appear on application frame Programming Software Development by rbyrd …OSX 10.6.8. Thanks. from Tkinter import * import tkMessageBox class App: def __init__(self): self.root = Tk() …background = "#faf0e6") self.cnvs.pack(fill=X) tkMessageBox.showwarning('TEST', 'This is a test', parent =self.frame) … Re: TkMessageBox doesn't show up Programming Software Development by txwooley … simply use a variable as a bool. Try: [CODE] result = tkMessageBox.askyesno(title='Invitation', message =text) if result: print 'Invitation accepted… itself reversed. I had to change it to: [CODE] result = tkMessageBox.askyesno(title='Invitation', message =text) if not result: print 'Invitation… TkMessageBox doesn't show up Programming Software Development by Fridericus Hello everyone, I have a problem with TkMessageBox on Windows: My program receives a message from a server … Re: TkMessageBox doesn't show up Programming Software Development by Fridericus … an invitation \n\nDo you accept it?') print text if tkMessageBox.askyesno(title='Invitation', message =text) == 1: print 'Invitation accepted.' # ... [/CODE… bug in tkMessageBox Programming Software Development by no_spam_for_dan … as follows: >>> import tkMessageBox >>> tkMessageBox.askyesno() #user clicks "yes"…"cancel" '' >>> res=tkMessageBox._show(_type="yesno") #user clicks "…WinXP continues to return a string from tkMessageBox._show The tkMessageBox.askyesno code executes the following, which… Re: bug in tkMessageBox Programming Software Development by harishankar … as follows: >>> import tkMessageBox >>> tkMessageBox.askyesno() #user clicks "yes"…"cancel" '' >>> res=tkMessageBox._show(_type="yesno") #user clicks "…WinXP continues to return a string from tkMessageBox._show The tkMessageBox.askyesno code executes the following, which… Re: tkMessageBox does not appear on application frame Programming Software Development by vegaseat You might want to replace the messagebox with a label of your own design. Re: tkMessageBox does not appear on application frame Programming Software Development by woooee Or put it in a Toplevel which can be positioned and sized. Re: TkMessageBox doesn't show up Programming Software Development by vegaseat Without some pertinent code it will be impossible to help you. Which program/server event triggers the message box to appear? Re: TkMessageBox doesn't show up Programming Software Development by Fridericus No, that is not the reason. For testing purpose I've just created a button in my program which invokes the invitation method, and when I click this button, the MessageBox is shown. Only when it's not a user action which invokes the method, the MessageBox is not shown. Re: TkMessageBox doesn't show up Programming Software Development by txwooley I just realized that your problem is the messagebox not showing up. My bad. Is there something else running that hasn't finished yet? I ran into a few problems where my messageboxes never came up because they were waiting for another process to finish. I fixed it by using the thread module and putting my messagebox in a function. Then call the… Re: TkMessageBox doesn't show up Programming Software Development by Fridericus Hello. Sorry for the late response, but I didn't have access to a Windows computer. I've tried your idea, but unfortunately it didn't work. Now I've created a simple client/server example with the same error as in my project, so you can test it on your computers. Run the server and then the client on a command line. When you enter text at the … Tkinter scroll bar Programming Software Development by natehome … yes/no/cancel message box import tkMessageBox s = tkMessageBox.Message( title=title, message=message, icon=tkMessageBox.QUESTION, type=tkMessageBox.YESNOCANCEL, **options).show() # depending on… I need some help with Python error Programming Software Development by Guylolk …usr/bin/env python from Tkinter import * import tkMessageBox tkMessageBox.showinfo("Text","Hello. Tell me …> 0: if a % 2 == 0: tkMessageBox.showinfo("%s is an even number" % …= a * -1 if a % 2 == 0: tkMessageBox.showinfo("%s is an even number" % a)… Tkinter Game board problem Programming Software Development by flip121 …(): DieP1=rollDice(1,2)[0] global position1 position1=position1+DieP1 tkMessageBox.showinfo( "Order Die for first user",DieP1 )…(): DieP2=rollDice(1,6)[0] global position2 position2=position2+DieP2 tkMessageBox.showinfo( "Order Die for second user",DieP2 ) … Tkinter Table User Import Interface Programming Software Development by smile1 …tkFileDialog import askopenfile , asksaveasfile # Open dialog box import tkMessageBox import ttk class Window(): def __init__(self): "… outputs etc. savedfile.close() #if savedfile == True: tkMessageBox.showinfo("Save message", "Save successful")… Combining two python programs together...HELP!!! Programming Software Development by MikeyFTW … it like this...[/U][/B] [ICODE]from Tkinter import * import tkMessageBox import random def ask(): global num1 num1 = random.randint(1… = entry1.get() # if empty give message if len(mainAnswer) == 0: tkMessageBox.showwarning(message='Need to enter some numbers!') return if int… Math game help!!! URGENT PLEASE! Programming Software Development by MikeyFTW … help me! Really urgent! Please! [ICODE]from Tkinter import * import tkMessageBox import random def ask(): global num1 num1 = random.randint(1… = entry1.get() # if empty give message if len(mainAnswer) == 0: tkMessageBox.showwarning(message='Need to enter some numbers!') return if int… tkinter time filler, text box? progress bar? Programming Software Development by goodwin912 …interested. [CODE]import Image, os, tkFileDialog, tkMessageBox def watermark(im, mark, mark2): if im… Folder") p = tkFileDialog.askdirectory() tkMessageBox.showinfo("First Logo", "Select…tkFileDialog.askopenfile() mark = Image.open(b) tkMessageBox.showinfo("Second Logo", "Select … Re: tkinter time filler, text box? progress bar? Programming Software Development by goodwin912 … out the disturbing main window toplevel.withdraw() tkMessageBox.showinfo("Select Folder", "Specify…p = tkFileDialog.askdirectory() os.chdir(p) tkMessageBox.showinfo("First Logo", "… tkFileDialog.askopenfile() mark = Image.open(b) tkMessageBox.showinfo("Second Logo", "Select … Re: tkinter time filler, text box? progress bar? Programming Software Development by TrustyTony …3001_07_75_prev.jpg') panel = tk.Label(frame,image=imagedata) panel.pack() tkMessageBox.showinfo("Select Folder", "Specify Image Folder"…") a = tkFileDialog.askopenfilename() ## get filename mark = Image.open(a) tkMessageBox.showinfo("Second Logo", "Select Second .png logo… Tkinter help (labels) Programming Software Development by laroca ….is_alive(): return if not self.selenium_server.is_server_up(): tkMessageBox.showerror('Error', 'Failed to start Selenium server…start it manually.') return if not self.case_number: tkMessageBox.showerror('Error', 'Case number must be provided.') … Tkinter Help Programming Software Development by sc0tty …to work correctly. [CODE]from Tkinter import* import time import tkMessageBox import random def Questions(): number1 = random.randrange(1,25,1…count_flag = False print answer if entryWidget.get().strip() == "": tkMessageBox.showerror("Tkinter Entry Widget", "Please enter a… Re: Tkinter Game board problem Programming Software Development by jlm699 …: [code=python] from Tkinter import * import Tkinter import random import tkMessageBox ##Player positions positions = [0,0,0,0] def rollDice(num…): Die=rollDice(1,6)[0] global positions positions[player]+=Die tkMessageBox.showinfo( "Order Die for user %s" % player, Die… Re: tkinter time filler, text box? progress bar? Programming Software Development by TrustyTony …out the disturbing main window toplevel.withdraw() tkMessageBox.showinfo("Select Folder", "Specify… = tkFileDialog.askdirectory() os.chdir(p) tkMessageBox.showinfo("First Logo", "…tkFileDialog.askopenfile() mark = Image.open(b) tkMessageBox.showinfo("Second Logo", "Select … Re: Tkinter Scale Programming Software Development by TrustyTony 1) Because they are different modules: [CODE]>>> import Tkinter >>> Tkinter <module 'Tkinter' from 'D:\Python27\lib\lib-tk\Tkinter.pyc'> >>> import tkMessageBox >>> tkMessageBox <module 'tkMessageBox' from 'D:\Python27\lib\lib-tk\tkMessageBox.pyc'>[/CODE] Second question I don't know to answer. how to opening a new window on clicking menu item? Programming Software Development by katharnakh … tell where im wrong. :?: :-| [code]from Tkinter import * import tkMessageBox import tkSimpleDialog class form(tkSimpleDialog.Dialog): def __init__(self,root…quot;,menu=self.formmenu) self.parent.focus_force() def one(self): tkMessageBox.showinfo("one","this first.......") self.top… GUI tkinter help (Image button and background) Programming Software Development by tkpython …request).read() print feeddata def about(self): tkMessageBox.showinfo("Jedi",''' Jedi ++++++++++++++++++++++++++++++++++++++++ Jedi…(self): root.destroy() def history(self): tkMessageBox.showinfo("Pyge Visitor",''' No History … Change window title in multithreaded code Programming Software Development by Agni …Disconnect',command=self.closeConnection) self.startRecvThread() except: tkMessageBox.showinfo(message='Server down hai bidu... din …outMsg) self.entryWidget.delete(0,END) except: tkMessageBox.showinfo(message='kuch gadbad hai.. baad main try…