humanity --> sinners
Long-winded police are sleeping with heartless leisure, HAPHAZARDLY.
stink
Just wanna know -- Computers tend you make you kinda fake..
Ah man!!
I am the same way on-line as in "real-life" I believe; I am usually quite but can be very opinionated. I like to have fun (but not too much). I prefer being "serious" and am usually this way a percentage of the time, sometimes "dark" or fatalistic, yet, then again, I consider myself a positive, light-hearted person as well-- I guess it depends on the circumstances and the mood I am in. I am often obsessive-compulsive and this enters all areas of my life. Yet, I can be quite a lazy person and do nothing but play video games or read.
Me and Chewbacca
[IMG]http://i52.photobucket.com/albums/g31/reranger/DSC01245-1.jpg[/IMG]
I try to tone down my opinionated demeanor on <Daniweb> as I see that it only leads to battles amongst certain members who are always looking for fight. I try to work on my character defects as much as possible but I try not to work them out on here through exhibition of said traits.
MattyD
Long-winded police are SLEEPING with heartless criminals, knowingly.
illusion --> mortal tricks
Kids are germ factories.
is very possible
that people who
stout
I'm a bit confused about btn3, since I don't see its code. However, I do notice that btn1 does .bind("<Button-1>",callback).
That's actually overkill and can lead to the problem that you describe. If you do this:
btn3 = Button(root, **options, command=callback) def callback(): # note no event passed! do btn3 thing here
then disabling the button should have the desired effect.
Here's a sample piece of code:
from Tkinter import * class MyFrame(Frame): def __init__(self, master): Frame.__init__(self, master) self.b1 = Button(self, text="Press Me!",command = self.callback) self.b2 = Button(self, text="Press Me Too!", command = self.callback2) # self.b2.bind('<Button-1>',lambda event:self.callback2()) self.b1.grid() self.b2.grid() def callback(self): self.b2['state'] = DISABLED def callback2(self): print "Ha-Ha, you pressed me!" mainw = Tk() mainw.f = MyFrame(mainw) mainw.f.grid() mainw.mainloop()
As is, the top button disables the bottom one. If you remove the # from line 9, the top button will turn the bottom one grey but the action will still happen BECAUSE the <Button-1> event, even though not registered as an 'activate button' event, is still bound to self.callback2. Thus,
the button is disabled, but it still receives events.Hope it helps,
Jeff
jrcagle:
Hi, thanks for your reply and help.
This:
btn3.config(state = DISABLED)
Was supposed to be:
btn1.config(state = DISABLED)
(** Another error due to combining cut-and-paste and not paying close enough attention to details.
:rolleyes::lol:)
I am going to closely review your proposed idea concerning my proplem and try to implement it tonight.
Thanks again,
MattyD
and extreme fatigue.
Long-WINDED police are looming over heartless criminals, knowingly.
death -> immortality
explode like candy
gnome
Her hopes were high, of course, as high as hopes could be when dying inside. She felt strong (she hoped), and she felt sure at least for the moment; but how could she make the break away needed in order to reclaim her life again?
snake --> antidote
Long-legged giants are looming over cracked criminals, KNOWINGLY.
mode
where the water
tongues would cause
Quail soup is quite "gamey".
goner
This is normal behaviour. It is required to enter at least one character. However, you're trying to submit a post which is exclusively a quote of an existing post. You must enter at least one character unique to your post.
In this particular case, the word game simply requires changing a word; I do this all the time via a quoted reply: In this case the unique character was contained in the unique word "SHORT".
I'm a bit confused with this at this point. Perhaps I made a mistake somewhere. :confused:
Thanks for your reply and help on this, Dani. ;)
MattyD
How is the button connected to the rest of the code? Normally, a DISABLED button will fail to call its 'command=' callback. But if you have, e.g., a .bind('<Button-1>') to catch mouse clicks on the button, I'm willing to bet that those still pass the event. So: code, please?
Jeff
Jeff:
Thanks for your reply. Here is an example of the Tkinter button code:
def show_image2():
canvas2.create_image(100,225, image=photo1)
image01 = PhotoImage(file='green.gif')
btn1 = Button(root ,bg="Black", image=image01,command=show_image2)
btn1.configure(state=NORMAL,background='red' )
btn1.pack(side=LEFT,padx=1)
def callback(event):
if endCard1 == "SA.GIF":
print "yes"
else:
print "no"
btn3.config(state = DISABLED)
btn1.bind("<Button-1>", callback)
Thanks alot,
Matty
Upon replying to a thread in Geek's Lounge I keep getting this message:
"The message you have entered is too short. Please lengthen your message to at least 1 characters."
Even when I add one character it will still not submit, giving me this same message again. I have never seen this before. What is it?
Matty D
It appears <Daniweb> is up to its old tricks again :lol::lol:-- but, really, it's annoying. Please see screenshots below taken in Geek's Lounge when attempting to reply to a post:
[IMG]http://i52.photobucket.com/albums/g31/reranger/1char.jpg[/IMG]
&&
[IMG]http://i52.photobucket.com/albums/g31/reranger/scrn2.jpg[/IMG]
Herd the sheep to the edge of the cliff and push them over.
feel awful, but
forget that you
pit viper --> python
gnat
"Kids should be seen and not heard."
unity
ignite
I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; I wish though to completely disable the buttons upon a user selecting them for input. I thought this worked fine as when the button was activated it changed appearance which I took to represent "disabled" and I have not run into the issue in the past knowingly with it.
When the user uses this button, if they do and only then, the button should be completely disabled-- now when I test the button the button darkens (see image below) but it still remains active in the sense that it appears disabled but still allows user input. Strange.
Is "disable" in Tkinter only for appearance? I would think not-- this would make little sense. I do not care what the button looks like, only that it is fully deactivated.
Code used for this button disabling
btn1.config(state = DISABLED)
**Note please disregard the size change of buttons below; this is not an element of the widget-- it has something to do with the image upload to URL image host.
Before User Selection
[IMG]http://i52.photobucket.com/albums/g31/reranger/green.gif[/IMG]
After User Selection\ still works allowing input
[IMG]http://i52.photobucket.com/albums/g31/reranger/disable1.jpg[/IMG]
Thank-you in advance for any …
animate
Haha, that's pretty much my situation too :mrgreen:
No wonder no one likes me....
This bolsters my position when I tell my girl that my PC is my "child" and her laptop is just a "baby"; "We really must care for them--they are like our children." ;) She rolls her eyes at me :rolleyes: and just smiles.
You see, neither of us at this point plan on having human children (just pet animals and computers). I have a relationship with my computer, not one that replaces human relationships, per se, although I admit, I never find myself in great urgings for realtime, human relationships outside of:
Well, my PC fulfills me to a great extent as I get so much work done (programming, graphic design)via this machine, I make a living through this machine as a coder, and I am offered worlds of fun through gaming. It's great-- could be a bit faster with more RAM, but still, a great "friend". :lol::cheesy:
Matty D
mime
She gave up on ever regaining her true self, though. She was the type of lady to capsize at any little event-- the tapping of her soul by a immortal presence, well...
Am I alive--or not? Disembodiement.
of plasmic wax.
Long-legged giants are LOOMING over cracked rooftops, hastily.
funnily enough --> deadly
grime
reap