Thursday, April 25, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 821  / 2 Years ago, tue, august 23, 2022, 12:28:05

The app is written in HTML and is running using webkit and Quickly.
The opacity can be changed using Glade.



I want to add a slider functionality in HTML which will change the title of the HTML document according to the opacity.



How to code the main app/AppWindow.py so that it will change the opacity dynamically according to the HTML document title?


More From » application-development

 Answers
2

You can use the set_opacity() method of GtkWindow object.



It will expect a float, so you should do a type conversion before.



try:
self.set_opacity(float(title))
except ValueError:
pass # Do something with the invalid value here.

[#26523] Tuesday, August 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;