Comments (5)
Everything is working fine, right? I'll close this, because I already solve the issue.
from budgie-desktop-examples.
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.
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.
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.
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)
- No package budgie-1.0 available. HOT 1
- How can I add my python plugin's symbolic icons to the hicolor dir and use them? HOT 4
- Applet development documentation
- add get_applet_settings to C example HOT 6
- How to use new Budgie.Popover in Python HOT 15
- API/Signal for panel orientation?
- Detect if an applet has been removed from the panel HOT 5
- update python example with gsettings and config widgets
- Not an issue but a question!!! HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from budgie-desktop-examples.