Posted By

stevennathaniel on 03/25/11


Tagged

Orient


Versions (?)

Counter3.py


 / Published in: Python
 

URL: http://stevennathaniel.blogspot.com/

cara membuat orientasi counter menjadi Vertical

  1. import Tkinter
  2. root = Tkinter.Tk()
  3. import Pmw
  4. Pmw.initialise(root)
  5.  
  6. counter3 = Pmw.Counter(orient = 'vertical', increment = 2) # orient berguna untuk menentukan format tanda panah, apakah vertical atau horizontal
  7.  
  8. counter3.pack(padx = 10, pady = 10)
  9. counter3.setentry(50)
  10.  
  11. print counter3.configure('increment')
  12. print counter3.configure('orient')
  13.  
  14. root.mainloop()
  15.  
  16.  
  17. # http://stevennathaniel.blogspot.com/
  18. # http://twitter.com/bpptwiter

Report this snippet  

You need to login to post a comment.