Created
March 23, 2011 11:59
-
-
Save stevennathaniel/882999 to your computer and use it in GitHub Desktop.
Menambahkan Warna Pada Tanda Panah di Counter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Tkinter | |
root = Tkinter.Tk() | |
import Pmw | |
Pmw.initialise(root) | |
counter5 = Pmw.Counter(increment=2) | |
counter5.pack(padx = 10, pady = 10) | |
counter5.setentry(50) | |
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) | |
root.mainloop() | |
# http://twitter.com/bpptwiter | |
# http://stevennathaniel.blogspot.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment