Creating Ubuntu Browser App Frames

Posted by user73006 on Ask Ubuntu See other posts from Ask Ubuntu or by user73006
Published on 2012-06-24T20:10:30Z Indexed on 2012/06/24 21:23 UTC
Read the original article Hit count: 240

After watching the video i am inspired to create one browser but stuck at one place, could you please help me with this.

Requirement = - Like you displayed in your Video i wan create Multiple Buttons in my Toolbar which will open Second ToolBar or Popup Window. - From that Pop Window i wanted to Select Specific Button Which will open My Required Browser.

Question - - As displayed in your Video i create new BUtton and If i try to open new link using that it works but now i want to display tool bar or Popup window once any one click on that button, how can i do that.The Second Tool Bar Need to be Activated only after clicking on that button.

Things i Tried - - As per my understanding i create Second Toolbar and on that tool bar i have created Button, now i wan know how do i link that tool bar with my Browser Toolbar button. - I tried that by passing Signal Property in Second Toolbar in Quickly but something is missing.

  • MY Code class TvbrowserWindow(Window): gtype_name = "TvbrowserWindow"

    def finish_initializing(self, builder): # pylint: disable=E1002 """Set up the main window""" super(TvbrowserWindow, self).finish_initializing(builder)

    self.AboutDialog = AboutTvbrowserDialog
    self.PreferencesDialog = PreferencesTvbrowserDialog
    
    # Code for other initialization actions should be added here.
    self.refreshbutton=self.builder.get_object("refreshbutton")
    self.SONY=self.builder.get_object("SONY")
    self.urlentry=self.builder.get_object("urlentry")
    self.scrolledwindow1=self.builder.get_object("scrolledwindow1")
    self.webview = WebKit.WebView()
    self.scrolledwindow1.add(self.webview)
    self.webview.show()
    

    def on_refreshbutton_clicked(self, widget): print "refresh" def on_urlentry_activate(self, widget): url = widget.get_text() print url self.webview.open(url)

© Ask Ubuntu or respective owner

Related posts about application-development