2015. 2. 11. 04:14
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

#! -*- coding: utf-8 -*-

from Tkinter import *

class Text2(Frame):
  def __init__(self, master, width=0, height=0, **kwargs):
    self.width=width
    self.height=height

    Frame.__init__(self, master,width=self.width,height=self.height)
    self.text_widget=Text(self,**kwargs)
    self.text_widget.pack(expand=YES, fill=BOTH)
 
  def pack(self,*args,**kwargs):
    Frame.pack(self,*args, **kwargs)
    self.pack_propagate(False)

  def grid(self,*args,**kwargs):
    Frame.grid(self,*args,**kwargs)
    self.grid_propagate(False)

root=Tk()

Text2(root,width=900,height=1200).pack()

root.mainloop()



'Python' 카테고리의 다른 글

socket_server.py / socket_client.py  (0) 2015.02.12
draggableNote.py  (0) 2015.02.12
shortUrlGenerator.py  (0) 2015.02.11
primeNumber.py  (0) 2015.02.09
externalEditor.py  (0) 2015.02.09
Posted by af334