Posted By

stevennathaniel on 03/25/11


Tagged

background arrow


Versions (?)

counter5.py


 / Published in: Python
 

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

cara mengubah warna tanda panah di counter.

  1. import Tkinter
  2. root = Tkinter.Tk()
  3. import Pmw
  4. Pmw.initialise(root)
  5.  
  6. counter5 = Pmw.Counter(increment=2)
  7. counter5.pack(padx = 10, pady = 10)
  8. counter5.setentry(50)
  9. counter5.configure(downarrow_background = 'green', uparrow_background = 'red') # Berguna untuk mengubah warna anak panah ke atas menjadi warna merah, anak panah ke bawah menjadi warna hijau)
  10.  
  11. root.mainloop()
  12.  
  13.  
  14. # http://twitter.com/bpptwiter
  15. # http://stevennathaniel.blogspot.com/

Report this snippet  

You need to login to post a comment.