Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-12-23 14:16:45 (GMT)
committer Aneesh Dogra <lionaneesh@gmail.com>2012-12-23 14:16:45 (GMT)
commit8e55207462ca6922a1d155595efc8a5937f98682 (patch)
treec95102680dee5a0e27b778a703956b66d3a2b07e
parentdc33b4bf107a34c0e137e6d0c6da9b0ed937b214 (diff)
Re-align chessboard and make the webcam image a bit bigger.
-rw-r--r--WebcamImages.py4
-rw-r--r--chess.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/WebcamImages.py b/WebcamImages.py
index 76a66b3..a4724f1 100644
--- a/WebcamImages.py
+++ b/WebcamImages.py
@@ -16,8 +16,8 @@ from sugar3.activity import activity
from gi.repository import GdkPixbuf, GObject
WEBCAM_IMAGES_DIR = os.path.join(activity.get_bundle_path(), 'webcam_images')
-W_I_WIDTH = 170
-W_I_HEIGHT = 120
+W_I_WIDTH = 300
+W_I_HEIGHT = 200
class WebcamImages():
"""
diff --git a/chess.py b/chess.py
index b30556a..7a3cb41 100644
--- a/chess.py
+++ b/chess.py
@@ -16,6 +16,7 @@ import cairo
import os
import subprocess
from string import find
+from WebcamImages import W_I_WIDTH
from random import uniform
@@ -84,7 +85,7 @@ class Gnuchess():
self._canvas.connect("button-release-event", self._button_release_cb)
self._canvas.connect("motion-notify-event", self._mouse_move_cb)
- self._width = Gdk.Screen.width()
+ self._width = Gdk.Screen.width() - W_I_WIDTH
self._height = Gdk.Screen.height()
self.scale = int((self._height - 55) / 10)
self.we_are_sharing = False