Skip to content

Custom icon in Messagebox class #134

Answered by israel-dryer
lupon1 asked this question in Q&A
Discussion options

You must be logged in to vote

@lupon1, this should now work as expected with a fix in #137.

# set default icon using photoimage
root.iconphoto(1, image)

# remove the default icon
root.iconphoto(1, '')

# set the icon for this window only
root.iconphoto(0, image)

# set the default bitmap (.ico)
root.iconbitmap(default=bitmap)

# remove the default bitmap
root.iconbitmap(default='')

# set the bitmap for this window only
root.iconbitmap(bitmap)

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@lupon1
Comment options

@israel-dryer
Comment options

Comment options

You must be logged in to vote
1 reply
@littlejew2000
Comment options

Answer selected by lupon1
Comment options

You must be logged in to vote
2 replies
@oochain
Comment options

@michael-hoang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants