| 488 | return self._ID |
| 489 | |
| 490 | class QuoteFrame(Frame): |
| 491 | CONTENT_BACKGROUND = "#eeeeee" |
| 492 | CONTENT_PADDING = 10 |
| 493 | LEFT_BORDER_COLOR = "#555555" |
| 494 | LEFT_BORDER_WIDTH = 6 |
| 495 | |
| 496 | def __init__(self,master=None, text=None, ID=None): |
| 497 | Frame.__init__(self, master, ID=ID, background = self.CONTENT_BACKGROUND) |
| 498 | Frame(self, background=self.LEFT_BORDER_COLOR, width=self.LEFT_BORDER_WIDTH).pack(side=LEFT, fill=Y) |
| 499 | |
| 500 | self.body = Container(self, background = self.CONTENT_BACKGROUND, padx=self.CONTENT_PADDING, pady=self.CONTENT_PADDING) |
| 501 | self.body.pack(expand=True, fill=BOTH) |
| 502 | |
| 503 | if text is not None: |
| 504 | Label(self.body, text=text).pack(anchor=W) |
| 505 | |
| 506 | class Metro_LabelFrame(Frame): |
| 507 | HEADER_BACKGROUND = "#1ba1e2" |