The Following 2 Users Say Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-05-28
, 07:31
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#232
|
![]() |
2010-05-28
, 10:24
|
Posts: 71 |
Thanked: 29 times |
Joined on Nov 2009
|
#233
|
What does the output of that (in terminal) say?Code:python /opt/vertsms/vertsms_gui.pyc
![]() |
2010-05-28
, 10:43
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#234
|
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-05-28
, 11:28
|
Posts: 71 |
Thanked: 29 times |
Joined on Nov 2009
|
#235
|
![]() |
2010-05-28
, 11:30
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#236
|
![]() |
2010-05-28
, 12:21
|
Posts: 71 |
Thanked: 29 times |
Joined on Nov 2009
|
#237
|
![]() |
2010-05-28
, 14:22
|
Posts: 398 |
Thanked: 301 times |
Joined on Sep 2007
@ Texas
|
#238
|
connection = sqlite3.connect(os.path.join(os.environ['HOME'], '.rtcom-eventlogger', 'el.db')) cursor = connection.cursor() cursor.execute('SELECT id FROM Events') id_array = cursor.fetchall() seq_id = max(id_array)[0] + 1
![]() |
2010-05-28
, 15:53
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#239
|
You don't even need to import glib or gobject for the code you have in sms.py.
And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.
Yes I've been reusing your code in an application that I work on.Code:connection = sqlite3.connect(os.path.join(os.environ['HOME'], '.rtcom-eventlogger', 'el.db')) cursor = connection.cursor() cursor.execute('SELECT id FROM Events') id_array = cursor.fetchall() seq_id = max(id_array)[0] + 1
Frank
![]() |
2010-05-30
, 19:01
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#240
|
![]() |
Tags |
portrait sms, python |
Thread Tools | |
|
I only maintain the package itself.