|
1 | 1 | from PyQt5 import QtCore, QtWebSockets, QtNetwork |
2 | 2 | from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QLabel, QHBoxLayout, QVBoxLayout, QTableWidget, QTableWidgetItem, \ |
3 | 3 | QComboBox, QInputDialog, QMessageBox, QHeaderView, QPlainTextEdit, QStackedLayout, QLineEdit, QFileDialog |
4 | | -from PyQt5.QtCore import QSettings, QTimer |
5 | | -from PyQt5.QtGui import QColor |
| 4 | +from PyQt5.QtCore import QSettings, QTimer, QUrl |
| 5 | +from PyQt5.QtGui import QColor, QDesktopServices |
6 | 6 | from pyqtgraph import PlotWidget, ScatterPlotItem, mkBrush |
7 | 7 | import json |
8 | 8 | import uuid |
9 | 9 | import datetime |
10 | 10 | import socket |
11 | 11 |
|
12 | 12 | PORT = 65456 |
| 13 | +FEEDBACK_URL = QUrl('https://docs.google.com/forms/d/e/1FAIpQLSfJzt81GjENdARMeORSi-YV-yX-GoebSz8CVlZbWFcwDQQZGQ/viewform') |
13 | 14 |
|
14 | 15 | #TODO |
15 | 16 | # Notification when player uses a potion? subscribe to "ItemAcquired" or "ItemUsed" WON'T WORK! Only seems to work for your own items |
@@ -316,10 +317,16 @@ def __init__(self, settings, server): |
316 | 317 | self.disconnect_button.resize(self.disconnect_button.sizeHint()) |
317 | 318 | self.disconnect_button.clicked.connect(self.server.socket_disconnected) |
318 | 319 | col_left.addWidget(self.disconnect_button) |
319 | | - self.disconnect_button.setFixedWidth(140) |
320 | 320 |
|
321 | 321 | col_left.addStretch() |
322 | 322 |
|
| 323 | + self.feedback_button = QPushButton('Feedback/Bug report', self) |
| 324 | + self.feedback_button.resize(self.feedback_button.sizeHint()) |
| 325 | + self.feedback_button.clicked.connect(lambda: QDesktopServices.openUrl(FEEDBACK_URL)) |
| 326 | + col_left.addWidget(self.feedback_button) |
| 327 | + self.feedback_button.setFixedWidth(140) |
| 328 | + |
| 329 | + |
323 | 330 | # Middle Column: Roll/Register |
324 | 331 | self.classes_combo = QComboBox(self) |
325 | 332 | class_names = self.settings.value("class_names", []) |
|
0 commit comments