View Single Post
Posts: 6 | Thanked: 2 times | Joined on Feb 2011
#507
Hello everyone, alarmed gives some errors for me.
I'm not a python programmer and don't really know what I'm doing, but I nevertheless I twiddled with the source

I have Version: 0.2.0-2 and 21.2011.38-1Tmaemo1.2 running.
Starting alarmed it segfaults, if I change in /opt/alarmed/alarmed_gui.py the lines

Code:
from PySide import QtCore, QtGui, QtMaemo5
#from PyQt4 import QtCore, QtGui
to
Code:
#from PySide import QtCore, QtGui, QtMaemo5
from PyQt4 import QtCore, QtGui
It starts and pops up the GUI.

Clicking a button brings this error though:
Code:
QLayout: Attempting to add QLayout "" to AlarmedGUI "", which already has a layout
QLayout: Attempting to add QLayout "" to AlarmedGUI "", which already has a layout
QLayout: Attempting to add QLayout "" to AlarmedGUI "", which already has a layout
QLayout: Attempting to add QLayout "" to AlarmedGUI "", which already has a layout
Traceback (most recent call last):
  File "./alarmed_gui.py", line 163, in openEventDialog
    self.datePicker = QtMaemo5.QMaemo5ValueButton("Date")
NameError: global name 'QtMaemo5' is not defined
If I change that to
Code:
#from PySide import QtCore, QtGui, QtMaemo5
#from PyQt4 import QtCore, QtGui
from PyQt4 import QtCore, QtGui, QtMaemo5
I can call the "add event" mask.

Apparantly storing worked, but the GUI won't come up any more:

Nokia-N900:/opt/alarmed# ./alarmed.py
:: Starting alarmed GUI
Traceback (most recent call last):
File "./alarmed.py", line 91, in <module>
import alarmed_gui
File "/opt/alarmed/alarmed_gui.py", line 711, in <module>
widget = AlarmedGUI()
File "/opt/alarmed/alarmed_gui.py", line 44, in __init__
self.addEventToList(eventInfo)
File "/opt/alarmed/alarmed_gui.py", line 60, in addEventToList
newEventTitle, newEventContent = alarmed_backend.generateEventString(eventInfo)
File "/opt/alarmed/alarmed_backend.py", line 197, in generateEventString
days + " at " + dt.strftime("%H:%M") + ":")
AttributeError: 'QString' object has no attribute 'lower'
What's wrong?
 

The Following User Says Thank You to Mummelnase For This Useful Post: