Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51348 > unrolled thread
| Started by | Devyn Collier Johnson <devyncjohnson@gmail.com> |
|---|---|
| First post | 2013-07-27 08:22 -0400 |
| Last post | 2013-07-27 13:03 -0400 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Cross-Platform Python3 Equivalent to notify-send Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-27 08:22 -0400
Re: Cross-Platform Python3 Equivalent to notify-send Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-27 15:59 +0000
Re: Cross-Platform Python3 Equivalent to notify-send Chris Angelico <rosuav@gmail.com> - 2013-07-27 17:06 +0100
Re: Cross-Platform Python3 Equivalent to notify-send Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-27 13:03 -0400
| From | Devyn Collier Johnson <devyncjohnson@gmail.com> |
|---|---|
| Date | 2013-07-27 08:22 -0400 |
| Subject | Re: Cross-Platform Python3 Equivalent to notify-send |
| Message-ID | <mailman.5165.1374927727.3114.python-list@python.org> |
On 07/27/2013 07:30 AM, Chris “Kwpolska” Warrick wrote: > On Sat, Jul 27, 2013 at 12:58 PM, Devyn Collier Johnson > <devyncjohnson@gmail.com> wrote: >> Linux systems with the proper software can use the "notify-send" command. Is >> there a cross-platform Python3 equivalent? >> >> Mahalo, >> >> Devyn Collier Johnson >> DevynCJohnson@Gmail.com >> -- >> http://mail.python.org/mailman/listinfo/python-list > You already asked this on Thursday. And the answer is probably “no”. Creating > > Under X11-based systems, you would have to call the dbus notification > APIs and pray that the user has something to handle it running (KDE, > GNOME Shell, XFCE4’s notification daemon). Under Mac OS X 10.7 and > further, you need to work with some system APIs, and that may not be > easy, but possible (eg. https://github.com/alloy/terminal-notifier for > Ruby). > > But Windows? GOOD LUCK! The following options exist, none of which > is easy to implement, and one of which is not usable with most > clients: > > a) Toast Notifications in Windows 8/Server 2012, which is not a > popular platform and may require quite a lot of magic in terms of > coding and else (VS2012); > b) Create a tray icon and do a balloon (2000 and up?, definitely in XP); > c) Create your very own Windows toast notifications framework. > That really sucks. I was hoping Python had some way of doing that. All that it needs to do is display a little box at one of the corners of the screen. I thought someone would have implemented something by now. Thank you anyway. Mahalo, DCJ
[toc] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-07-27 15:59 +0000 |
| Message-ID | <51f3ee66$0$29971$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #51348 |
On Sat, 27 Jul 2013 08:22:00 -0400, Devyn Collier Johnson wrote: > On 07/27/2013 07:30 AM, Chris “Kwpolska” Warrick wrote: >> On Sat, Jul 27, 2013 at 12:58 PM, Devyn Collier Johnson >> <devyncjohnson@gmail.com> wrote: >>> Linux systems with the proper software can use the "notify-send" >>> command. Is there a cross-platform Python3 equivalent? [snip answer "no"] > That really sucks. I was hoping Python had some way of doing that. All > that it needs to do is display a little box at one of the corners of the > screen. I thought someone would have implemented something by now. Thank > you anyway. If it's that simple, how about you do it? Won't take you more than, oh, ten minutes, right? *wink* Don't underestimate the difficulty of "trivial" code when it has to work on two dozens different platforms with different capabilities: Windows XP, 2000, Vista, 7, 8 ... Mac OS-X FreeBSD, OpenBSD, Linux, running KDE (3 or 4?), Gnome (2 or 3?), Trinity, RatPoison, XFCE, something else... or no window manager at all -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-07-27 17:06 +0100 |
| Message-ID | <mailman.5178.1374941164.3114.python-list@python.org> |
| In reply to | #51364 |
On Sat, Jul 27, 2013 at 4:59 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Sat, 27 Jul 2013 08:22:00 -0400, Devyn Collier Johnson wrote: >> That really sucks. I was hoping Python had some way of doing that. All >> that it needs to do is display a little box at one of the corners of the >> screen. I thought someone would have implemented something by now. Thank >> you anyway. > > If it's that simple, how about you do it? Won't take you more than, oh, > ten minutes, right? > > *wink* > > Don't underestimate the difficulty of "trivial" code when it has to work > on two dozens different platforms with different capabilities That doesn't mean the question shouldn't be asked, of course. Steven isn't (at least, I don't think he is!) scorning you for asking. Sometimes the response is quite the opposite - that it's so utterly trivial that there's no NEED for a library function! Never hurts to throw the question out there... ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Devyn Collier Johnson <devyncjohnson@gmail.com> |
|---|---|
| Date | 2013-07-27 13:03 -0400 |
| Message-ID | <mailman.5182.1374944642.3114.python-list@python.org> |
| In reply to | #51364 |
On 07/27/2013 12:06 PM, Chris Angelico wrote: > On Sat, Jul 27, 2013 at 4:59 PM, Steven D'Aprano > <steve+comp.lang.python@pearwood.info> wrote: >> On Sat, 27 Jul 2013 08:22:00 -0400, Devyn Collier Johnson wrote: >>> That really sucks. I was hoping Python had some way of doing that. All >>> that it needs to do is display a little box at one of the corners of the >>> screen. I thought someone would have implemented something by now. Thank >>> you anyway. >> If it's that simple, how about you do it? Won't take you more than, oh, >> ten minutes, right? >> >> *wink* >> >> Don't underestimate the difficulty of "trivial" code when it has to work >> on two dozens different platforms with different capabilities > That doesn't mean the question shouldn't be asked, of course. Steven > isn't (at least, I don't think he is!) scorning you for asking. > Sometimes the response is quite the opposite - that it's so utterly > trivial that there's no NEED for a library function! Never hurts to > throw the question out there... > > ChrisA I wanted to make a module (boash) that would be useful, but clearly it is not. Here, is a feature that is useful that no one has. This may be the module I decide to make. So, there is no cross-platform for such a command any where? Would this be a useful module? I know Steven is not scorning me. He is making me think and I have an idea. Mahalo, DCJ
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web