From rikudou__sennin at outlook.com Thu Nov 2 16:20:12 2017 From: rikudou__sennin at outlook.com (adil gourinda) Date: Thu, 2 Nov 2017 20:20:12 +0000 Subject: [Tkinter-discuss] Tk_Get to Tkinter Message-ID: I need help, I want to find an equivalent of Tk_GetPixels and Tk_GetVisual in Tkinter but I don't know how they are mapped to Tkinter and I found the syntax difficult, Does Tk_GetPixels just means "screen units"(cm, inch, mm)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From storchaka at gmail.com Sat Nov 4 07:43:12 2017 From: storchaka at gmail.com (Serhiy Storchaka) Date: Sat, 4 Nov 2017 13:43:12 +0200 Subject: [Tkinter-discuss] tcl/tk's syntax to python's syntax In-Reply-To: <20171023112719.b88546be956edfcf3656afc6@web.de> References: <20171023112719.b88546be956edfcf3656afc6@web.de> Message-ID: 23.10.17 12:27, Michael Lange ????: > Actually the widgets' names (as "b" and "f" in the above example) go to > the widget's "name" option in Python, which is hardly ever used though > (in Tkinter we usually let Python assign the widget names automatically > which leads to something that looks like ".1234567890.1234567891" instead > of ".f.b"). In Python 3.6 automatically assigned names look more human-readable, e.g. ".!frame2.!button5". From rikudou__sennin at live.com Thu Nov 9 14:51:16 2017 From: rikudou__sennin at live.com (adil gourinda) Date: Thu, 9 Nov 2017 19:51:16 +0000 Subject: [Tkinter-discuss] Cursors Message-ID: Where the cursors are stored in the file system ? And if I want to make my own cursors, to which file's format I should convert the images? I work on kubuntu 17.04 LTS -------------- next part -------------- An HTML attachment was scrubbed... URL: From klappnase at web.de Sat Nov 11 07:42:45 2017 From: klappnase at web.de (Michael Lange) Date: Sat, 11 Nov 2017 13:42:45 +0100 Subject: [Tkinter-discuss] Cursors In-Reply-To: References: Message-ID: <20171111134245.f1216ed07d142fd9830b3daa@web.de> Hi, On Thu, 9 Nov 2017 19:51:16 +0000 adil gourinda wrote: > Where the cursors are stored in the file system ? in Debian the cursors appear to be in /usr/X11R6/lib/X11/icons , probably it's the same with Ubuntu. > And if I want to make > my own cursors, to which file's format I should convert the images? I > work on kubuntu 17.04 LTS There is a page on the Tcl wiki where this is discussed in detail: http://wiki.tcl.tk/8674 The exact procedure depends on the platform in use. On X11 you will have to store the cursor data in an xbm (X-bitmap) file, then you can do something like: root = Tk() b = Button(root, text='Close', cursor=('@example.xbm', 'green'), command=root.quit) b.pack(padx=100, pady=100) root.mainloop() Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. But it's real. And if it's real it can be affected ... we may not be able to break it, but, I'll bet you credits to Navy Beans we can put a dent in it. -- deSalle, "Catspaw", stardate 3018.2 From rikudou__sennin at live.com Wed Nov 22 16:03:38 2017 From: rikudou__sennin at live.com (adil gourinda) Date: Wed, 22 Nov 2017 21:03:38 +0000 Subject: [Tkinter-discuss] Tkinter option-value Message-ID: I noticed that the Tk's option-value are translated in Tkinter in two forms: Tk -----------: option value Python 1st form: option = tkinter.VALUE 2nd form: option = 'value' The 2nd form is closer to Tk's syntax but when it was introduced in Tkinter because it is the 1st syntax which I found in book. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryan.oakley at gmail.com Wed Nov 22 23:19:29 2017 From: bryan.oakley at gmail.com (Bryan Oakley) Date: Wed, 22 Nov 2017 22:19:29 -0600 Subject: [Tkinter-discuss] Tkinter option-value In-Reply-To: References: Message-ID: Are you asking a question, or just mentioning an observation. Personally I find the use of tkinter constants a bit silly. I see no point in using something like tkinter.END instead of "end". I always recommend that people learn to use the string form rather than the constant. On Wed, Nov 22, 2017 at 3:03 PM, adil gourinda wrote: > I noticed that the Tk's option-value are translated in Tkinter in two > forms: > Tk -----------: option value > Python 1st form: option = tkinter.VALUE > 2nd form: option = 'value' > The 2nd form is closer to Tk's syntax but when it was introduced in > Tkinter because it is the 1st syntax which I found in book. > > > > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > https://mail.python.org/mailman/listinfo/tkinter-discuss > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From klappnase at web.de Thu Nov 23 05:50:02 2017 From: klappnase at web.de (Michael Lange) Date: Thu, 23 Nov 2017 11:50:02 +0100 Subject: [Tkinter-discuss] Tkinter option-value In-Reply-To: References: Message-ID: <20171123115002.eeb18174904f28e8d6930334@web.de> On Wed, 22 Nov 2017 22:19:29 -0600 Bryan Oakley wrote: > Personally I find the use of tkinter constants a bit silly. I see no > point in using something like tkinter.END instead of "end". I always > recommend that people learn to use the string form rather than the > constant. +1 :) Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Genius doesn't work on an assembly line basis. You can't simply say, "Today I will be brilliant." -- Kirk, "The Ultimate Computer", stardate 4731.3