pack() 方法 | 描述 |
after=widget | pack it after you have packed widget |
anchor=NSEW (or subset) | position widget according to |
before=widget | pack it before you will pack widget |
expand=bool | expand widget if parent size grows |
fill=NONE or X or Y or BOTH | fill widget if widget grows |
in=master | use master to contain this widget |
in_=master | see ‘in’ option description |
ipadx=amount | add internal padding in x direction |
ipady=amount | add internal padding in y direction |
padx=amount | add padding in x direction |
pady=amount | add padding in y direction |
side=TOP or BOTTOM or LEFT or RIGHT | where to add this widget. |
{'activebackground': 'SystemButtonFace',
'activeforeground': 'SystemButtonText',
'anchor': 'center',
'background': 'SystemButtonFace',
'bd': <pixel object at 00000000048D1000>,
'bg': 'SystemButtonFace',
'bitmap': '',
'borderwidth': <pixel object at 00000000048D1000>,
'compound': 'none',
'cursor': '',
'disabledforeground': 'SystemDisabledText',
'fg': 'SystemButtonText',
'font': 'TkDefaultFont',
'foreground': 'SystemButtonText',
'height': 15,
'highlightbackground': 'SystemButtonFace',
'highlightcolor': 'SystemWindowFrame',
'highlightthickness': <pixel object at 00000000048FF100>,
'image': '',
'justify': 'center',
'padx': <pixel object at 00000000048FED40>,
'pady': <pixel object at 00000000048FF0D0>,
'relief': 'flat',
'state': 'normal',
'takefocus': '0',
'text': 'This is a Label',
'textvariable': '',
'underline': -1,
'width': 100,
'wraplength': <pixel object at 00000000048FED70>}
歡迎光臨 TShopping (http://www.tshopping.com.tw/) | Powered by Discuz! X3.2 |