How can I set an applications image (icon) in my canonical-quickly project? Even if I set the icon path in Glade, the UI designer, my icon doesn't show up.
In the aplications bar of my desktop I only see a gear.
I used the following relative path in Glade:
../media/projectname.svg
It's been a while but anyway...
You should put it here:
YOUR_QUICKLY_PROJECT_FOLDER/data/media/YOU_PROJECT_NAME.svg
(.png/.jpg might work also, I am not sure)
And you don't need to set it anywhere in the programme.
Related
I'm messing around with wxpython and I want to make a good app, and I want an icon for my app. (I mean on the actual window not the taskbar.)
I've already read How to set icon on wxFrame?. But where do I put the path to my icon in the wx.EmptyIcon()?
I really don't understand how to do this. Any help?
Sorry for the bad english!
Alright, for anyone who wants to know, I figured it out. You need to use this code:
frame.SetIcon(wx.Icon("C:\\Users\\JScripter98\\Downloads\\scissors.png"))
(the path can be anything you want)
This sets the icon to your main frame. The path should have two \'s in it so python knows it's a file path.
The goal is to have an application that runs on top of all other applications and windows in the desktop, and display a clickable control (say, an image button) that moves around the screen.
The application must run as a service in the background and show thebutton (let's say) each hour, once clicked it disappears until the next hour.
This application has to be written in Python.
It looks like PyQt is one of the better options, but I'm not sure if it does support this sort of functionality and if it is a good alternative for modern Windows applications.
What packages or frameworks are appropriate for this scenario? I have seen Pygl and PyGame but they seem to be limited to a window, is this correct?
You actually don't need to create the program as a service. You can just start the application and not show the window immediately. You can use PyQt or wxPython. I'm more familiar with wxPython, so if you went that route, you could use a wx.Frame style flag such as wx.STAY_ON_TOP to get the functionality you want.
I have created applications that load up in the system tray with just an icon. When you click the icon, it shows the frame. The rest of the time, the frame is hidden. I would try that route before looking at doing a service.
I would like to create for my linux task bar a little applet in python, which simply display an icon that could change of color, and when we click on it, which show a simple information menu.
But I have no idea about the resources I could use to perform it.
I started with gtk and in particular I found the gtk.status_icon_new_from_file to display an svg icon. But I can't dynamically change the icon's color through the svg. I have to modify the colors in my file, and then to reload it. Is there a way to give directly the data of the icon rather than the name of it ?
Besides, I don't know where to continue then to code my menu. Any idea ?
Finally, is it possible to some text above an icon ?
Edit : I would like to have solution about a generic taskbar, since I'm using tint2 (with openbox) under archlinux. So I need solutions compatible with the freedesktop recommendations and not specific to Gnome or Ubuntu. Maybe solutions with a xfce4 desktop.
Status icon is most generic solution, but legacy.
Appindicator was designed for ubuntu to easy keep icon and menu in taskbar.
There is examples in several languages
http://developer.ubuntu.com/resources/technologies/application-indicators/
What is your Desktop Shell? Each shell has a better way to keep applet on taskbar. Some of these solutions has compatibility with other shells (appindicator has support in KDE, Gnome2, Gnome Shell and maybe others).
I'm working on an app using the python/Kivy-iOS toolchain. For some reason, when I build to the iPhone5, the app doesn't run fullscreen (there's letterboxing at the top and bottom, see attached screenshot). This seems to be the default behavior for Kivy on iOS.
Any idea how to set the resolution manually or make it detect resolution properly?
iPhone5 requires a launch image with following properties for it to enable full 4" screen size for your app
file name - "Default-568h#2x.png"
dimensions - 640x1136
Place in your app-kivyapp/ directory or add them via xcode's settings interface and you are good to go.
I want to change the status icon of my own little reminder program. Currently I am using GTK.StatusIcon but I want to use a ApplicationIndicator.
Therefore I created an own Icon and moved it to:
/usr/share/icons/ubuntu-mono-dark/status/22
It is named indicator-notify.svg
Heres the code for the icon.
ind = appindicator.Indicator ("notify",
"indicator-notify",
appindicator.CATEGORY_APPLICATION_STATUS)
ind.set_status (appindicator.STATUS_ACTIVE)
This Icon is not displayed. Although every other icon from this folder is.
What did I miss? Is there maybe the need to "register" the icon in GTK ?
You don't need to register it, but your icon cache needs to be updated after installing new icons. You can do this via gtk-update-icon-cache (see http://developer.gnome.org/gtk/2.24/gtk-update-icon-cache.html)