fixed the star issue ;)
git-svn-id: http://www.neo1973-germany.de/svn@106 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
97b8bdf84e
commit
75cfd64932
3 changed files with 8 additions and 5 deletions
|
@ -272,9 +272,9 @@ collections {
|
||||||
}
|
}
|
||||||
text {
|
text {
|
||||||
text: "testmode";
|
text: "testmode";
|
||||||
size: 18;
|
size: 28;
|
||||||
font: "Sans:style=Bold,Edje-Vera";
|
font: "Sans:style=Bold,Edje-Vera";
|
||||||
fit: 1 1;
|
fit: 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -114,7 +114,7 @@ class MainScreen(EdjeGroup):
|
||||||
@edje.decorators.signal_callback("dialer_send", "*")
|
@edje.decorators.signal_callback("dialer_send", "*")
|
||||||
def on_edje_signal_numberkey_triggered(self, emission, source):
|
def on_edje_signal_numberkey_triggered(self, emission, source):
|
||||||
if self.res['code'] != 'READY':
|
if self.res['code'] != 'READY':
|
||||||
if len(self.text) < 4 and '0'.isdigit():
|
if len(self.text) < 4 and source in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"):
|
||||||
self.text.append(source)
|
self.text.append(source)
|
||||||
print ''.join(self.text)
|
print ''.join(self.text)
|
||||||
self.part_text_set("numberdisplay_text", '*' * len(self.text))
|
self.part_text_set("numberdisplay_text", '*' * len(self.text))
|
||||||
|
@ -127,8 +127,11 @@ class MainScreen(EdjeGroup):
|
||||||
self.part_text_set("numberdisplay_text", "register ...")
|
self.part_text_set("numberdisplay_text", "register ...")
|
||||||
self.keyring.Open(''.join(self.text), dbus_interface=DIN_KEYRING, )
|
self.keyring.Open(''.join(self.text), dbus_interface=DIN_KEYRING, )
|
||||||
self.nw_register()
|
self.nw_register()
|
||||||
else:
|
self.res = dedbusmap(self.keyring.GetOpened(dbus_interface=DIN_KEYRING))
|
||||||
if source in '0'.isdigit():
|
self.part_text_set("numberdisplay_text", "please dial")
|
||||||
|
self.text = []
|
||||||
|
else:
|
||||||
|
if source in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#", "*"):
|
||||||
self.text.append(source)
|
self.text.append(source)
|
||||||
print ''.join(self.text)
|
print ''.join(self.text)
|
||||||
self.part_text_set("numberdisplay_text", "".join(self.text))
|
self.part_text_set("numberdisplay_text", "".join(self.text))
|
||||||
|
|
Loading…
Reference in a new issue