user2122589
user2122589

Reputation: 273

Making a python 2 Tkinter slider static under certain conditions

I was wondering if there was a way to make a slider static under certain conditions, i.e. the program is under trial license.

One solution I've thought up was putting an image instead of a slider, but I'd prefer a static slider.

Is there a way I could do this?

Thanks!!

Upvotes: 0

Views: 62

Answers (1)

A. Rodas
A. Rodas

Reputation: 20679

You can use the state=DISABLED option in the constructor, which is allowed in almost all Tkinter widgets.

Upvotes: 3

Related Questions