File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import textwrap
3434import debug
3535import random
36+ from sqlite3 import register_adapter
3637import string
3738from datetime import datetime , timedelta
3839from helper_ackPayload import genAckPayload
@@ -1328,6 +1329,10 @@ def _choose_ext(basename):
13281329
13291330 self ._player (soundFilename )
13301331
1332+ # Adapters and converters for QT <-> sqlite
1333+ def sqlInit (self ):
1334+ register_adapter (QtCore .QByteArray , str )
1335+
13311336 # Try init the distro specific appindicator,
13321337 # for example the Ubuntu MessagingMenu
13331338 def indicatorInit (self ):
@@ -4396,6 +4401,7 @@ def run():
43964401 app .setStyleSheet ("QStatusBar::item { border: 0px solid black }" )
43974402 myapp = MyForm ()
43984403
4404+ myapp .sqlInit ()
43994405 myapp .appIndicatorInit (app )
44004406 myapp .indicatorInit ()
44014407 myapp .notifierInit ()
You can’t perform that action at this time.
0 commit comments