Permalink
Browse files

dock windows. fixed image paths.

  • Loading branch information...
1 parent 3665c7b commit 3bace402840e98eb0d20d00b33eda8fb45dcacaf Your Name committed Dec 10, 2010
Showing with 18 additions and 9 deletions.
  1. +2 −2 hand2.py
  2. +16 −7 simpl.py
View
@@ -10,7 +10,7 @@
Jimithing34: posts big blind $10<br /> <br />
<b>Holecards</b><br />
-Dealt to <font color='green'>Hero</font> <img src='data/gfx/cards/nobus/51.png' /> <img src='data/gfx/cards/nobus/25.png' /><br />
+Dealt to <font color='green'>Hero</font> <img src='data/gfx/cards/nobus/Ad.png' /> <img src='data/gfx/cards/nobus/Ac.png' /><br />
<font color='red'>andy8004: raises $20 to $30</font><br />
Chisness: folds <br />
WizardOfAhhs: folds <br />
@@ -22,7 +22,7 @@
Drawingfishe: calls $70<br /> <br />
<b>Flop</b> (Pot : $310.00)<br />
-<img src='data/gfx/cards/nobus/0.png' /> <img src='data/gfx/cards/nobus/21.png' /> <img src='data/gfx/cards/nobus/35.png' /><br />
+<img src='data/gfx/cards/nobus/3c.png' /> <img src='data/gfx/cards/nobus/Qh.png' /> <img src='data/gfx/cards/nobus/Js.png' /><br />
<font color='green'>Hero</font><font color='red'>: bets $130</font><br />
andy8004: folds <br />
<font color='red'>Drawingfishe: raises $326.25 to $456.25 and is all-in</font><br />
View
@@ -39,19 +39,26 @@ def __init__(self):
buttonItem.addChild(buttonSubItem)
players.append(buttonItem)"""
+
playerList.addTopLevelItems(players)
playerNotesSplitter = QSplitter()
playerNotesSplitter.setOrientation(Qt.Vertical)
playerNotesSplitter.addWidget(playerList)
+ dock = QDockWidget(self.tr("Players"))
+ dock.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)
+ dock.setWidget(playerList)
+ self.addDockWidget(Qt.LeftDockWidgetArea, dock)
+
notesSection = QWidget()
- notesVbox = QVBoxLayout(notesSection)
- notesVbox.addWidget(QLabel('DrawingFishe'))
notes = QTextEdit()
notes.setHtml('This player is a <i>real</i> <b>donk</b>!<br /><h1>NEVER BLUFF HIM!!</h1>')
- notesVbox.addWidget(notes)
- playerNotesSplitter.addWidget(notesSection)
+
+ dock = QDockWidget(self.tr("Notes"))
+ dock.setAllowedAreas(Qt.LeftDockWidgetArea|Qt.RightDockWidgetArea)
+ dock.setWidget(notes)
+ self.addDockWidget(Qt.LeftDockWidgetArea, dock)
#handhist = QtWebKit.QWebView()
handhist = QTextEdit()
@@ -67,11 +74,11 @@ def __init__(self):
hbox.addStretch()
card = QLabel()
- image = QImage('data/gfx/cards/nobus/51.png')
+ image = QImage('data/gfx/cards/nobus/Ad.png')
card.setPixmap(QPixmap.fromImage(image))
hbox.addWidget(card)
card = QLabel()
- image = QImage('data/gfx/cards/nobus/25.png')
+ image = QImage('data/gfx/cards/nobus/Ac.png')
card.setPixmap(QPixmap.fromImage(image))
hbox.addWidget(card)
hbox.addSpacing(20)
@@ -122,7 +129,9 @@ def __init__(self):
#mainPanelSplitter.addWidget(QPushButton('Hello'))
mainPanelSplitter.addWidget(playerNotesSplitter)
mainPanelSplitter.addWidget(mainView)
- self.setCentralWidget(mainPanelSplitter)
+
+
+ self.setCentralWidget(mainView)
self.show()
sb = handhist.verticalScrollBar()

0 comments on commit 3bace40

Please sign in to comment.