fmresources.py :  » GUI » wxPython » wxPython-src-2.8.11.0 » wxPython » wx » lib » agw » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » GUI » wxPython 
wxPython » wxPython src 2.8.11.0 » wxPython » wx » lib » agw » fmresources.py
# Overall menu styles
StyleXP = 0
Style2007 = 1

# Menu shadows
RightShadow             = 1 # Right side shadow
BottomShadow            = 2 # Not full bottom shadow
BottomShadowFull        = 4 # Full bottom shadow

# Button styles
BU_EXT_XP_STYLE = 1
BU_EXT_2007_STYLE = 2
BU_EXT_LEFT_ALIGN_STYLE = 4
BU_EXT_CENTER_ALIGN_STYLE = 8
BU_EXT_RIGHT_ALIGN_STYLE = 16
BU_EXT_RIGHT_TO_LEFT_STYLE = 32

# Control state
ControlPressed = 0
ControlFocus = 1
ControlDisabled = 2
ControlNormal = 3

# FlatMenu styles
FM_OPT_IS_LCD = 1
""" Use this style if your computer uses a LCD screen. """
FM_OPT_MINIBAR = 2
""" Use this if you plan to use the toolbar only. """
FM_OPT_SHOW_CUSTOMIZE = 4
""" Show "customize link" in the `More` menu, you will need to write your own handler. See demo. """
FM_OPT_SHOW_TOOLBAR = 8
""" Set this option is you are planning to use the toolbar. """

# Control status
ControlStatusNoFocus = 0
ControlStatusFocus = 1
ControlStatusPressed = 2

# HitTest constants
NoWhere = 0
MenuItem = 1
ToolbarItem = 2
DropDownArrowButton = 3

FTB_ITEM_TOOL = 0
FTB_ITEM_SEPARATOR = 1
FTB_ITEM_CHECK = 2
FTB_ITEM_RADIO = 3

FTB_ITEM_RADIO_MENU = 4
FTB_ITEM_CUSTOM = 5

LargeIcons = 32
SmallIcons = 16

MENU_HT_NONE = 0
MENU_HT_ITEM = 1
MENU_HT_SCROLL_UP = 2
MENU_HT_SCROLL_DOWN = 3

MENU_DEC_TOP = 0
MENU_DEC_BOTTOM = 1
MENU_DEC_LEFT = 2
MENU_DEC_RIGHT = 3

DROP_DOWN_ARROW_WIDTH = 16
SPACER = 3
SEPARATOR_WIDTH = 12
SCROLL_BTN_HEIGHT = 20

CS_DROPSHADOW = 0x00020000

INB_BOTTOM = 1
INB_LEFT = 2
INB_RIGHT = 4
INB_TOP = 8
INB_BORDER = 16
INB_SHOW_ONLY_TEXT = 32
INB_SHOW_ONLY_IMAGES = 64
INB_FIT_BUTTON = 128
INB_DRAW_SHADOW = 256
INB_USE_PIN_BUTTON = 512
INB_GRADIENT_BACKGROUND = 1024
INB_WEB_HILITE = 2048
INB_NO_RESIZE = 4096
INB_FIT_LABELTEXT = 8192

INB_DEFAULT_STYLE = INB_BORDER | INB_TOP | INB_USE_PIN_BUTTON

INB_TAB_AREA_BACKGROUND_COLOUR = 100
INB_ACTIVE_TAB_COLOUR = 101
INB_TABS_BORDER_COLOUR = 102
INB_TEXT_COLOUR = 103
INB_ACTIVE_TEXT_COLOUR = 104
INB_HILITE_TAB_COLOUR = 105

INB_LABEL_BOOK_DEFAULT = INB_DRAW_SHADOW | INB_BORDER | INB_USE_PIN_BUTTON | INB_LEFT

# HitTest results
IMG_OVER_IMG = 0
IMG_OVER_PIN = 1
IMG_OVER_EW_BORDER = 2
IMG_NONE = 3

# Pin button states
INB_PIN_NONE = 0
INB_PIN_HOVER = 200
INB_PIN_PRESSED = 201


check_mark_xpm = ["    16    16       16            1",
                  "` c #000000",
                  ". c #800000",
                  "# c #008000",
                  "a c #808000",
                  "b c #000080",
                  "c c #800080",
                  "d c #008080",
                  "e c #808080",
                  "f c #c0c0c0",
                  "g c #ff0000",
                  "h c #00ff00",
                  "i c #ffff00",
                  "j c #0000ff",
                  "k c #ff00ff",
                  "l c #00ffff",
                  "m c #ffffff",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmm`mmmmm",
                  "mmmmmmmmm``mmmmm",
                  "mmmm`mmm```mmmmm",
                  "mmmm``m```mmmmmm",
                  "mmmm`````mmmmmmm",
                  "mmmmm```mmmmmmmm",
                  "mmmmmm`mmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm"
                  ]

radio_item_xpm = ["    16    16       16            1",
                  "` c #000000",
                  ". c #800000",
                  "# c #008000",
                  "a c #808000",
                  "b c #000080",
                  "c c #800080",
                  "d c #008080",
                  "e c #808080",
                  "f c #c0c0c0",
                  "g c #ff0000",
                  "h c #00ff00",
                  "i c #ffff00",
                  "j c #0000ff",
                  "k c #ff00ff",
                  "l c #00ffff",
                  "m c #ffffff",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmm```mmmmmmm",
                  "mmmmm`````mmmmmm",
                  "mmmmm`````mmmmmm",
                  "mmmmmm```mmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm",
                  "mmmmmmmmmmmmmmmm"]


