Skip to content

Commit

Permalink
Update browser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw authored Aug 4, 2019
1 parent 3604822 commit 78e90de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,25 @@ def on_refresh_clicked(self, widget):

def on_back_clicked(self, widget):
self.webview.go_back()

def on_forward_clicked(self, widget):
self.webview.go_forward()

def on_stop_clicked(self, widget):
self.webview.stop_loading()

def change_title(self, widget, frame, title):
self.window.set_title('Roksolana Browser | ' + title)
self.window.set_title(title + ' - AnLinux-Browser')

def change_url(self, widget, frame):
uri = frame.get_uri()
self.url.set_text(uri)
self.back.set_sensitive(self.webview.can_go_back() )
self.forward.set_sensitive(self.webview.can_go_forward() )



def spinner_on(self,widget,frame):
self.spinner.start()

def spinner_off(self, widget,frame):
self.spinner.stop()

Expand All @@ -82,6 +84,7 @@ def spinner_off(self, widget,frame):

#def progress_change(self,wiget,frame):
# self.progressbar.set_pulse_step(.5)

#def progress_off(self,widget,frame):
#self.progressbar.set_pulse_step(0)

Expand Down

0 comments on commit 78e90de

Please sign in to comment.