File: tictactoe.rsrc.py

package info (click to toggle)
pythoncard 0.8.2-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,452 kB
  • sloc: python: 56,787; makefile: 56; sh: 22
file content (58 lines) | stat: -rw-r--r-- 2,097 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Changes - 7/25/01 - RDS
#   -Added 'label' item to Menu and MenuItem definitions.
#   -StaticText.label => StaticText.text
#
{ 'application':{ 'type':'Application',
            'name':'TicTacToe',

    'backgrounds':
 [ 
  { 'type':'Background',
    'name':'bg1',
    'title':'Tic Tac Toe',
    'size':( 390, 470 ),
    'image':'lines.jpg',

    'menubar': 
    { 
        'type':'MenuBar',
        'menus': 
        [
            { 'type':'Menu',
              'name':'mnuFile',
              'label':'&File',
              'items': [ 
                { 'type':'MenuItem', 'name':'menuFileExit', 'label':'E&xit', 'command':'exit' } ] }
        ]       
    },

   'components':
   [ 
    { 'type':'CheckBox', 'name':'chkComputerFirst', 'position':( 20, 380 ), 'label':'Mr. Gumby goes first', 'checked':0, 'backgroundColor':'white' },
    { 'type':'Button', 'name':'btnNewGame', 'position':( 280, 380 ), 'label':'New Game' },
    #{ 'type':'Button', 'name':'btnNewGame', 'position':( 5, 450 ), 'label':'New Game' },
    { 'type':'StaticText', 'name':'staticTurn', 'position':( 100, 410 ), 'size':(200, -1), 'text': '', 'alignment':'center', 'backgroundColor':'white' },

    { 'type':'Image',  'name':'btn0', 'position':( 20, 20 ), 'size':(-2,-2), 'file':'empty.gif'},
    
    { 'type':'Image',  'name':'btn1', 'position':( 140, 20 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn2', 'position':( 260, 20 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn3', 'position':( 20, 140 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn4', 'position':( 140, 140 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn5', 'position':( 260, 140 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn6', 'position':( 20, 260 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn7', 'position':( 140, 260 ), 'size':(-2,-2), 'file':'empty.gif'},

    { 'type':'Image',  'name':'btn8', 'position':( 260, 260 ), 'size':(-2,-2), 'file':'empty.gif'}
   ]
  }
 ]
 }
 }