![]() |
2010-05-05
, 04:12
|
|
Posts: 7 |
Thanked: 35 times |
Joined on Dec 2009
@ Russia-Moscow
|
#102
|
![]() |
2010-05-05
, 04:13
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#103
|
for me doesnt work with +48xxxxx and all numbers I have in my adress book are with with country prefix. with 0xxxx works fine
I even can't correct that number which was taken from the book
![]() |
2010-05-05
, 09:05
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#104
|
![]() |
2010-05-05
, 14:39
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#105
|
--- vertsms.py.1 2010-05-04 21:30:01.000000000 +0100 +++ vertsms.py 2010-05-05 15:35:34.000000000 +0100 @@ -330,6 +330,9 @@ sms.send() # sms.print_pdustring() +def backspace_tap_and_hold(widget): + buffer.delete(buffer.get_start_iter(), buffer.get_end_iter()) + def main(): program = hildon.Program.get_instance() program.add_window(window) @@ -440,8 +443,11 @@ table.attach(button_0, 1, 2, 7, 8) table.attach(button_pound, 2, 3, 7, 8) + button_back.tap_and_hold_setup(None, None, 0) + button_send.connect("clicked", send) button_back.connect("clicked", backspace) + button_back.connect("tap-and-hold", backspace_tap_and_hold) button_to.connect("clicked", addrbook) button_1.connect("clicked", number_pressed) button_2.connect("clicked", number_pressed)
The Following 3 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-05
, 15:26
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#106
|
![]() |
2010-05-05
, 15:34
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#107
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-05
, 15:46
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#108
|
One last thing:
This patch will delete all of the message text when the backspace is held down. This is somewhat reminiscent of my SE's behaviour, however, I think that people would prefer to have the text deleted character by character when the button is held down so I leave this here for "educational" purposes...Code:--- vertsms.py.1 2010-05-04 21:30:01.000000000 +0100 +++ vertsms.py 2010-05-05 15:35:34.000000000 +0100 @@ -330,6 +330,9 @@ sms.send() # sms.print_pdustring() +def backspace_tap_and_hold(widget): + buffer.delete(buffer.get_start_iter(), buffer.get_end_iter()) + def main(): program = hildon.Program.get_instance() program.add_window(window) @@ -440,8 +443,11 @@ table.attach(button_0, 1, 2, 7, 8) table.attach(button_pound, 2, 3, 7, 8) + button_back.tap_and_hold_setup(None, None, 0) + button_send.connect("clicked", send) button_back.connect("clicked", backspace) + button_back.connect("tap-and-hold", backspace_tap_and_hold) button_to.connect("clicked", addrbook) button_1.connect("clicked", number_pressed) button_2.connect("clicked", number_pressed)
The Following User Says Thank You to ossipena For This Useful Post: | ||
![]() |
2010-05-05
, 15:46
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#109
|
My name shouldn't be there (my contributions pale in comparision to aspidites'); please leave it out.
Also, personal preference, but I really like thp's HeAboutDialog (a Python version can be found in the gPodder tarball).
def backspace_tap_and_hold(widget): buffer.delete(buffer.get_start_iter(), buffer.get_end_iter())
def create_menu(label): menu = hildon.AppMenu() for i in xrange(1, 6): # Clear all button clearall = hildon.GtkButton(gtk.HILDON_SIZE_AUTO) command_id = "Clear all" clearall.set_label(command_id) clearall.connect("clicked", backspace_tap_and_hold, label) menu.append(clearall) # About button aboutbutton = hildon.GtkButton(gtk.HILDON_SIZE_AUTO) command_id = "About" aboutbutton.set_label(command_id) aboutbutton.connect("clicked", about, label) menu.append(aboutbutton)
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-05-05
, 15:53
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#110
|
do you know how that tap and hold function works? does its execution stop as soon as pressing is stopped? if not how can I get signal for stopping the deletion char by char?
I'll have a look at that in a bit.
My patch above is a bit primitive, had a look at the wiki and I think I got it
I realize I still have a long way ahead of me before I start understanding all this python stuff
The Following 2 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
Tags |
portrait sms, python |
|
http://talk.maemo.org/showthread.php?p=643862
please put your feature request etc there, and all beneath the surface -stuff (code snippets etc) here.
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search