Skip to content

Commit

Permalink
fixed color of users in chatroom
Browse files Browse the repository at this point in the history
  • Loading branch information
reillychase committed Nov 6, 2017
1 parent 83ed1fe commit d9f3553
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 26 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
A cross platform PvPGN chatbot written in Python/PyQT4, uses PvPGN's bot/telnet protocol

## Install Instructions
- Install Python 2.7
- Install PyQT4
Install Python 2.7
Install PyQT4

### PyQT4 for Windows

If you have x86 Python 2.7, install x86 PyQT4:

https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x32.exe/download

If you have x64 Python 2.7, install x64 PyQT4
Link to Windows exe for PyQT4 x64:

https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.4/PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x64.exe/download


### PyQT4 for Ubuntu

Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def __init__(self):
def game_type_changed(self):
game_type = str(self.combo_game_type.currentText()).lower()
self.list_games.clear()
print 'runnnnnnnnnnnnnnnnnnnnnnnnnn'
print game_type
for game in self.games:
if game[2] == game_type:
Expand Down
Binary file added resources_rc.pyc
Binary file not shown.
19 changes: 7 additions & 12 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

# Form implementation generated from reading ui file 'warchatter.ui'
#
# Created: Mon Nov 7 11:35:51 2016
# by: PyQt4 UI code generator 4.10.4
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

Expand All @@ -30,15 +29,14 @@ def setupUi(self, MainWindow):
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.stackedWidget = QtGui.QStackedWidget(self.centralwidget)
self.stackedWidget.setGeometry(QtCore.QRect(10, 0, 791, 561))
self.stackedWidget.setGeometry(QtCore.QRect(10, 0, 801, 561))
self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
self.page_login = QtGui.QWidget()
self.page_login.setObjectName(_fromUtf8("page_login"))
self.verticalLayoutWidget_4 = QtGui.QWidget(self.page_login)
self.verticalLayoutWidget_4.setGeometry(QtCore.QRect(10, 20, 781, 531))
self.verticalLayoutWidget_4.setObjectName(_fromUtf8("verticalLayoutWidget_4"))
self.verticalLayout_5 = QtGui.QVBoxLayout(self.verticalLayoutWidget_4)
self.verticalLayout_5.setMargin(0)
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.label_3 = QtGui.QLabel(self.verticalLayoutWidget_4)
self.label_3.setObjectName(_fromUtf8("label_3"))
Expand Down Expand Up @@ -91,7 +89,6 @@ def setupUi(self, MainWindow):
self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 20, 781, 541))
self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
Expand Down Expand Up @@ -140,7 +137,8 @@ def setupUi(self, MainWindow):
self.list_users.setSizePolicy(sizePolicy)
self.list_users.setMinimumSize(QtCore.QSize(175, 0))
self.list_users.setMaximumSize(QtCore.QSize(175, 16777215))
self.list_users.setStyleSheet(_fromUtf8("background-color: black;"))
self.list_users.setAutoFillBackground(False)
self.list_users.setStyleSheet(_fromUtf8("background-color: black; color: white"))
self.list_users.setObjectName(_fromUtf8("list_users"))
self.horizontalLayout_3.addWidget(self.list_users)
self.verticalLayout.addLayout(self.horizontalLayout_3)
Expand All @@ -163,7 +161,6 @@ def setupUi(self, MainWindow):
self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 20, 781, 541))
self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
self.verticalLayout_10 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_10.setMargin(0)
self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
Expand Down Expand Up @@ -242,7 +239,6 @@ def setupUi(self, MainWindow):
self.verticalLayoutWidget_5.setGeometry(QtCore.QRect(0, 20, 781, 541))
self.verticalLayoutWidget_5.setObjectName(_fromUtf8("verticalLayoutWidget_5"))
self.verticalLayout_12 = QtGui.QVBoxLayout(self.verticalLayoutWidget_5)
self.verticalLayout_12.setMargin(0)
self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
self.horizontalLayout_8 = QtGui.QHBoxLayout()
self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
Expand Down Expand Up @@ -376,7 +372,6 @@ def setupUi(self, MainWindow):
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(0, 20, 781, 541))
self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setMargin(0)
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.horizontalLayout_16 = QtGui.QHBoxLayout()
self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16"))
Expand Down Expand Up @@ -435,7 +430,7 @@ def setupUi(self, MainWindow):
self.stackedWidget.addWidget(self.page_channels)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 808, 23))
self.menubar.setGeometry(QtCore.QRect(0, 0, 808, 21))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
Expand Down Expand Up @@ -469,8 +464,8 @@ def retranslateUi(self, MainWindow):
self.textedit_chat.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\" bgcolor=\"#000000\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\" bgcolor=\"#000000\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Droid Sans\'; font-size:9pt;\"><br /></p></body></html>", None))
self.button_send.setText(_translate("MainWindow", "Send", None))
self.button_whisper.setText(_translate("MainWindow", "Whisper", None))
self.label_2.setText(_translate("MainWindow", "<html><head/><body><p><img src=\":/warchatter/warchatter.png\"/></p></body></html>", None))
Expand Down
Binary file added ui.pyc
Binary file not shown.
13 changes: 8 additions & 5 deletions warchatter.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<rect>
<x>10</x>
<y>0</y>
<width>791</width>
<width>801</width>
<height>561</height>
</rect>
</property>
Expand Down Expand Up @@ -272,8 +272,8 @@
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Droid Sans'; font-size:9pt; font-weight:400; font-style:normal;&quot; bgcolor=&quot;#000000&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;&quot; bgcolor=&quot;#000000&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Droid Sans'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
Expand All @@ -300,8 +300,11 @@ p, li { white-space: pre-wrap; }
<height>16777215</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: black;</string>
<string notr="true">background-color: black; color: white</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -970,7 +973,7 @@ p, li { white-space: pre-wrap; }
<x>0</x>
<y>0</y>
<width>808</width>
<height>23</height>
<height>21</height>
</rect>
</property>
</widget>
Expand Down

0 comments on commit d9f3553

Please sign in to comment.