m0sia / pyParrotZik

Python Parrot Zik API and tools
73 stars 30 forks source link

app broken on Ubuntu (regression) #3

Closed pascalchevrel closed 10 years ago

pascalchevrel commented 10 years ago

Hi,

The app is broken for me since this commit: commit b34909762b01d174d3140e000537d84ed0f1042a Author: Dmitry Moiseev m0sia@m0sia.ru Date: Thu Jan 9 01:17:36 2014 -0800 Native OS X system indicator using PyObjC

The error message is: ./ParrotZikTray Traceback (most recent call last): File "./ParrotZikTray", line 9, in from SysIndicator import * File "/home/pascalc/applis/pyParrotZik/SysIndicator.py", line 17, in class StatusApp(NSApplication): NameError: name 'NSApplication' is not defined

I am on ubuntu 13.10

Pascal

pascalchevrel commented 10 years ago

It seems that the class StatusApp is MacOS specific and should be part of the {elif sys.platform=="darwin":} statement, at least it works for me if I just indent it to be part of the elif block but I am not a Python developer

m0sia commented 10 years ago

Sorry about that. I moved it to separate file in latest commit. I am not a python developer either.)

pascalchevrel commented 10 years ago

No problem and thanks for your app, it's very useful to me!