Pyqt Xml Documentelement

dangling else trap, not possible, 48 data containers, 235 data dictionary; see dict type data()

QAbstractItemModel, 414,427,428, 429,430,433,438,441,462,481, 487,488,489, 491, 496, 503 QAction, 172, 393, 395 QMimeData, 315, 316

QTableWidgetItem, 422 data stream; see QDataStream data structures; see diet type, list type, and tuple type database forms; see QDataWidgetMap-

per and QSqlTableModel database() (QSqlDatabase),465,468, 469

database queries; see QSqlQuery and

SQL statements databases connecting to, 446 data types, 447 drill-down, 467 drivers, 445 foreign keys, 455-457 in-memory, 446 master-detail forms, 458, 464, 469

prepared queries, 447 SELECT statements, 449-451 stored procedures, 448 transactions, 465-466,468 see also SQL statements dataChanged() signal (QAbstractltem-

Model), 431,432, 478 date formats, 250, 258 date() (QDateTimeEdit), 487 dates; see QDate and QDateTime dateTime() (QDateTime), 455 DB2 database, 445 Decimal class (decimal), 17-20 decorations, window, 112 decorators, 85-86,218, 219 deepcopy() (copy), 34,83 deeply nested loops, 69 def statement, 55, 62-63, 77 default arguments, 56 defaultdict type (collections), 529, 532, 545 base class, diet del statement, 32, 355, 359, 361, 372, 556

delegates; see custom delegates and

QltemDelegate deleteLater() (QObject),287, 531, 539, 544

deleting; see del statement, delete-Later(), garbage-collection, and remove()

deleting windows, automatically, 156, 284,286

destroyed() signal (QObject), 286, 288

destructors, 78

device coordinates; see viewport coordinates device() (QDataStream), 525, 533 dial; see QDial dialog buttons; see QDialogButtonBox and QPushButton dialogs, 145

closing, 118,121 hiding, 118,121,160 modal, 140,142,511 modeless, 140, 155 showing, 160 see also QDialog dicttype,35-36, 51-53, 93 clear(), 36, 98

get(), 36, 95,420, 532, 541, 551 has_key(), 96 items(), 36, 52,97

iterating, by keys, 50 iteritems() ,53, 97, 98 iterkeys(), 53, 97 itervalues(), 53,97 keys(),36,51,52 pop(), 36, 96 popitem(), 96 remove(), 95, 532, 543

diet type (cont.)

see also defaultdict type and OrderedDict example class difference!) (set),38 dir(), 39,40

dirty flag, 168,187,192,232, 356,

361, 362, 364, 365, 422,425,431 disabling widgets and actions, 219,

274, 385 discard() (set), 38 disconnect!) (QObject), 130 division (/ and //), 17, 84, 86, 91 divmod() ,40

dock window; see QDockWidget dock windows, 169-170 docstrings, 57, 77, 105 doctest module, 105-107 document() (QTextEdit), 286,287, 383,

384, 385, 396 documentation, 27, 111 documentElement() (QDomDocument), 260

DOM parser, 259-262 done() (QDialog), 154, 457, 464 double-click; see mouseDoubleClick-

Event() double-quoted strings, 21 drag and drop, 312-317 drag icon, 316

dragEnterEvent() (QWidget), 309, 314, 316

dragMoveEvent() (QWidget), 309, 314,

315,316 drawArc() (QPainter), 344 drawChord() (QPainter), 344 drawContents() (QTextDocument), 438, 489

drawConvexPolygon() (QPainter), 344 drawEllipse() (QPainter), 344, 374, 377,481

drawImage() (QPainter), 344, 363, 400 drawLine() (QPainter), 338, 344 drawPath() (QPainter), 344, 377 drawPicture() (QPainter), 363

drawPie() (QPainter), 344 drawPixmap() (QPainter), 344, 363, 408

drawPoint() (QPainter), 344 drawPolygon() (QPainter), 338, 343, 344, 345

drawPolyline() (QPainter), 344, 345 drawRect() (QPainter), 337, 344, 368, 410

drawRoundRect() (QPainter), 344 drawText() (QPainter), 306, 338, 344,

408,410, 481 drill-down, 467 driver()

QSqlDatabase, 449 QSqlQuery, 450 drivers, for databases, 445 dropEvent() (QWidget), 309, 315, 316 DSU (decorate, sort, undecorate), 551

duck typing, 101,222,497 dump() (pickle/cPickle), 248 duplicated data, avoiding, 413 dynamic attributes, 78 dynamic function definitions, 62-63 dynamic menus; see menus and QMenu dynamic typing, 12, 13-15, 101

Was this article helpful?

0 0
Tuberminator

Tuberminator

The main focus of this report is to show how to get involved in video marketing on the run, how to rank quickly on YouTube and Google using FREE semi-automatic tools and services. QUICKLY AND FREE. I will show methods and techniques I use to rank my videos, as well as free resources and tools to make video clips, to get backlinks and free traffic.

Get My Free Ebook


Post a comment