-
Notifications
You must be signed in to change notification settings - Fork 2
/
hql_map_viewer.py
55 lines (43 loc) · 1.86 KB
/
hql_map_viewer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
/***************************************************************************
Heroquest's Legends Solo by Mandor the Druid
-------------------
begin : 2021-01-02
copyright : (C) 2021 by Luca Mandolesi
email : mandoluca at gmail.com
version : 0.91 ALPHA
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from __future__ import absolute_import
from builtins import range
from PyQt5.QtWidgets import QApplication, QDialog, QMessageBox, QTableWidgetItem
from PyQt5.uic import loadUiType
from delegateComboBox import ComboBoxDelegate
import os
import sqlite3
MAIN_DIALOG_CLASS, _ = loadUiType(os.path.join(os.path.dirname(__file__), 'hq_map.ui'))
class HQL_MAP(QDialog, MAIN_DIALOG_CLASS):
TYPE_ORDER = ""
DICT = ""
CONNECTION = sqlite3.connect('./db_heroquest_legends.sqlite')
CURSOR = CONNECTION.cursor()
OPTION_SAVE = 1
def __init__(self, parent=None, db=None):
QDialog.__init__(self, parent)
self.setupUi(self)
if __name__ == '__main__':
import sys
a = QApplication(sys.argv)
dlg = HQL_MAP()
dlg.show()
sys.exit(a.exec_())