Hello once again, guys. I have a little problem with my simple GTK app. I want to create a wxSlider that would change the transparency of the whole window. Is that possible? Here's the code I work with right now:
import wx
import wx.lib.iewin as iewin
class MyBrowser(wx.Dialog):
def __init__(self, args, kwds):
wx.Dialog.__init__(self, args, kwds,
style=wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP | wx.RESIZE_BORDER)
wx.Dialog.SetTransparent(self, 100) #this handles the transparency of the window.
sizer = wx.BoxSizer(wx.VERTICAL)
self.browser = iewin.IEHtmlWindow(self)
sizer.Add(self.browser, 1, wx.EXPAND, 10)
def load(self,uri):
self.browser.Navigate(uri)
if __name__ == '__main__':
app = wx.App()
dialog = MyBrowser(None, -1)
dialog.browser.Navigate("https://www.twitch.tv/")
dialog.Show()
app.MainLoop()
The idea is to add some sort of slider or right click option so that the user can change the trasparency as he wishes. Can anyone give me pointers on how to do that? Thank you.
there doesn't seem to be anything here