MCPcopy Create free account
hub / github.com/ActiveState/code / QuoteFrame

Class QuoteFrame

recipes/Python/580729_Metro_UI_Tkinter/recipe-580729.py:490–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488 return self._ID
489
490class 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
506class Metro_LabelFrame(Frame):
507 HEADER_BACKGROUND = "#1ba1e2"

Callers 1

recipe-580729.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected