- add simple lcd support
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 1 Sep 2005 00:40:20 +0000 (00:40 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 1 Sep 2005 00:40:20 +0000 (00:40 +0000)
lib/python/enigma_python.i
main/enigma.cpp

index 3e6c5db..1ec3975 100644 (file)
@@ -72,6 +72,7 @@ is usually caused by not marking PSignals as immutable.
 
 extern void runMainloop();
 extern void quitMainloop();
+extern void setLCD(const char *c);
 
 extern PSignal1<void,int> &keyPressedSignal();
 %}
@@ -187,6 +188,7 @@ public:
 
 void runMainloop();
 void quitMainloop();
+void setLCD(const char*);
 %immutable keyPressed;
 PSignal1<void,int> &keyPressedSignal();
 
index 4144742..46ffccc 100644 (file)
@@ -139,6 +139,7 @@ public:
 
 /************************************************/
 
+eLabel *lcd_label;
 
 int main(int argc, char **argv)
 {
@@ -205,7 +206,7 @@ int main(int argc, char **argv)
        lcd_win->move(ePoint(0, 0));
        lcd_win->resize(eSize(132, 64));
        
-       eLabel *lcd_label = new eLabel(lcd_win);
+       lcd_label = new eLabel(lcd_win);
        lcd_label->move(ePoint(0, 0));
        lcd_label->resize(eSize(132, 64));
        lcd_label->setText("bla bla bla, this lcd\nSUCKS!");
@@ -237,3 +238,8 @@ void quitMainloop()
 {
        eApp->quit(0);
 }
+
+void setLCD(const char *string)
+{
+       lcd_label->setText(string);
+}