Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between ACTIVE and NORMAL state

Tags:

python

tkinter

I have been using Tkinter from couple of weeks. One thing I have noticed is that the tkinter widgets (Button, etc.) have 3 states: NORMAL, ACTIVE and DISABLED. I understand the NORMAL and DISABLED states. Whats the difference between the ACTIVE and NORMAL states?

like image 739
sPaz Avatar asked Oct 01 '13 20:10

sPaz


People also ask

What is difference between active/active and active/standby configuration?

In Active/Standby configuration there is no need to implement a load balancing method before the nodes in order to share the load, since only one node will be active at any given time unless there is inconsistency. In Active/Active configuration both nodes are in active mode while handling the same function on the same state.

What is the difference between a normal state and absorbing state?

Finally, normal states are non-terminal states, so there is no difference. It may also be a good idea to describe what an absorbing state is, although this was not part of the question, but it's related. You must log in to answer this question.

What is the difference between Terminal States and normal states?

The difference between these terminal states is what reward you will receive for reaching it. Finally, normal states are non-terminal states, so there is no difference. It may also be a good idea to describe what an absorbing state is, although this was not part of the question, but it's related.

What is active/active configuration in Active Directory?

In Active/Active configuration both nodes are in active mode while handling the same function on the same state. If there is a failure in one active node, then the other active node automatically handles the traffic and function of both nodes until the issue is resolved.


1 Answers

Tk sets state = ACTIVE when a mouse is over a non-DISABLED button option (i.e. NORMAL) It can then be made to appear raised, sunken, flat, flash etc. So basically, NORMAL enables a button while ACTIVE can change the appearance settings on mouse over etc. Hope this helps, there's a great post about it here:

http://tkinter.unpythonic.net/wiki/Widgets/Button

like image 92
Kevin Heffernan Avatar answered Oct 13 '22 22:10

Kevin Heffernan