• Home
  • Raw
  • Download

Lines Matching +full:configure +full:- +full:args

37     # Attempt to configure Tcl/Tk without requiring PATH
55 # These are not always defined, e.g. not on Win32 with Tk 8.0 :-(
80 value = unicode(value, 'utf-8')
132 If cut_minus is True, the supposed '-' prefix will be removed from
145 if cut_minus and key[0] == '-':
157 KeyPress, KeyRelease - for keyboard events
158 ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
161 Deactivate - for window events.
169 serial - serial number of event
170 num - mouse button pressed (ButtonPress, ButtonRelease)
171 focus - whether the window has the focus (Enter, Leave)
172 height - height of the exposed window (Configure, Expose)
173 width - width of the exposed window (Configure, Expose)
174 keycode - keycode of the pressed key (KeyPress, KeyRelease)
175 state - state of the event as a number (ButtonPress, ButtonRelease,
178 state - state as a string (Visibility)
179 time - when the event occurred
180 x - x-position of the mouse
181 y - y-position of the mouse
182 x_root - x-position of the mouse on the screen
184 y_root - y-position of the mouse on the screen
186 char - pressed character (KeyPress, KeyRelease)
187 send_event - see X/Windows documentation
188 keysym - keysym of the event as a string (KeyPress, KeyRelease)
189 keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
190 type - type of the event as a number
191 widget - widget in which the event occurred
192 delta - delta of wheel movement (MouseWheel)
263 #print '- Tkinter: deleted command', name
447 #print '- Tkinter: deleted command', name
454 #print '- Tkinter: deleted command', name
472 def tk_setPalette(self, *args, **kw): argument
484 + _flatten(args) + _flatten(kw.items()))
485 def tk_menuBar(self, *args): argument
536 self.tk.call('focus', '-force', self._w)
552 name = self.tk.call('focus', '-displayof', self._w)
558 name = self.tk.call('focus', '-lastfor', self._w)
582 def after(self, ms, func=None, *args): argument
596 func(*args)
605 def after_idle(self, func, *args): argument
611 return self.after('idle', func, *args)
671 + ('--', string))
692 descendant widgets on the display. Use with caution -
694 self.tk.call('grab', 'set', '-global', self._w)
756 selection - name of the selection (default PRIMARY),
757 type - type of the selection (e.g. STRING, FILE_NAME)."""
773 selection - name of the selection (default PRIMARY),
774 type - type of the selection (e.g. STRING, FILE_NAME)."""
779 def send(self, interp, cmd, *args): argument
781 return self.tk.call(('send', interp, cmd) + args)
794 args = ('winfo', 'atom') + self._displayof(displayof) + (name,)
795 return getint(self.tk.call(args))
798 args = ('winfo', 'atomname') \
800 return self.tk.call(args)
827 args = ('winfo', 'containing') \
829 name = self.tk.call(args)
856 args = ('winfo', 'interps') + self._displayof(displayof)
857 return self.tk.splitlist(self.tk.call(args))
873 args = ('winfo', 'pathname') \
875 return self.tk.call(args)
954 """Return information of the X-Server of the screen of this widget in
1069 <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
1076 Colormap, Gravity Reparent, Configure, KeyPress, Key,
1081 <Control-Button-1> for pressing Control and mouse button 1 or
1082 <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
1154 return ('-displayof', displayof)
1156 return ('-displayof', self._w)
1176 if k[-1] == '_': k = k[:-1]
1191 res = res + ('-'+k, v)
1241 def _substitute(self, *args): argument
1243 if len(args) != len(self._subst_format): return args
1254 nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args
1259 # height field: Configure, ConfigureRequest, Create,
1263 # width field: Configure, ConfigureRequest, Create, ResizeRequest,
1305 def _getconfigure(self, *args): argument
1306 """Call Tcl configure command and return the result as a dict."""
1308 for x in self.tk.splitlist(self.tk.call(*args)):
1313 def _getconfigure1(self, *args): argument
1314 x = self.tk.splitlist(self.tk.call(*args))
1326 return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
1329 def configure(self, cnf=None, **kw): member in Misc
1330 """Configure resources of a widget.
1336 return self._configure('configure', cnf, kw)
1337 config = configure
1340 return self.tk.call(self._w, 'cget', '-' + key)
1343 self.configure({key: value})
1350 splitlist(self.tk.call(self._w, 'configure'))]
1397 args = ('grid', 'bbox', self._w)
1399 args = args + (column, row)
1401 args = args + (col2, row2)
1402 return self._getints(self.tk.call(*args)) or None
1423 if cnf[-1:] == '_':
1424 cnf = cnf[:-1]
1425 if cnf[:1] != '-':
1426 cnf = '-'+cnf
1442 """Configure column INDEX of a grid.
1469 """Configure row INDEX of a grid.
1484 args = ()
1486 args = args + ('-row', row)
1488 args = args + ('-column', column)
1491 ('grid', 'slaves', self._w) + args)))
1500 args = ('event', 'add', virtual) + sequences
1501 self.tk.call(args)
1505 args = ('event', 'delete', virtual) + sequences
1506 self.tk.call(args)
1512 args = ('event', 'generate', self._w, sequence)
1514 args = args + ('-%s' % k, str(v))
1515 self.tk.call(args)
1542 def __call__(self, *args): argument
1546 args = self.subst(*args)
1547 return self.func(*args)
1555 """Mix-in class for querying and changing the horizontal position
1558 def xview(self, *args): argument
1560 res = self.tk.call(self._w, 'xview', *args)
1561 if not args:
1566 total width of the canvas is off-screen to the left."""
1570 """Shift the x-view according to NUMBER which is measured in "units"
1576 """Mix-in class for querying and changing the vertical position
1579 def yview(self, *args): argument
1581 res = self.tk.call(self._w, 'yview', *args)
1582 if not args:
1587 total height of the canvas is off-screen to the top."""
1591 """Shift the y-view according to NUMBER which is measured in
1611 def wm_attributes(self, *args): argument
1619 On Windows, -disabled gets or sets whether the window is in a
1620 disabled state. -toolwindow gets or sets the style of the window
1621 to toolwindow (as defined in the MSDN). -topmost gets or sets
1629 args = ('wm', 'attributes', self._w) + args
1630 return self.tk.call(args)
1644 args = ('wm', 'colormapwindows', self._w) + wlist
1646 self.tk.call(args)
1648 return map(self._nametowidget, self.tk.splitlist(self.tk.call(args)))
1702 return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
1796 and forgotten by the window manager. Re-draw it with wm_deiconify."""
1829 # Issue #16248: Honor the -E flag to avoid code injection.
1856 # would register differently-named commands.
1918 # Pack, Place or Grid class, so I leave them intact -- but only as
1935 after=widget - pack it after you have packed widget
1936 anchor=NSEW (or subset) - position widget according to
1938 before=widget - pack it before you will pack widget
1939 expand=bool - expand widget if parent size grows
1940 fill=NONE or X or Y or BOTH - fill widget if widget grows
1941 in=master - use master to contain this widget
1942 in_=master - see 'in' option description
1943 ipadx=amount - add internal padding in x direction
1944 ipady=amount - add internal padding in y direction
1945 padx=amount - add padding in x direction
1946 pady=amount - add padding in y direction
1947 side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget.
1950 ('pack', 'configure', self._w)
1952 pack = configure = config = pack_configure
1974 in=master - master relative to which the widget is placed
1975 in_=master - see 'in' option description
1976 x=amount - locate anchor of this widget at position x of master
1977 y=amount - locate anchor of this widget at position y of master
1978 relx=amount - locate anchor of this widget between 0.0 and 1.0
1980 rely=amount - locate anchor of this widget between 0.0 and 1.0
1982 anchor=NSEW (or subset) - position anchor according to given direction
1983 width=amount - width of this widget in pixel
1984 height=amount - height of this widget in pixel
1985 relwidth=amount - width of this widget between 0.0 and 1.0
1988 relheight=amount - height of this widget between 0.0 and 1.0
1991 bordermode="inside" or "outside" - whether to take border width of
1995 ('place', 'configure', self._w)
1997 place = configure = config = place_configure
2019 column=number - use cell identified with given column (starting with 0)
2020 columnspan=number - this widget will span several columns
2021 in=master - use master to contain this widget
2022 in_=master - see 'in' option description
2023 ipadx=amount - add internal padding in x direction
2024 ipady=amount - add internal padding in y direction
2025 padx=amount - add padding in x direction
2026 pady=amount - add padding in y direction
2027 row=number - use cell identified with given row (starting with 0)
2028 rowspan=number - this widget will span several rows
2029 sticky=NSEW - if cell is larger on which sides will this
2033 ('grid', 'configure', self._w)
2035 grid = configure = config = grid_configure
2103 k.configure(self, v)
2111 def _do(self, name, args=()): argument
2112 # XXX Obsolete -- better use self.tk.call directly!
2113 return self.tk.call((self._w, name) + args)
2140 if wmkey[-1] == '_': opt = '-'+wmkey[:-1]
2141 else: opt = '-'+wmkey
2166 WIDGET-SPECIFIC OPTIONS
2211 # XXX I don't like these -- take them away
2214 def AtInsert(*args): argument
2216 for a in args:
2242 def addtag(self, *args): argument
2244 self.tk.call((self._w, 'addtag') + args)
2256 If several match take the top-most.
2271 def bbox(self, *args): argument
2275 self.tk.call((self._w, 'bbox') + args)) or None
2300 def coords(self, *args): argument
2301 """Return a list of coordinates for the item given in ARGS."""
2302 # XXX Should use _flatten on args
2305 self.tk.call((self._w, 'coords') + args)))
2306 def _create(self, itemType, args, kw): # Args: (val, val, ..., cnf={}) argument
2308 args = _flatten(args)
2309 cnf = args[-1]
2311 args = args[:-1]
2316 *(args + self._options(cnf, kw))))
2317 def create_arc(self, *args, **kw): argument
2319 return self._create('arc', args, kw)
2320 def create_bitmap(self, *args, **kw): argument
2322 return self._create('bitmap', args, kw)
2323 def create_image(self, *args, **kw): argument
2325 return self._create('image', args, kw)
2326 def create_line(self, *args, **kw): argument
2328 return self._create('line', args, kw)
2329 def create_oval(self, *args, **kw): argument
2331 return self._create('oval', args, kw)
2332 def create_polygon(self, *args, **kw): argument
2334 return self._create('polygon', args, kw)
2335 def create_rectangle(self, *args, **kw): argument
2337 return self._create('rectangle', args, kw)
2338 def create_text(self, *args, **kw): argument
2340 return self._create('text', args, kw)
2341 def create_window(self, *args, **kw): argument
2343 return self._create('window', args, kw)
2344 def dchars(self, *args): argument
2345 """Delete characters of text items identified by tag or id in ARGS (possibly
2347 self.tk.call((self._w, 'dchars') + args)
2348 def delete(self, *args): argument
2349 """Delete items identified by all tag or ids contained in ARGS."""
2350 self.tk.call((self._w, 'delete') + args)
2351 def dtag(self, *args): argument
2352 """Delete tag or id given as last arguments in ARGS from items
2353 identified by first argument in ARGS."""
2354 self.tk.call((self._w, 'dtag') + args)
2355 def find(self, *args): argument
2358 self.tk.call((self._w, 'find') + args)) or ()
2370 If several match take the top-most.
2385 def focus(self, *args): argument
2386 """Set focus to the first item specified in ARGS."""
2387 return self.tk.call((self._w, 'focus') + args)
2388 def gettags(self, *args): argument
2389 """Return tags associated with the first item specified in ARGS."""
2391 self.tk.call((self._w, 'gettags') + args))
2392 def icursor(self, *args): argument
2394 In ARGS TAGORID must be first."""
2395 self.tk.call((self._w, 'icursor') + args)
2396 def index(self, *args): argument
2397 """Return position of cursor as integer in item specified in ARGS."""
2398 return getint(self.tk.call((self._w, 'index') + args))
2399 def insert(self, *args): argument
2400 """Insert TEXT in item TAGORID at position POS. ARGS must
2402 self.tk.call((self._w, 'insert') + args)
2406 (self._w, 'itemcget') + (tagOrId, '-'+option))
2408 """Configure resources of an item TAGORID.
2420 def tag_lower(self, *args): argument
2421 """Lower an item TAGORID given in ARGS
2423 self.tk.call((self._w, 'lower') + args)
2425 def move(self, *args): argument
2426 """Move an item TAGORID given in ARGS."""
2427 self.tk.call((self._w, 'move') + args)
2435 def tag_raise(self, *args): argument
2436 """Raise an item TAGORID given in ARGS
2438 self.tk.call((self._w, 'raise') + args)
2440 def scale(self, *args): argument
2442 self.tk.call((self._w, 'scale') + args)
2471 """Checkbutton widget which is either in on- or off-state."""
2484 """Put the button in off-state."""
2493 """Put the button in on-state."""
2575 extra = ('-class', cnf['class_'])
2578 extra = ('-class', cnf['class'])
2597 WIDGET-SPECIFIC OPTIONS
2683 (self._w, 'itemcget') + (index, '-'+option))
2685 """Configure resources of an ITEM.
2696 """Menu widget which allows displaying menu bars, pull-down menus and pop-up menus."""
2782 num_index1, num_index2 = 0, -1
2792 return self.tk.call(self._w, 'entrycget', index, '-' + option)
2794 """Configure a menu item at INDEX."""
2816 """Return the y-position of the topmost pixel of the menu item at INDEX."""
2831 """Radiobutton widget which shows only one of several buttons in on-state."""
2844 """Put the button in off-state."""
2854 """Put the button in on-state."""
2923 def set(self, *args): argument
2926 self.tk.call((self._w, 'set') + args)
2948 WIDGET-SPECIFIC OPTIONS
2956 def bbox(self, *args): argument
2958 box of the visible part of the character at the index in ARGS."""
2960 self.tk.call((self._w, 'bbox') + args)) or None
2975 """Turn on the internal consistency checks of the B-Tree inside the text
3000 args = []
3004 # Never call the dump command without the -command flag, since the
3015 args += ["-command", command]
3017 if kw[key]: args.append("-" + key)
3018 args.append(index1)
3020 args.append(index2)
3021 self.tk.call(self._w, "dump", *args)
3028 def edit(self, *args): argument
3041 return self.tk.call(self._w, 'edit', *args)
3093 if option[:1] != "-":
3094 option = "-" + option
3095 if option[-1:] == "_":
3096 option = option[:-1]
3099 """Configure an embedded image at INDEX."""
3100 return self._configure(('image', 'configure', index), cnf, kw)
3112 def insert(self, index, chars, *args): argument
3114 tag can be given in ARGS. Additional CHARS and tags can follow in ARGS."""
3115 self.tk.call((self._w, 'insert', index, chars) + args)
3151 args = [self._w, 'search']
3152 if forwards: args.append('-forwards')
3153 if backwards: args.append('-backwards')
3154 if exact: args.append('-exact')
3155 if regexp: args.append('-regexp')
3156 if nocase: args.append('-nocase')
3157 if elide: args.append('-elide')
3158 if count: args.append('-count'); args.append(count)
3159 if pattern and pattern[0] == '-': args.append('--')
3160 args.append(pattern)
3161 args.append(index)
3162 if stopindex: args.append(stopindex)
3163 return str(self.tk.call(tuple(args)))
3167 def tag_add(self, tagName, index1, *args): argument
3168 """Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
3169 Additional pairs of indices may follow in ARGS."""
3171 (self._w, 'tag', 'add', tagName, index1) + args)
3188 if option[:1] != '-':
3189 option = '-' + option
3190 if option[-1:] == '_':
3191 option = option[:-1]
3194 """Configure a tag TAGNAME."""
3195 return self._configure(('tag', 'configure', tagName), cnf, kw)
3235 if option[:1] != '-':
3236 option = '-' + option
3237 if option[-1:] == '_':
3238 option = option[:-1]
3241 """Configure an embedded window at INDEX."""
3242 return self._configure(('window', 'configure', index), cnf, kw)
3255 self.tk.call((self._w, 'yview', '-pickplace') + what)
3264 def __call__(self, *args): argument
3267 self.__callback(self.__value, *args)
3288 raise TclError, 'unknown option -'+kwargs.keys()[0]
3321 if name[0] == '-': name = '_' + name[1:]
3330 options = options + ('-'+k, v)
3342 self.tk.call(self.name, 'configure', '-'+key, value)
3344 return self.tk.call(self.name, 'configure', '-'+key)
3345 def configure(self, **kw): member in Image
3346 """Configure the image."""
3350 if k[-1] == '_': k = k[:-1]
3355 res = res + ('-'+k, v)
3357 config = configure
3383 return self.tk.call(self.name, 'cget', '-' + option)
3386 return self.tk.call(self.name, 'cget', '-' + key)
3387 # XXX copy -from, -to, ...?
3400 self.tk.call(destImage, 'copy', self.name, '-zoom',x,y)
3409 self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
3417 args = (self.name, 'put', data)
3419 if to[0] == '-to':
3421 args = args + ('-to',) + tuple(to)
3422 self.tk.call(args)
3427 args = (self.name, 'write', filename)
3429 args = args + ('-format', format)
3431 args = args + ('-from',) + tuple(from_coords)
3432 self.tk.call(args)
3467 WIDGET-SPECIFIC OPTIONS
3485 coordinates of the upper-left corner of the screen
3544 def scan(self, *args): argument
3547 self.tk.call((self._w, 'scan') + args)) or ()
3563 difference in x-coordinates. This command is typically
3570 def selection(self, *args): argument
3573 self.tk.call((self._w, 'selection') + args)) or ()
3619 WIDGET-SPECIFIC OPTIONS
3639 WIDGET-SPECIFIC OPTIONS
3677 def proxy(self, *args): argument
3680 self.tk.call((self._w, 'proxy') + args)) or ()
3697 def sash(self, *args): argument
3700 self.tk.call((self._w, 'sash') + args)) or ()
3734 (self._w, 'panecget') + (child, '-'+option))
3744 option is specified). If one or more option-value pairs are
3759 any. If size is an empty string, or if -height is not
3767 the widget in the paned dimension -- the x dimension
3772 Specifies a non-negative value indicating how much
3774 the X-direction. The value may have any of the forms
3777 Specifies a non-negative value indicating how much
3779 the Y-direction. The value may have any of the forms
3797 if -width is not specified, then the width requested
3808 self._w, 'paneconfigure', tagOrId, '-'+cnf)
3823 self.bind('<Any-Enter>', self.tkButtonEnter)
3824 self.bind('<Any-Leave>', self.tkButtonLeave)
3826 self.bind('<ButtonRelease-1>', self.tkButtonUp)
3831 self.bind('<Any-Enter>', self.tkButtonEnter)
3832 self.bind('<Any-Leave>', self.tkButtonLeave)
3834 self.bind('<ButtonRelease-1>', self.tkButtonUp)
3847 "iso-8859-1")
3853 command=lambda root=root: root.test.configure(