initial
This commit is contained in:
parent
937b577cee
commit
12a395616c
8 changed files with 72 additions and 62 deletions
|
@ -1,16 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import collections
|
||||
import random
|
||||
import re
|
||||
import datetime
|
||||
import itertools
|
||||
import math
|
||||
import plugin_super_class
|
||||
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import *
|
||||
from PySide.QtSvg import *
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtSvg import *
|
||||
|
||||
|
||||
START_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
|
||||
|
@ -1682,5 +1680,5 @@ class Chess(plugin_super_class.PluginSuperClass):
|
|||
|
||||
def get_menu(self, menu, num):
|
||||
act = QAction(QApplication.translate("Chess", "Start chess game", None, QApplication.UnicodeUTF8), menu)
|
||||
act.connect(act, SIGNAL("triggered()"), lambda: self.start_game(num))
|
||||
act.triggered.connect(lambda: self.start_game(num))
|
||||
return [act]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue