I can implement a trayicon with popup menu following the code of this topic:
Quick and easy: trayicon with python?
thanks for the guys in that topic very much and now I have another question here:
Could I add a textbox control in the menu to let the user to input something?
What I want is a menu with textbox control:
In the official doc and demo of wxPython we can see the text control added to the menubar, but not the popup menu.
Thanks
Did you try it? I can't think of any limitations on the PopupMenu that would prevent you from doing it. If it doesn't work, try using FlatMenu. That widget is pure Python and can probably be hacked to support it if it doesn't already.
Related
I am trying to use kivy as the graphical system and yet i dont know how to put inside a button and a label at the same time where label shows text and button closes popup also there is one import ant thing here it must be a function that can have editable title and contents and buttob(text) and can be launched like: self.popup(text1, text1, text3) Does anyone know how do it?
Kivy popup contents: What do you want ? Nobody can answer this !!! Give a precise question (here are some propositions for your next SO post).
I am trying to use kivy as the graphical system: How to use kivy app as a graphical system ?
and yet i dont know how to put inside a button and a label at the same time where label shows text and button closes popup
Kivy: how to add a widget (Label/Button) to an app ?
Kivy: how to change Label text ?
Kivy: how to bind a function on a button click ?
Kivy: How to close a popup ?
also there is one import ant thing here: .
it must be a function that can have editable title and contents and buttob(text):
I think you should check out what theses terms are: POO, Inheritance, attribute, method.
I try all the night for my problem so now I just ask the question here.
It's seems simple : how to disable a spinbox with a radiobutton?
I try to create 2 functions disable and enable and use the command in the command radiobutton but it does nothing. I try also to use the "parents" thing and it's not working. I try to just use a if but like always : not working.
Here (Python tkinter Entry widget status switch via Radio buttons) I found some code who do what I want but with pack (I just change the entry by spinbox and it worked). However, it's a big program and I can't recode and relearn all with pack.
Anyone have an idea?
Thanks a lot ðŸ˜
I begin with Python programming and I need some help!
Actually I'm working on a graphical application using wxpython and I would like to be able to change dynamically the size & color of the border of any widgets like a "TextCtrl", a "Panel" and a "ListBox".
Have you any ideas about this ?
Thanks
You should check out the Widget Inspection Tool (http://wiki.wxpython.org/Widget%20Inspection%20Tool). It has a highlight function that basically does what you need. The wxPython demo has it in the Help menu, but you can add it to your own code. Just check out the instructions in the link above.
I need to add a popup dialog box on my GUI.
So, when ever I hover my mouse over a label, it should be able to show a popup( Like the type we get while hovering over a file in windows).
It should also disappear as soon i move away the mouse.
To start with, I am not even sure which module or class to use. I tried menu, but the results are not what i expected.
I also tried to learn tkCommonDialog, but couldn't understand it properly.
Please Advice!
The little popup window is called a tooltip.
This post may be relevant: http://bytes.com/topic/python/answers/505848-tkinter-button-overrelief
Take a look at the Balloon widget in the Tix package. I think it is just what you are looking for.
I am trying to extend a unity appindicator for project hamster. What I want to do is have a text entry directly in the indicator menu. I have seen this for example in the ubuntu memenu, but I cannot figure out how to get it to work with pygtk. I have searched for a while and found nothing. Does anyone know how to do this?
I'm pretty sure there is no way to add that in a menu in PyGTK, but you might try a borderless window popup.