menu_right_arrow_xpm = [
    "    16    16        8            1",
    "` c #ffffff",
    ". c #000000",
    "# c #000000",
    "a c #000000",
    "b c #000000",
    "c c #000000",
    "d c #000000",
    "e c #000000",
    "````````````````",
    "````````````````",
    "````````````````",
    "````````````````",
    "````````````````",
    "``````.`````````",
    "``````..````````",
    "``````...```````",
    "``````....``````",
    "``````...```````",
    "``````..````````",
    "``````.`````````",
    "````````````````",
    "````````````````",
    "````````````````",
    "````````````````"
    ]

#----------------------------------
# Shadow images
#----------------------------------

shadow_right_xpm = ["5 5 1 1","  c Black","     ","     ","     ","     ","     "]

# shadow_right.xpm 5x5
shadow_right_alpha = [168, 145, 115,  76,  46, 168, 145, 115,  76,  46, 168, 145, 115,  76,  46,
                      168, 145, 115,  76,  46, 168, 145, 115,  76,  46]

shadow_right_top_xpm = ["5 10 1 1","  c Black","     ","     ","     ","     ",
                        "     ","     ","     ","     ","     ","     "]

shadow_right_top_alpha = [40,  35,  28,  18,  11, 67,  58,  46,  31,  18, 101,  87,  69,  46,  28,
                          128, 110,  87,  58,  35, 148, 128, 101,  67,  40, 161, 139, 110,  73,  44,
                          168, 145, 115,  76,  46, 168, 145, 115,  76,  46, 168, 145, 115,  76,  46,
                          168, 145, 115,  76,  46]

# shadow_buttom.xpm 5x5
shadow_bottom_alpha = [184, 184, 184, 184, 184, 168, 168, 168, 168, 168, 145, 145, 145, 145, 145,
                       115, 115, 115, 115, 115, 76,  76,  76,  76,  76]

shadow_bottom_left_xpm = ["10 5 1 1","  c Black","          ","          ",
                          "          ","          ","          "]

shadow_bottom_left_alpha = [22,  44,  73, 110, 139, 161, 176, 184, 184, 184,
                            20,  40,  67, 101, 128, 148, 161, 168, 168, 168,
                            17,  35,  58,  87, 110, 128, 139, 145, 145, 145,
                            13,  28,  46,  69,  87, 101, 110, 115, 115, 115,
                            9,  18,  31,  46,  58,  67,  73,  76,  76,  76]

shadow_center_xpm = ["5 5 1 1","  c Black","     ","     ","     ","     ","     "]

shadow_center_alpha = [161, 139, 110,  73,  44, 148, 128, 101,  67,  40,
                       128, 110,  87,  58,  35, 101,  87,  69,  46,  28,
                       67,  58,  46,  31,  18]

shadow_bottom_xpm = ["5 5 1 1","  c Black","     ","     ","     ","     ","     "]

arrow_down_xpm = ["16 16 3 1",
                  ". c Black",
                  "X c #FFFFFF",
                  "  c #008080",
                  "                ",
                  "                ",
                  "                ",
                  "                ",
                  "    .......     ",
                  "    XXXXXXX     ",
                  "                ",
                  "    .......     ",
                  "    X.....X     ",
                  "     X...X      ",
                  "      X.X       ",
                  "       X        ",
                  "                ",
                  "                ",
                  "                ",
                  "                "]


#---------------------------------------------
# Pin images
#---------------------------------------------
pin_left_xpm = ["    16    16        8            1",
                "` c #ffffff",
                ". c #000000",
                "# c #808080",
                "a c #000000",
                "b c #000000",
                "c c #000000",
                "d c #000000",
                "e c #000000",
                "````````````````",
                "````````````````",
                "```````.````````",
                "```````.````````",
                "```````.......``",
                "```````.`````.``",
                "`````...`````.``",
                "``......#####.``",
                "`````...#####.``",
                "```````.......``",
                "```````.......``",
                "```````.````````",
                "```````.````````",
                "````````````````",
                "````````````````",
                "````````````````"]

pin_down_xpm = ["    16    16        8            1",
                "` c #ffffff",
                ". c #000000",
                "# c #808080",
                "a c #000000",
                "b c #000000",
                "c c #000000",
                "d c #000000",
                "e c #000000",
                "````````````````",
                "````````````````",
                "````.......`````",
                "````.``##..`````",
                "````.``##..`````",
                "````.``##..`````",
                "````.``##..`````",
                "````.``##..`````",
                "``...........```",
                "``````...```````",
                "``````...```````",
                "```````.````````",
                "```````.````````",
                "```````.````````",
                "````````````````",
                "````````````````"]


arrow_up = 'BM\xf6\x00\x00\x00\x00\x00\x00\x00v\x00\x00\x00(\x00\x00\x00\x10\x00\x00\
\x00\x10\x00\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x80\x00\x00\x00\x12\x0b\x00\x00\x12\
\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\x00\x80\x80\x00\
\x00w\xfcM\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00""""""""""""""""""""""""""""""""""\x00\x00\x00\x02""""\x11\x11\
\x11\x12""""""""""""\x00\x00\x00\x02""""\x10\x00\x00\x12""""!\x00\x01""""""\x10\x12""""""!\
""""""""""""""""""""""""""""""""""""'


arrow_down = 'BM\xf6\x00\x00\x00\x00\x00\x00\x00v\x00\x00\x00(\x00\x00\x00\x10\x00\x00\x00\
\x10\x00\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x0b\x00\x00\x12\x0b\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\x00\x80\x80\x00\x00w\
\xfcM\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00"""""""""""""""""""""""""""""""""""!"""""""\x10\x12"""""!\x00\x01\
"""""\x10\x00\x00\x12""""\x00\x00\x00\x02""""""""""""\x11\x11\x11\x12""""\x00\x00\x00\x02\
""""""""""""""""""""""""""""""""""'

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.