python drop down menu attached to the windows taskbar - python

I'm currently working on a timer application on python 3, basically is for you to keep track of how many time spend doing something. I'm in the part of the process where i need to create an interface probably with tkinter, with a drop down menu that lists all the things i need to keep track of (lets call those things "statuses").
Now, my question is, is there a way to add that the drop down menu with the statuses in the task bar on windows? so that a user does not have to go the interface and change status, but most importantly, the current status can be always on sight.
Is this even possible? If it is, I just need a few hints please! :)

Am not sure about adding a drop down menu to the taskbar icon(like the one you get with Microsoft lync taskbar icon to change status, hope u need something like this), but i would suggest(incase this helps) to add menu at right click over the taskbar icon.
wxPython might help.
see this article.
http://codeboje.de/MailSneaker-Part-3-SystemTrayTaskBar-Icons-with-Python-and-wxPython/
Hope this helps.

Related

Open new window - tkinter/tk taskbar/dock

How can I can a function and create a function for the icon context menu? I want to make the iconic Open New Window function pop-up when you right click on the icon menu in the taskbar/dock. See this question for more info on this kind of question.
Places I have looked but found nothing:
https://www.tcl.tk/man/tcl8.5/TkCmd/tk_mac.html#M15
https://pyinstaller.org/en/stable/feature-notes.html#open-event-handling-in-a-tkinter-based-gui-application
While there are a tiny subset of apple events that you can benefit from the DockMenu is not accessible directly via tkinter. Turns out mac is not really open for modifications and even smaller tasks can be hard. You could consider to use a system tray icon instead.

Qt Designer / PyQt - dynamically duplicate a tab widget with embedded widgets intact

I have C# experience, and I'm making my first Python app. I'm part way done the UI in QT Designer, and soon I'll try PyQt to integrate it with my code. This is a general guidance question for best approach.
I have a tab widget containing various things in each tab. I would like the entire tab widget to be duplicatable with a plus button. So basically, a scroll view containing as many of these tab widgets as the user wants. The user could duplicate an existing one as a new instance, or create a blank one.
Could someone please help me understand how to accomplish this? Does it work like this?
Create the scroll view.
Put the tab widget inside the scroll view.
Add duplicate and delete buttons in the corner of the tab widget.
Put a plus button just outside the scroll view.
Accomplish all of the rest via python code? Or would I be missing out on some Qt Designer tricks?
Any tips on how to do this in QT Designer and also coding in PyQt would be appreciated.
Additionally, perhaps off topic, but any general tips on PyQt installation and usage would be nice. v5 not v4? I'm running Python 3.6 32 bit, which I was told should run 3.5 packages fine (but 64 bit may not).
Thanks,
First the out of topic : use PyQt5 if you start a new project. Qt 4 has reached end of life and won't see any new release unless it's a critical security fix.
As for most of your questions: if you want to use Designer then you should start by taking a look at Qt Designer's documentation. It will get you started nicely.
As for 5, it depends on tastes. Developers have been using both for various reasons. It's really up to you decide which style fits your needs best. There's no tricks in designer that you can't accomplish in code.

easygui CLOSE button (on top right of window) not functioning

i have created a chat system in python, using easygui for graphical user interface.
there are minimize,maximize and close button on top right of window,but the close button is not functioning at all.i just can use the exit button which i created to close the application. i had some search and found there is a problem with easygui, so is it totally impossible to fix this problem? or how can i remove that close button from top right as there is no use for it. its final year project and i'm afraid my advisor and supervisor want try that button and i lose mark because of no function
is there anyway to fix it or at least remove that close button?
This is likely past the due date for your assignment...sorry. But, that was a known limitation of easygui. An up-to-date version with a fix for that will be released soon. If you can't wait, you can take a look at it in development form: https://github.com/robertlugg/easygui

GUI programing with WxPython, drag and drop problems

I would like to begin by thanking you all for taking time to try and help me out. For my dissertation project I have decided to make a network topology program (similar to somthing like Cisco packet tracer or GNS3) My program also has the added benifit of a subnet calculator. I have the basic layout complete and I feel rather confident that I will definitly complete this program, but due to a lack of information on the web regarding wxPythons drag and drop feature, I cant find anything which is specific to what I need.
What I would like is a column, or some sort of area within my frame that the user is able to select things like routers, switchs, servers, IP phones and hosts etc etc. They then have the ability to drag these network items from the column onto the topology area. They should then be able to double click the item and a new form pop up. the user can then give the item an ip address etc etc.
Please do not think I am asking for someone todo this for me, I am simply wondering if someone could help me out by suggesting wxPython tools that could suit the needs that I have stated. If anyone has had experience with this kind of thing then please could you shed some light on it for me. I would be more than happy to produce my code online if you should need to see it.
Thank you in advance for your time.
There are Drag and Drop examples in the wxPython demo. Also see http://wiki.wxpython.org/DragAndDrop or http://zetcode.com/wxpython/draganddrop/
Depending on how you're displaying your information in the topology area will decide how to make double-click function. For the most part, you either bind to the widget's double-click event or it's selection event and act accordingly in its handler to display the dialog or frame. When you can tell us what widget we're double-clicking on is when we'll be better able to answer that question.

highlighting a window in GNOME's window list

In order to indicate activity, some applications (e.g. Pidgin) highlight their entry in GNOME's Window List panel widget (e.g. via bold font or flashing color). This indication is reset automatically when the window is activated.
I have a terminal application for which I would like to achieve the same thing (preferably via Perl, but Python would work too) - but I have no idea where to start. I imagine I'd first have to find the terminal window (based on window title) and then trigger some kind of GTK action.
Any help would be greatly appreciated!
In a GTK application, use gtk_window_set_urgency_hint(). If you have a terminal application, you can't really do that - with libwnck you can get information about other application's windows, but as far as I know you can't get a GtkWindow pointer to another application's window.
May I suggest using the terminal beep? Of course this isn't a sure way to attract the user's attention, but some terminals are able to flash the title bar instead of beeping, or such things.
I'm not really into GTK programming, but as far as i know you want to set an "URGENT"-Flag for the Window which should be highlighted. Maybe this will get you any further. :)

Categories

Resources