473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

mac dashboad

How do I hang an app off the mac dashboard?

The goal is a python version of Weatherbug.

something like:
read xml data from a URL,
display some numbers,
mouse over shows more details

Carl K
Dec 21 '07 #1
5 1004
On Dec 21, 12:37 pm, Carl K <c...@personnelware.comwrote:
How do I hang an app off the mac dashboard?

The goal is a python version of Weatherbug.

something like:
read xml data from a URL,
display some numbers,
mouse over shows more details

Carl K
What is the dashboard - is it anything like the taskbar in windows/
Gnome? If it is, take a look at this:

http://www.wxwidgets.org/manuals/2.6...skbaricon.html
Dec 21 '07 #2
ianaré wrote:
On Dec 21, 12:37 pm, Carl K <c...@personnelware.comwrote:
>How do I hang an app off the mac dashboard?

The goal is a python version of Weatherbug.

something like:
read xml data from a URL,
display some numbers,
mouse over shows more details

Carl K

What is the dashboard - is it anything like the taskbar in windows/
Gnome? If it is, take a look at this:

http://www.wxwidgets.org/manuals/2.6...skbaricon.html
Yes. But I don't want to rely on wx - trying to use just native mac python
(whatever they ship with)

Carl K

Dec 21 '07 #3
Carl K wrote:
Yes. But I don't want to rely on wx - trying to use just native mac python
(whatever they ship with)

Since OSX 10.4, Mac ships with wxPython installed.
Paul

--
http://paulmcnett.com
Dec 21 '07 #4
On Dec 21, 2007 3:25 PM, Carl K <ca**@personnelware.comwrote:
ianaré wrote:
On Dec 21, 12:37 pm, Carl K <c...@personnelware.comwrote:
How do I hang an app off the mac dashboard?

The goal is a python version of Weatherbug.

something like:
read xml data from a URL,
display some numbers,
mouse over shows more details

Carl K
What is the dashboard - is it anything like the taskbar in windows/
Gnome? If it is, take a look at this:

http://www.wxwidgets.org/manuals/2.6...skbaricon.html

Yes. But I don't want to rely on wx - trying to use just native mac python
(whatever they ship with)

Dashboard widgets are written using HTML and Javascript. They are
rendered by a WebKit instance which, as far as I know, has no
mechanism for Python scripting. Unless it does, you can't write a
widget in Python, and even so you wouldn't use wx (or any other GUI
toolkit) to do so - your display medium is HTML and the Canvas object.
There's lots of articles on developer.apple.com about writing
Dashboard widgets.
Dec 21 '07 #5
Chris Mellon wrote:
On Dec 21, 2007 3:25 PM, Carl K <ca**@personnelware.comwrote:
>ianaré wrote:
>>On Dec 21, 12:37 pm, Carl K <c...@personnelware.comwrote:
How do I hang an app off the mac dashboard?

The goal is a python version of Weatherbug.

something like:
read xml data from a URL,
display some numbers,
mouse over shows more details

Carl K
What is the dashboard - is it anything like the taskbar in windows/
Gnome? If it is, take a look at this:

http://www.wxwidgets.org/manuals/2.6...skbaricon.html
Yes. But I don't want to rely on wx - trying to use just native mac python
(whatever they ship with)


Dashboard widgets are written using HTML and Javascript. They are
rendered by a WebKit instance which, as far as I know, has no
mechanism for Python scripting. Unless it does, you can't write a
widget in Python, and even so you wouldn't use wx (or any other GUI
toolkit) to do so - your display medium is HTML and the Canvas object.
There's lots of articles on developer.apple.com about writing
Dashboard widgets.
bah. takes the fun out of it.

Thanks,
Carl K
Dec 21 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.