~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/lib/agw/fmresources.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import wx
 
2
 
1
3
# Overall menu styles
2
 
StyleXP = 0
3
 
Style2007 = 1
 
4
StyleDefault = 0
 
5
StyleXP      = 1
 
6
Style2007    = 2
 
7
StyleVista   = 3
4
8
 
5
9
# Menu shadows
6
10
RightShadow             = 1 # Right side shadow
64
68
MENU_DEC_RIGHT = 3
65
69
 
66
70
DROP_DOWN_ARROW_WIDTH = 16
67
 
SPACER = 3
 
71
SPACER = 12 
 
72
MARGIN = 3
 
73
TOOLBAR_SPACER = 4
 
74
TOOLBAR_MARGIN = 4
68
75
SEPARATOR_WIDTH = 12
69
76
SCROLL_BTN_HEIGHT = 20
70
77
 
107
114
INB_PIN_HOVER = 200
108
115
INB_PIN_PRESSED = 201
109
116
 
 
117
# Windows Vista Colours
 
118
rgbSelectOuter = wx.Colour(170, 200, 245)
 
119
rgbSelectInner = wx.Colour(230, 250, 250)
 
120
rgbSelectTop = wx.Colour(210, 240, 250)
 
121
rgbSelectBottom = wx.Colour(185, 215, 250)
110
122
 
111
123
check_mark_xpm = ["    16    16       16            1",
112
124
                  "` c #000000",
266
278
                  "                ",
267
279
                  "                "]
268
280
 
269
 
 
270
281
#---------------------------------------------
271
282
# Pin images
272
283
#---------------------------------------------
342
353
"""""\x10\x00\x00\x12""""\x00\x00\x00\x02""""""""""""\x11\x11\x11\x12""""\x00\x00\x00\x02\
343
354
""""""""""""""""""""""""""""""""""'
344
355
 
 
356
menu_up_arrow_xpm = ["16 16 2 1",
 
357
                  ". c Black",
 
358
                  "  c White",
 
359
                  "                ",
 
360
                  "                ",
 
361
                  "                ",
 
362
                  "                ",
 
363
                  "                ",
 
364
                  "                ",
 
365
                  "       .        ",
 
366
                  "      ...       ",
 
367
                  "     .....      ",
 
368
                  "                ",
 
369
                  "                ",
 
370
                  "                ",
 
371
                  "                ",
 
372
                  "                ",
 
373
                  "                ",
 
374
                  "                "]
 
375
 
 
376
 
 
377
menu_down_arrow_xpm = ["16 16 2 1",
 
378
                  ". c Black",
 
379
                  "  c White",
 
380
                  "                ",
 
381
                  "                ",
 
382
                  "                ",
 
383
                  "                ",
 
384
                  "                ",
 
385
                  "                ",
 
386
                  "     .....      ",
 
387
                  "      ...       ",
 
388
                  "       .        ",
 
389
                  "                ",
 
390
                  "                ",
 
391
                  "                ",
 
392
                  "                ",
 
393
                  "                ",
 
394
                  "                ",
 
395
                  "                "]
 
396
 
 
397
 
 
398
def getMenuUpArrowBitmap():
 
399
    bmp = wx.BitmapFromXPMData(menu_up_arrow_xpm)
 
400
    bmp.SetMask(wx.Mask(bmp, wx.WHITE))
 
401
    return bmp
 
402
 
 
403
def getMenuDownArrowBitmap():
 
404
    bmp = wx.BitmapFromXPMData(menu_down_arrow_xpm)
 
405
    bmp.SetMask(wx.Mask(bmp, wx.WHITE))
 
406
    return bmp