From eliswilson at hushmail.com Wed May 1 01:07:34 2013 From: eliswilson at hushmail.com (eliswilson at hushmail.com) Date: Tue, 30 Apr 2013 19:07:34 -0400 Subject: [Tkinter-discuss] Biggest Fake Conference in Computer Science Message-ID: <20130430230735.0D54BE6736@smtp.hushmail.com> Biggest Fake Conference in Computer Science We are researchers from different parts of the world and conducted a study on the world?s biggest bogus computer science conference WORLDCOMP http://sites.google.com/site/worlddump1 organized by Prof. Hamid Arabnia from University of Georgia, USA. We submitted a fake paper to WORLDCOMP 2011 and again (the same paper with a modified title) to WORLDCOMP 2012. This paper had numerous fundamental mistakes. Sample statements from that paper include: (1). Binary logic is fuzzy logic and vice versa (2). Pascal developed fuzzy logic (3). Object oriented languages do not exhibit any polymorphism or inheritance (4). TCP and IP are synonyms and are part of OSI model (5). Distributed systems deal with only one computer (6). Laptop is an example for a super computer (7). Operating system is an example for computer hardware Also, our paper did not express any conceptual meaning. However, it was accepted both the times without any modifications (and without any reviews) and we were invited to submit the final paper and a payment of $500+ fee to present the paper. We decided to use the fee for better purposes than making Prof. Hamid Arabnia richer. After that, we received few reminders from WORLDCOMP to pay the fee but we never responded. This fake paper is different from the two fake papers already published (see https://sites.google.com/site/worlddump4 for details) in WORLDCOMP. We MUST say that you should look at the above website if you have any thoughts of participating in WORLDCOMP. DBLP and other indexing agencies have stopped indexing WORLDCOMP?s proceedings since 2011 due to its fakeness. See http://www.informatik.uni-trier.de/~ley/db/conf/icai/index.html for of one of the conferences of WORLDCOMP and notice that there is no listing after 2010. See Section 2 of http://sites.google.com/site/dumpconf for comments from well-known researchers about WORLDCOMP. The status of your WORLDCOMP papers can be changed from scientific to other (i.e., junk or non-technical) at any time. Better not to have a paper than having it in WORLDCOMP and spoil the resume and peace of mind forever! Our study revealed that WORLDCOMP is money making business, using University of Georgia mask, for Prof. Hamid Arabnia. He is throwing out a small chunk of that money (around 20 dollars per paper published in WORLDCOMP?s proceedings) to his puppet (Mr. Ashu Solo or A.M.G. Solo) who publicizes WORLDCOMP and also defends it at various forums, using fake/anonymous names. The puppet uses fake names and defames other conferences to divert traffic to WORLDCOMP. He also makes anonymous phone calls and threatens the critiques of WORLDCOMP (See Item 7 of Section 5 of above website). That is, the puppet does all his best to get a maximum number of papers published at WORLDCOMP to get more money into his (and Prof. Hamid Arabnia?s) pockets. Prof. Hamid Arabnia makes a lot of tricks. For example, he appeared in a newspaper to fool the public, claiming him a victim of cyber-attack (see Item 8 in Section 5 of above website). Monte Carlo Resort (the venue of WORLDCOMP for more than 10 years, until 2012) has refused to provide the venue for WORLDCOMP?13 because of the fears of their image being tarnished due to WORLDCOMP?s fraudulent activities. That is why WORLDCOMP?13 is taking place at a different resort. WORLDCOMP will not be held after 2013. The draft paper submission deadline is over but still there are no committee members, no reviewers, and there is no conference Chairman. The only contact details available on WORLDCOMP?s website is just an email address! We ask Prof. Hamid Arabnia to publish all reviews for all the papers (after blocking identifiable details) since 2000 conference. Reveal the names and affiliations of all the reviewers (for each year) and how many papers each reviewer had reviewed on average. We also ask him to look at the Open Challenge (Section 6) at https://sites.google.com/site/moneycomp1 and respond if he has any professional values. Sorry for posting to multiple lists. Spreading the word is the only way to stop this bogus conference. Please forward this message to other mailing lists and people. We are shocked with Prof. Hamid Arabnia and his puppet?s activities at http://worldcomp-fake-bogus.blogspot.com Search Google using the keyword worldcomp fake for additional links. From alejandroautalan at gmail.com Wed May 1 06:32:10 2013 From: alejandroautalan at gmail.com (Alejandro Autalan) Date: Wed, 1 May 2013 01:32:10 -0300 Subject: [Tkinter-discuss] tkinter gui builder Message-ID: Hello all, I'm working on a simple gui builder for tkinter similar to Glade (the gtk builder). It is Not finished yet and there is little documentation. However, I invite you to try it and comment or make suggestions. There are some examples that you can follow. I named it pygubu, the code is here: https://github.com/alejandroautalan/pygubu As I said, comments and suggestions are welcome, enjoy it. Regards Alejandro A. From chitrankdixit at gmail.com Sun May 12 08:03:33 2013 From: chitrankdixit at gmail.com (Chitrank Dixit) Date: Sun, 12 May 2013 11:33:33 +0530 Subject: [Tkinter-discuss] Making a MDI GUI using Tkinter Message-ID: Hello Python Developers I am working on an application that should support the Multiple documents in a wrapper called MDI. But I am unable to do that. I want to ask some questions below 1) using a container that suits MDI ( Frame or Canvas or anything else). 2) When button pressed for option1 one then show option1 and when button pressed for option2 show option2 and when again pressed for option1 it should come up as the front window. 3) The following wrapper should also support as an image holder like canvas or can hold the canvas to show the images. *Regards * *Chitrank Dixit * *IIPS-DAVV * *Indore (M.P.) , India * *MCA * *trackleech.blogspot.in* -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.odonnell at uam.es Sun May 12 10:54:14 2013 From: michael.odonnell at uam.es (Michael O'Donnell) Date: Sun, 12 May 2013 10:54:14 +0200 Subject: [Tkinter-discuss] Making a MDI GUI using Tkinter In-Reply-To: References: Message-ID: Dear Chitrank Dixit, There are no questions in your list. What is it you want to know? Probably more information is needed, as I can't guess what you need to know. Mick On Sun, May 12, 2013 at 8:03 AM, Chitrank Dixit wrote: > Hello Python Developers > > I am working on an application that should support the Multiple documents in > a wrapper called MDI. But I am unable to do that. I want to ask some > questions below > > 1) using a container that suits MDI ( Frame or Canvas or anything else). > > 2) When button pressed for option1 one then show option1 and when button > pressed for option2 show option2 and when again pressed for option1 it > should come up as the front window. > > 3) The following wrapper should also support as an image holder like canvas > or can hold the canvas to show the images. > > > > > Regards > Chitrank Dixit > IIPS-DAVV > Indore (M.P.) , India > MCA > trackleech.blogspot.in > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > -- Not sent from my iPhone From mid.tier at gmail.com Sun May 12 21:10:33 2013 From: mid.tier at gmail.com (mid.tier) Date: Mon, 13 May 2013 01:10:33 +0600 Subject: [Tkinter-discuss] Making a MDI GUI using Tkinter In-Reply-To: References: Message-ID: Hello, I am the developer of a small library that allows you to create an application with an interface similar to MDI/SDI. Perhaps, this library will be useful for your project. The latest stable version: https://pypi.python.org/pypi/pytkapp The latest assembly: http://sourceforge.net/projects/pytkapp/files Best wishes, Paul "Mid.Tier" e-mail: mid.tier at gmail.com From quakig at live.com Wed May 15 12:01:32 2013 From: quakig at live.com (Quaki Gaffar) Date: Wed, 15 May 2013 15:31:32 +0530 Subject: [Tkinter-discuss] Button Press Freezes Message-ID: Here's my situation. I have two tkinter buttons: Play Button: plays a sound Stop Button: to stop the sound during play Code is as follows: def Play(self): //plays a file with pygame module def Stop(self): //Stop using pygame stop Button( root, text ='Play', command= Play).pack() Button( root, text ='Stop', command= Stop).pack() The issue is that, when I click the 'Play' button, it stays pressed until it completes playing the sound, freezing the entire program, not allowing me to press 'stop' button during that time. How do i prevent the program from freezing while the play is in progress to allow me to do other things like stop? i tried a suggestion proposed here, but it does not work. Any ideas would be greatly appreciated :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From klappnase at web.de Wed May 15 17:49:56 2013 From: klappnase at web.de (Michael Lange) Date: Wed, 15 May 2013 17:49:56 +0200 Subject: [Tkinter-discuss] Button Press Freezes In-Reply-To: References: Message-ID: <20130515174956.defe5f1f.klappnase@web.de> Hi, On Wed, 15 May 2013 15:31:32 +0530 Quaki Gaffar wrote: > Here's my situation. I have two tkinter buttons: > > Play Button: plays a sound > Stop Button: to stop the sound during play > > Code is as follows: > > def Play(self): > //plays a file with pygame module > > def Stop(self): > //Stop using pygame stop > > > Button( root, text ='Play', command= Play).pack() > Button( root, text ='Stop', command= Stop).pack() > > The issue is that, when I click the 'Play' button, it stays pressed > until it completes playing the sound, freezing the entire program, not > allowing me to press 'stop' button during that time. > > How do i prevent the program from freezing while the play is in > progress to allow me to do other things like stop? I never used pygame myself, so I can only guess that the pygame method you use (pygame.mixer.music.play()?) does not return until the playback is done. If this is the case, you will have to use a background thread to do the playback. This is not necessarily overly complicated and perfectly safe as long as you make sure that the tk gui runs in the main program thread and that you must never do any calls to tk methods from within any of the child threads; see here: http://code.activestate.com/lists/python-tkinter-discuss/3138/ for a (however quite primitive and useless) example of a basic technique for setting up threaded Tkinter programs. Otoh, if you only need some simple audio playback and not necessarily require pygame, there might be other python libs available that can handle this, for example iirc tkSnack (http://www.speech.kth.se/snack/) supports non-blocking playback (though tkSnack today is rather dated, but probably still works with Python2.x). There are also PyAudio and Pyglet and maybe others, however I never used any of them myself. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Without freedom of choice there is no creativity. -- Kirk, "The return of the Archons", stardate 3157.4 From greg.ewing at canterbury.ac.nz Thu May 16 04:08:10 2013 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Thu, 16 May 2013 14:08:10 +1200 Subject: [Tkinter-discuss] Button Press Freezes In-Reply-To: <20130515174956.defe5f1f.klappnase@web.de> References: <20130515174956.defe5f1f.klappnase@web.de> Message-ID: <51943F8A.4010103@canterbury.ac.nz> On 16/05/13 03:49, Michael Lange wrote: > I never used pygame myself, so I can only guess that the pygame method > you use (pygame.mixer.music.play()?) does not return until the playback is > done. No, music.play() is not supposed to block. However, I haven't tried to use it outside the context of a pygame app, so I don't know how it behaves if there isn't a pygame event loop running. -- Greg From klappnase at web.de Sat May 18 15:14:53 2013 From: klappnase at web.de (Michael Lange) Date: Sat, 18 May 2013 15:14:53 +0200 Subject: [Tkinter-discuss] Button Press Freezes In-Reply-To: <51943F8A.4010103@canterbury.ac.nz> References: <20130515174956.defe5f1f.klappnase@web.de> <51943F8A.4010103@canterbury.ac.nz> Message-ID: <20130518151453.713be855.klappnase@web.de> Hi, On Thu, 16 May 2013 14:08:10 +1200 Greg Ewing wrote: > No, music.play() is not supposed to block. However, I haven't tried to > use it outside the context of a pygame app, so I don't know how it > behaves if there isn't a pygame event loop running. Ok, now I got curious and gave it a try and programmed the simplest TkinterMediaPlayer(TM) (see below :), works like a charm here, so it seems like the OP's problem lies somewhere else. Quaki, maybe you could provide us a simple code snippet that shows your problem? Regards Michael ############################################################## from Tkinter import * import pygame.mixer as mix from tkFileDialog import askopenfilename from tkMessageBox import showerror mix.init() filename = None def browse(): global filename f = askopenfilename() if f: filename = f def play(): mix.music.stop() if filename: try: mix.music.load(filename) mix.music.play() except: showerror(message='Something went wrong :(') else: showerror(message='No file selected') def stop(): mix.music.stop() root = Tk() Button(root, text='Play', command=play).pack( side='left', padx=20, pady=50) Button(root, text='Stop', command=stop).pack( side='left', padx=20, pady=50) Button(root, text='Browse...', command=browse).pack( side='left', padx=20, pady=50) root.mainloop() ############################################################### .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Virtue is a relative term. -- Spock, "Friday's Child", stardate 3499.1 From li.beinan at gmail.com Sun May 19 00:09:43 2013 From: li.beinan at gmail.com (Beinan Li) Date: Sat, 18 May 2013 18:09:43 -0400 Subject: [Tkinter-discuss] tkinter extensions Message-ID: Hi Tkinter, I'm new to the list and have to confess that I'm a newbie that needs recommendations on high-level (compound) widgets based on tkinter. As far as I understand, I assume ttk has quite a number of high-level widgets such as notebook, but the inventory is still not as big as one may find in other toolkits like wx or qt. >From tkinter website (http://wiki.python.org/moin/TkInter), I saw a list of extensions: - Pmw (http://pmw.sourceforge.net) - Tix ( http://www.python.org/doc/current/lib/module-Tix.html) - TkZinc (http://www.tkzinc.org) - Tkinter3000 ( http://tkinter.effbot.org) - How Tkinter can exploit Tcl/Tk extensions But not sure if that list still up to date. Correct me if I'm wrong please. I followed the links and found that at least Pmw, TkZink (last update 2007, http://www.tkzinc.org/news/) and Tkinter3000 (last update in 2006: http://effbot.org/zone/wck.htm) are not under active dev. Tix looks like already part of the stdlib, but this page ( http://stackoverflow.com/questions/12499465/tix-tutorials-in-python) suggests that ttk can largely replace it. Personally I doubt it because if that were the case, Tix (py2) or tkinter.tix (py3) wouldn't coexist with ttk for this long. But I don't see a lot of tutorials about how to use Tix with tkinter. That stackoverflow post is probably the closest clue I can find. So I wonder if Tix has been widely adopted. Then about using Tcl/Tk extensions directly ( http://wiki.python.org/moin/How%20Tkinter%20can%20exploit%20Tcl/Tk%20extensions ) that seems to be the technique used by tkinter.tix under the hood (?). I wonder, from your experience, if this approach can provide acceptable stability and performance. Please feel free to give other recommendations about compound widgets if any. If you'd say that Tix is my best bet then any docs or resources about it would be welcomed. Thanks, Beinan -------------- next part -------------- An HTML attachment was scrubbed... URL: From kw at codebykevin.com Sun May 19 00:36:11 2013 From: kw at codebykevin.com (Kevin Walzer) Date: Sat, 18 May 2013 18:36:11 -0400 Subject: [Tkinter-discuss] tkinter extensions In-Reply-To: References: Message-ID: <5198025B.1040809@codebykevin.com> Hi Benian, Tkinter indeed has a lot of extension packages. The Tkinter wiki is very hit-or-miss in listing and documenting them, however. > Pmw (http://pmw.sourceforge.net > ) PMW is somewhat outdated but still seems to be used in a lot of legacy Tkinter apps. It is a pure-Python package and thus is easy to install and use. > * > > Tix > (http://www.python.org/doc/current/lib/module-Tix.html) Tix is a binary (compiled) Tk extension with a Python wrapper. It is a pure legacy extension that is now little used in the Tcl/Tk world. It needs to be installed as part of Tcl/Tk before you can access it from Tkinter. > TkZinc (http://www.tkzinc.org > ) Zinc is an enhanced Tkinter canvas extension that is, AFAIK, no longer developed. * > > Tkinter3000 > (http://tkinter.effbot.org > ) I think this is a long-abandoned project of Frederick Lundh that he never bothered to remove from his website. > How Tkinter can exploit Tcl/Tk extensions > This page is not a list of extensions per se but documents how you can call into Tcl/Tk and access the functionality of Tk extensions written in Tcl even if they do not have a Python wrapper. This is very valuable knowledge to have--it is how I access a wide range of Tk packages in my apps. To these, I'd add one more useful widget extension package--Jeff Epler's wrapper for BWidgets, which is a very nice widget extension package for Tcl/Tk. Unlike Tix, BWidgets is still widely used in Tcl/Tk apps and is still actively developed as well. Here's the link for his package: http://tkinter.unpythonic.net/bwidget/ BWidgets is now up to 1.9.x, the 1.7 release has some bugs, but the package bundled with Jeff's code will at least help you get started. HTH, Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com From john at nmt.edu Sun May 19 03:52:33 2013 From: john at nmt.edu (John W. Shipman) Date: Sat, 18 May 2013 19:52:33 -0600 (MDT) Subject: [Tkinter-discuss] tkinter extensions In-Reply-To: References: Message-ID: On Sat, 18 May 2013, Beinan Li wrote: +-- | I'm new to the list and have to confess that I'm a newbie | that needs recommendations on high-level (compound) widgets based on | tkinter. | As far as I understand, I assume ttk has quite a number of high-level | widgets such as notebook, | but the inventory is still not as big as one may find in other toolkits | like wx or qt. +-- I'm not familiar with Tkinter extensions, but here is a quick reference for Tkinter 8.5, including ttk: http://www.nmt.edu/tcc/help/pubs/tkinter/ The ttk module does include Notebook and Treeview and a few other new ones. I'm quite curious what widgets you need that are not in the basic product. Best regards, John Shipman (john at nmt.edu), Applications Specialist New Mexico Tech Computer Center, Speare 146, Socorro, NM 87801 (575) 835-5735, http://www.nmt.edu/~john ``Let's go outside and commiserate with nature.'' --Dave Farber From alejandroautalan at gmail.com Sun May 19 07:43:55 2013 From: alejandroautalan at gmail.com (Alejandro Autalan) Date: Sun, 19 May 2013 02:43:55 -0300 Subject: [Tkinter-discuss] tkinter extensions In-Reply-To: References: Message-ID: 2013/5/18 Beinan Li : > Hi Tkinter, > > I'm new to the list and have to confess that I'm a newbie > that needs recommendations on high-level (compound) widgets based on > tkinter. > As far as I understand, I assume ttk has quite a number of high-level > widgets such as notebook, > but the inventory is still not as big as one may find in other toolkits like > wx or qt. > > From tkinter website (http://wiki.python.org/moin/TkInter), I saw a list of > extensions: > > Pmw (http://pmw.sourceforge.net) > > Tix (http://www.python.org/doc/current/lib/module-Tix.html) > > TkZinc (http://www.tkzinc.org) > > Tkinter3000 (http://tkinter.effbot.org) > > How Tkinter can exploit Tcl/Tk extensions > > But not sure if that list still up to date. > > Correct me if I'm wrong please. > I followed the links and found that at least Pmw, TkZink (last update 2007, > http://www.tkzinc.org/news/) > and Tkinter3000 (last update in 2006: http://effbot.org/zone/wck.htm) are > not under active dev. > > Tix looks like already part of the stdlib, but this page > (http://stackoverflow.com/questions/12499465/tix-tutorials-in-python) > suggests that ttk can largely replace it. Personally I doubt it because if > that were the case, Tix (py2) or tkinter.tix (py3) wouldn't > coexist with ttk for this long. But I don't see a lot of tutorials about how > to use Tix with tkinter. That stackoverflow post is probably > the closest clue I can find. So I wonder if Tix has been widely adopted. > > Then about using Tcl/Tk extensions directly > (http://wiki.python.org/moin/How%20Tkinter%20can%20exploit%20Tcl/Tk%20extensions) > that seems to be the technique used by tkinter.tix under the hood (?). I > wonder, from your experience, if this approach can provide > acceptable stability and performance. > > Please feel free to give other recommendations about compound widgets if > any. If you'd say that Tix is my best bet then any docs or > resources about it would be welcomed. > > Thanks, > Beinan > Hello Beinan, Maybe you can use Pygubu [1], a GUI builder that I'm working on, to build more complex widgets in a "easy" way. Includes the basic ttk widgets and some helpers and is inspired in Glade. Regards. [1] https://github.com/alejandroautalan/pygubu [2] http://www.nmt.edu/tcc/help/pubs/tkinter/ From li.beinan at gmail.com Sun May 19 22:30:01 2013 From: li.beinan at gmail.com (Beinan Li) Date: Sun, 19 May 2013 16:30:01 -0400 Subject: [Tkinter-discuss] tkinter extensions Message-ID: I'm going to reply to the three messages in this one post. @Kevin: Thank you very much, Kevin! I had good memories with BWidgets on Tk about 10 years ago (wow). Hope it now has even more to offer with tkinter. I'm also curious about the performance and stability of the extensions. Would they perform well with basic widgets together? @John: I'm interested in some specialized widgets I saw in other toolkits, such as the "rating" widget (NSLevelIndicator) in Cocoa. @Alejandro: It sounds like a good idea to have an RAD tool for designing widgets. I gave it a quick look. Does it support only python 3.2+(?) or is it just that it requires py3.2 to run the toolkit itself but it can also generate py2 stuff? Thanks again to your input, Beinan On Sun, May 19, 2013 at 1:43 AM, wrote: > > > ------------------------------ > > Message: 3 > Date: Sat, 18 May 2013 18:36:11 -0400 > From: Kevin Walzer > To: tkinter-discuss at python.org > Subject: Re: [Tkinter-discuss] tkinter extensions > Message-ID: <5198025B.1040809 at codebykevin.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Benian, > > Tkinter indeed has a lot of extension packages. The Tkinter wiki is very > hit-or-miss in listing and documenting them, however. > > > > Pmw (http://pmw.sourceforge.net > > ) > > PMW is somewhat outdated but still seems to be used in a lot of legacy > Tkinter apps. It is a pure-Python package and thus is easy to install > and use. > > > * > > > > Tix > > ( > http://www.python.org/doc/current/lib/module-Tix.html) > > Tix is a binary (compiled) Tk extension with a Python wrapper. It is a > pure legacy extension that is now little used in the Tcl/Tk world. It > needs to be installed as part of Tcl/Tk before you can access it from > Tkinter. > > > > TkZinc (http://www.tkzinc.org > > ) > > Zinc is an enhanced Tkinter canvas extension that is, AFAIK, no longer > developed. > > * > > > > Tkinter3000 > > (http://tkinter.effbot.org > > ) > > I think this is a long-abandoned project of Frederick Lundh that he > never bothered to remove from his website. > > > > How Tkinter can exploit Tcl/Tk extensions > > < > http://wiki.python.org/moin/How%20Tkinter%20can%20exploit%20Tcl/Tk%20extensions > > > > This page is not a list of extensions per se but documents how you can > call into Tcl/Tk and access the functionality of Tk extensions written > in Tcl even if they do not have a Python wrapper. This is very valuable > knowledge to have--it is how I access a wide range of Tk packages in my > apps. > > To these, I'd add one more useful widget extension package--Jeff Epler's > wrapper for BWidgets, which is a very nice widget extension package for > Tcl/Tk. Unlike Tix, BWidgets is still widely used in Tcl/Tk apps and is > still actively developed as well. Here's the link for his package: > > http://tkinter.unpythonic.net/bwidget/ > > BWidgets is now up to 1.9.x, the 1.7 release has some bugs, but the > package bundled with Jeff's code will at least help you get started. > > HTH, > Kevin > > > -- > Kevin Walzer > Code by Kevin/Mobile Code by Kevin > http://www.codebykevin.com > http://www.wtmobilesoftware.com > > > ------------------------------ > > Message: 4 > Date: Sat, 18 May 2013 19:52:33 -0600 (MDT) > From: "John W. Shipman" > To: Beinan Li > Cc: tkinter-discuss at python.org > Subject: Re: [Tkinter-discuss] tkinter extensions > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > On Sat, 18 May 2013, Beinan Li wrote: > > +-- > | I'm new to the list and have to confess that I'm a newbie > | that needs recommendations on high-level (compound) widgets based on > | tkinter. > | As far as I understand, I assume ttk has quite a number of high-level > | widgets such as notebook, > | but the inventory is still not as big as one may find in other toolkits > | like wx or qt. > +-- > > I'm not familiar with Tkinter extensions, but here is a quick > reference for Tkinter 8.5, including ttk: > > http://www.nmt.edu/tcc/help/pubs/tkinter/ > > The ttk module does include Notebook and Treeview and a few other > new ones. > > I'm quite curious what widgets you need that are not in the basic > product. > > Best regards, > John Shipman (john at nmt.edu), Applications Specialist > New Mexico Tech Computer Center, Speare 146, Socorro, NM 87801 > (575) 835-5735, http://www.nmt.edu/~john > ``Let's go outside and commiserate with nature.'' --Dave Farber > > > ------------------------------ > > Message: 5 > Date: Sun, 19 May 2013 02:43:55 -0300 > From: Alejandro Autalan > To: li.beinan at gmail.com > Cc: "tkinter-discuss at python.org" > Subject: Re: [Tkinter-discuss] tkinter extensions > Message-ID: > < > CAMicNw3weKeZ2RTtRwEB8+yEy3rRef7Bb7uisPMViPjwct12sw at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > 2013/5/18 Beinan Li : > > Hi Tkinter, > > > > I'm new to the list and have to confess that I'm a newbie > > that needs recommendations on high-level (compound) widgets based on > > tkinter. > > As far as I understand, I assume ttk has quite a number of high-level > > widgets such as notebook, > > but the inventory is still not as big as one may find in other toolkits > like > > wx or qt. > > > > From tkinter website (http://wiki.python.org/moin/TkInter), I saw a > list of > > extensions: > > > > Pmw (http://pmw.sourceforge.net) > > > > Tix (http://www.python.org/doc/current/lib/module-Tix.html) > > > > TkZinc (http://www.tkzinc.org) > > > > Tkinter3000 (http://tkinter.effbot.org) > > > > How Tkinter can exploit Tcl/Tk extensions > > > > But not sure if that list still up to date. > > > > Correct me if I'm wrong please. > > I followed the links and found that at least Pmw, TkZink (last update > 2007, > > http://www.tkzinc.org/news/) > > and Tkinter3000 (last update in 2006: http://effbot.org/zone/wck.htm) > are > > not under active dev. > > > > Tix looks like already part of the stdlib, but this page > > (http://stackoverflow.com/questions/12499465/tix-tutorials-in-python) > > suggests that ttk can largely replace it. Personally I doubt it because > if > > that were the case, Tix (py2) or tkinter.tix (py3) wouldn't > > coexist with ttk for this long. But I don't see a lot of tutorials about > how > > to use Tix with tkinter. That stackoverflow post is probably > > the closest clue I can find. So I wonder if Tix has been widely adopted. > > > > Then about using Tcl/Tk extensions directly > > ( > http://wiki.python.org/moin/How%20Tkinter%20can%20exploit%20Tcl/Tk%20extensions > ) > > that seems to be the technique used by tkinter.tix under the hood (?). I > > wonder, from your experience, if this approach can provide > > acceptable stability and performance. > > > > Please feel free to give other recommendations about compound widgets if > > any. If you'd say that Tix is my best bet then any docs or > > resources about it would be welcomed. > > > > Thanks, > > Beinan > > > > Hello Beinan, > > Maybe you can use Pygubu [1], a GUI builder that I'm working on, to > build more complex widgets in a "easy" way. > Includes the basic ttk widgets and some helpers and is inspired in Glade. > > Regards. > > [1] https://github.com/alejandroautalan/pygubu > [2] http://www.nmt.edu/tcc/help/pubs/tkinter/ > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > > > ------------------------------ > > End of Tkinter-discuss Digest, Vol 111, Issue 5 > *********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kw at codebykevin.com Mon May 20 01:09:39 2013 From: kw at codebykevin.com (Kevin Walzer) Date: Sun, 19 May 2013 19:09:39 -0400 Subject: [Tkinter-discuss] tkinter extensions In-Reply-To: References: Message-ID: <51995BB3.9040901@codebykevin.com> On 5/19/13 4:30 PM, Beinan Li wrote: > > @Kevin: Thank you very much, Kevin! I had good memories with BWidgets on > Tk about 10 years ago (wow). Hope it now has even more to offer with > tkinter. I'm also curious about the performance and stability of the > extensions. Would they perform well with basic widgets together? I've not observed any difference in the performance of BWidgets and standard widgets. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com From micko at wagsoft.com Wed May 29 18:03:21 2013 From: micko at wagsoft.com (Michael O'Donnell) Date: Wed, 29 May 2013 18:03:21 +0200 Subject: [Tkinter-discuss] Macosx Tk colors changed Message-ID: Dear all, My application manages the window appearance by building a frame with gifs, and filling with a background color that should be identical to that of the gifs. This has been fine under all versions of Python up to and including 3.3.2. But under 3.3.2 on MACOSX, Idle recommended I upgrade to Tk 8.5.14 (previously I had 8.5.9), so I upgraded from ActiveState. Now, the background color is a shade or two lighter than the gifs, making my interface look clunky. When I move back to Windows, where the Python installer for 3.3.2 includes Tk 8.5.11, I have no problem. So I am not sure if it is Tk version after 11, or if it is a later version but just on the Mac. Does anyone know anything about changes to Tk colour rendering that might explain this. A test case is below (Python 3), with the required GIF file in attachment. If all is fine, the canvas presents a uniform gray. If there is a small lighter gray square in the middle, then you have duplicated the problem. import tkinter root = tkinter.Tk() print("TK Version: ", root.getvar("tk_patchLevel")) c=tkinter.Canvas(root, bg="#bbc0c6", height=100, width=100) c.pack(side='left') button=tkinter.PhotoImage(file="left.gif") c.create_image(50, 50, anchor="nw", image=button) root.mainloop() Any help welcome, Mick -------------- next part -------------- A non-text attachment was scrubbed... Name: left.gif Type: image/gif Size: 74 bytes Desc: not available URL: From bob at passcal.nmt.edu Wed May 29 18:26:16 2013 From: bob at passcal.nmt.edu (Bob Greschke) Date: Wed, 29 May 2013 10:26:16 -0600 Subject: [Tkinter-discuss] Macosx Tk colors changed In-Reply-To: References: Message-ID: <0FC1E3A1-EE31-4C3E-AD32-CC164DD0E8D5@passcal.nmt.edu> This doesn't explain anything, but in my programs I just have this global color pallet that I use for everything. Color "D" is set to whatever the system color is for widgets. Then I just use that for, for example, making "greyed out" Entry fields the same color as their surroundings. Throughout my code it's just like 'bg = Clr["R"]' or whatever. Initially the idea behind this was so that if someone was using my programs who was colorblind, they could just do a menu selection, then a function would change the appropriate values in the dictionary (like different options for different types of colorblindness), and the colors of everything would change. Never got around to that part, of course. :) # Just use RGB for everything since some things don't handle color names # correctly, like PIL on OSX doesn't handle "green" very well. # B = black, C = cyan, G = green, M = magenta, R = red, O = orange, W = white, # Y = yellow, E = light gray, A = gray, K = dark gray, U = blue, # N = dark green, S = dark red, y = dark yellow, D = default widget color, # u = light blue, s = salmon, p = light pink, g = light green, # r = a little lighter grey almost white, P = Purple, b = dark blue (was U for # years, but it can be hard to see) # Orange should be #FF7F00, but #DD5F00 is easier to see on a white background # and it still looks OK on a black background. Purple should be A020F0, but # that was a little dark. Clr = {"B":"#000000", "C":"#00FFFF", "G":"#00FF00", "M":"#FF00FF", \ "R":"#FF0000", "O":"#FF7F00", "W":"#FFFFFF", "Y":"#FFFF00", \ "E":"#DFDFDF", "A":"#8F8F8F", "K":"#3F3F3F", "U":"#0070FF", \ "N":"#007F00", "S":"#7F0000", "y":"#7F7F00", "D":Root.cget("bg"), \ "u":"#ADD8E6", "s":"#FA8072", "p":"#FFB6C1", "g":"#90EE90", \ "r":"#EFEFEF", "P":"#AA22FF", "b":"#0000FF"} On 2013-05-29, at 10:03, Michael O'Donnell wrote: > Dear all, > > My application manages the window appearance by building a frame with gifs, > and filling with a background color that should be identical to that > of the gifs. > > This has been fine under all versions of Python up to and > including 3.3.2. But under 3.3.2 on MACOSX, Idle recommended I upgrade > to Tk 8.5.14 (previously I had 8.5.9), so I upgraded from ActiveState. > > Now, the background color is a shade or two lighter than the gifs, > making my interface look clunky. > > When I move back to Windows, where the Python installer for 3.3.2 > includes Tk 8.5.11, I have no problem. So I am not sure if it is Tk version > after 11, or if it is a later version but just on the Mac. > > Does anyone know anything about changes to Tk colour rendering > that might explain this. > > A test case is below (Python 3), with the required GIF file in attachment. > If all is fine, the canvas presents a uniform gray. If there is a small > lighter gray square in the middle, then you have duplicated the problem. > > import tkinter > root = tkinter.Tk() > print("TK Version: ", root.getvar("tk_patchLevel")) > c=tkinter.Canvas(root, bg="#bbc0c6", height=100, width=100) > c.pack(side='left') > button=tkinter.PhotoImage(file="left.gif") > c.create_image(50, 50, anchor="nw", image=button) > root.mainloop() > > Any help welcome, > > Mick > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss From paul at tartan.co.za Thu May 30 20:06:06 2013 From: paul at tartan.co.za (Paul Malherbe) Date: Thu, 30 May 2013 20:06:06 +0200 Subject: [Tkinter-discuss] Menu Problem Message-ID: <51A7950E.80703@tartan.co.za> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: menu.py Type: text/x-python Size: 10562 bytes Desc: not available URL: From alejandroautalan at gmail.com Fri May 31 03:33:25 2013 From: alejandroautalan at gmail.com (Alejandro Autalan) Date: Thu, 30 May 2013 22:33:25 -0300 Subject: [Tkinter-discuss] Menu Problem In-Reply-To: <51A7950E.80703@tartan.co.za> References: <51A7950E.80703@tartan.co.za> Message-ID: 2013/5/30 Paul Malherbe > Hi > > I hope someone can help me with the following problem: > > I have attached a menu class which is part of a project I have written. > > As my main menu names can be multiple lines I am using the image facility, > without text, of Menu. However I cannot get an accelerate key to work. > > Can anyone please assist me? > -- > Regards > Paul Malherbe > > Hi paul, You can save the image width on the menu, and then calculate the position to post the menu. See the attached changes. I hope this helps. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: menu_patch Type: application/octet-stream Size: 1379 bytes Desc: not available URL: From paul at tartan.co.za Fri May 31 10:28:13 2013 From: paul at tartan.co.za (Paul Malherbe) Date: Fri, 31 May 2013 10:28:13 +0200 Subject: [Tkinter-discuss] Menu Problem In-Reply-To: References: <51A7950E.80703@tartan.co.za> Message-ID: <51A85F1D.3020708@tartan.co.za> Thanks Alejandro It works fine after 1 small further change: I changed: x = menu.menu_xpos to be x = self.mf.winfo_x + menu.menu_xpos Signature Regards Paul Malherbe Tartan Systems Phone: +27 (0)21-671-1866 Mobile: +27 (0)82-900-5260 Fax: +27 (0)86-262-1838 On 31/05/2013 03:33, Alejandro Autalan wrote: > > 2013/5/30 Paul Malherbe > > > Hi > > I hope someone can help me with the following problem: > > I have attached a menu class which is part of a project I have > written. > > As my main menu names can be multiple lines I am using the image > facility, without text, of Menu. However I cannot get an > accelerate key to work. > > Can anyone please assist me? > -- > > > Regards > > > > Paul Malherbe > > > Hi paul, > > You can save the image width on the menu, and then calculate the > position to post the menu. See the attached changes. > I hope this helps. > Regards. > > > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss