#it under the terms of the GNU Affero General Public License as published by #the Free Software Foundation, version 3 of the License. # #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. # #You should have received a copy of the GNU Affero General Public License #along with this program. If not, see <http://www.gnu.org/licenses/>. #In the "official" distribution you can find the license in agpl-3.0.txt. """pokerstars-specific summary parsing code""" import L10n _ = L10n.get_translation() from decimal_wrapper import Decimal import datetime from Exceptions import FpdbParseError from HandHistoryConverter import * import PokerStarsToFpdb from TourneySummary import * class PokerStarsSummary(TourneySummary): hhtype = "summary" limits = { 'No Limit':'nl', 'Pot Limit':'pl', 'Limit':'fl', 'LIMIT':'fl' } games = { # base, category "Hold'em" : ('hold','holdem'), 'Omaha' : ('hold','omahahi'),
except: failure("fpdb modules cannot be loaded, check that fpdb is installed in an English path") win_output(failure_list) sys.exit(1) import sys try: if sys.argv[1] == "-v": verbose = True except: pass import L10n _ = L10n.get_translation() import Configuration config = Configuration.Config() if config.python_version not in ("2.6", "2.7"): failure(_("Python 2.6-2.7 not found, please install python 2.6 or 2.7 for fpdb.")) # # next, check for individual modules existing # for i in global_modules_to_test: try_import(i) if config.os_family in ("XP", "Win7"): for i in windows_modules_to_test:
failure( "fpdb modules cannot be loaded, check that fpdb is installed in an English path" ) win_output(failure_list) sys.exit(1) import sys try: if sys.argv[1] == "-v": verbose = True except: pass import L10n _ = L10n.get_translation() import Configuration config = Configuration.Config() if config.python_version not in ("2.6", "2.7"): failure( _("Python 2.6-2.7 not found, please install python 2.6 or 2.7 for fpdb." )) # # next, check for individual modules existing # for i in global_modules_to_test: try_import(i)
# the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ######################################################################## import L10n _ = L10n.get_translation() # TODO: straighten out discards for draw games import sys from HandHistoryConverter import * from decimal_wrapper import Decimal # BetOnline HH Format class BetOnline(HandHistoryConverter): # Class Variables sitename = "BetOnline"
# the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ######################################################################## import L10n _ = L10n.init_translation() # Standard Library modules import logging # logging has been set up in fpdb.py or HUD_main.py, use their settings: log = logging.getLogger("hud") from PyQt5.QtCore import QObject from PyQt5.QtGui import (QPainter, QPixmap, QStandardItem, QStandardItemModel) from PyQt5.QtWidgets import (QGridLayout, QLabel, QTableView, QVBoxLayout, QWidget) # FreePokerTools modules import Card import Aux_Base