Git Product home page Git Product logo

Comments (5)

yursan9 avatar yursan9 commented on July 18, 2024 1

Everything is working fine, right? I'll close this, because I already solve the issue.

from budgie-desktop-examples.

lachlan-00 avatar lachlan-00 commented on July 18, 2024

I'm looking for this too. All the source for current applets seems to be in vala and the example doesn't have any settings code.

What i've done so far is copy the settings ui from budgie menu and edit it to my needs.
https://github.com/budgie-desktop/budgie-desktop/blob/master/src/applets/budgie-menu/settings.ui

Then i think you need to add the BudgieMentSettings class to your plugin

class BudgieMenuSettings(GTK.Grid)
    def __init__(self):
        """ NOT sure? """
        self.builder = Gtk.Builder()
        self.builder.add_from_file('settings.ui')
        self.builder.connect_signals(self)
        self.pickbutton = self.builder.get_object('button_icon_pick')
        self.pickentry = self.builder.get_object('entry_icon_pick')

Still working on it as i'm just trying to ape the code from the vala plugins.

from budgie-desktop-examples.

yursan9 avatar yursan9 commented on July 18, 2024

https://github.com/yursan9/budgie-caffeine-applet/blob/master/budgie-caffeine-applet.py.in

If you want to know how to add setting, look at my caffeine applet.

from budgie-desktop-examples.

lachlan-00 avatar lachlan-00 commented on July 18, 2024

That's great, i've managed to add settings UI in very easily following your plugin.
My only question for you is how is setting passed to the CaffeineSetting class?

When i run mine i get an error that settings is null

I've copied pretty much your exact structure of the classes so i'm not sure what i missing.

return PyLaunchSettings(self.get_applet_settings(self.uuid))

setting.bind("folder-path", chooser, 'get_path',
AttributeError: 'NoneType' object has no attribute 'bind'

from budgie-desktop-examples.

lachlan-00 avatar lachlan-00 commented on July 18, 2024

Oh, wait that's actually because when i install i need to create the dconf settings.

I was just installing the files and restarting the panel without creating any settings for the applet.

from budgie-desktop-examples.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.