Beinan Li | 19 May 2013 00:09
Picon
Gravatar

tkinter extensions

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:
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.

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 


_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Quaki Gaffar | 15 May 2013 12:01

Button Press Freezes

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 :)
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Chitrank Dixit | 12 May 2013 08:03
Picon
Gravatar

Making a MDI GUI using Tkinter

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
Alejandro Autalan | 1 May 2013 06:32
Picon

tkinter gui builder

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.
eliswilson | 1 May 2013 01:07
Favicon

Biggest Fake Conference in Computer Science

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.

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Ouhammouchane anass | 23 Apr 2013 21:59
Picon

Aide

Bonsoir ,
 
Svp, je travaille sur un projet sur QGIS, et je suis amené à développer une extension qui va automatiser des requêtes.Je voulais savoir est ce qu'il y'a des documentations pour faire ça.
 
 
Merci

--
--
OUHAMMOUCHANE Anass
Élève Ingénieur Topographe.
Ecole des Sciences Géomatiques et Ingénierie Topographique.
IAV Hassan II - Rabat,Maroc
GSM: +212 6 37 09 19 50
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Alejandro Autalan | 11 Apr 2013 12:28
Picon

Strange 'tate' option in ttk.Treeview.heading

Hello,
I'm getting an strange 'tate'  property when calling treeview.heading() function.

Here is an example:

#-----
import sys
import tkinter as tk
import tkinter.ttk as ttk

print('Python version:', sys.version_info)
print('tk version:', tk.TkVersion)
print('ttk version:', ttk.__version__)

root = tk.Tk()
columns = ('A', 'B', 'C')
tv = ttk.Treeview(root, columns=columns )
for col in columns:
    tv.heading(col, text=col)
tv.heading('#0', text='Root')
tv.grid()

#get heading properties
properties= tv.heading('A')
# Print strangeous 'tate' property
print("strange 'tate' option", properties)
properties['anchor'] = tk.E

#error trying to set properties
tv.heading('A', **properties)

root.mainloop()

#end


This is the output:


Python version: sys.version_info(major=3, minor=3, micro=1, releaselevel='final', serial=0)
tk version: 8.5
ttk version: 0.3.1
strangeous 'tate' property {'image': '', 'anchor': 'center', 'tate': '', 'command': '', 'text': 'A'}
Traceback (most recent call last):
  File "../tkinter/tate-issue.py", line 24, in <module>
    tv.heading('A', **properties)
  File "/usr/lib/python3.3/tkinter/ttk.py", line 1268, in heading
    return _val_or_dict(kw, self.tk.call, self._w, 'heading', column)
  File "/usr/lib/python3.3/tkinter/ttk.py", line 311, in _val_or_dict
    res = func(*(args + options))
_tkinter.TclError: unknown option "-tate"


Where this option comes from?
Can someone try on another python version? Maybe this is a Bug?


Regards
Alejandro A
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
GKalman | 10 Apr 2013 16:42
Picon

question on winfo_height

  Please look  at the  following Tkinter code fragment:

#***
 frm=Frame(root,bg="cyan")
 frm.pack(side=TOP, fill=BOTH, expand=YES)
 h= frm.winfo_height()
print h, type(h)
#***

It returns  a value of h=1 and type= int

  I remember seeing somewhere that the returned a value of h=1 means that it 
is RELATIVE wrt something. 
Question:  how can I get the ABSOLUTE value for height.

BTW:
h= frm.cget("height") 
print h

results in a  value of h=0 !!!   why?

--
View this message in context: http://python.6.x6.nabble.com/question-on-winfo-height-tp5013753.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
Paul Simon | 9 Apr 2013 05:52
Favicon

Exit from method loop

Hi All,

I've attaached code simplified from my "opus" and have a problem.  I would 
like to exit from "read_sensor" into the main loop.  I cannot access the 
"stop" check button or the "quit" button while the intenal loop in 
"read_sensor" is running.  The internal loop is intended to run continuously 
until interrupted by the "stop" button but for demo purposes it is set to 10 
interations.

Paul Simon 

begin 666 focusset.py
M:6UP;W)T('1I;64*:6UP;W)T('-E<FEA; IF<F]M(%1K:6YT97( <at> :6UP;W)T
M("H*9VQO8F%L('H*9VQO8F%L(&-K"F1E9B!R96%D7W-E;G-O<BAE=F5N="DZ
M"B  <at> ("!G;&]B86P <at> > <at> H <at> ("  <at> <75I=%]B=71T;VXN9F]C=7-?<V5T"B  <at> ("!R
M;V]T+G5P9&%T95]I9&QE=&%S:W,H*0H <at> ("  <at> 9F]R(&D <at> :6X <at> <F%N9V4 <at> *#$P
M*3H*("  <at> ("  <at> ("!T:6UE+G-L965P*#$I"B  <at> ("  <at> ("  <at> <')I;G0 <at> (G)E861?
M<V5N<V]R(#T <at> (BQC:RYG970H*0H <at> ("  <at> ("  <at> ('H])SXK,"XV,3,Y*S N-3DU
M-2LP+C8P.#0K,"XU-S8V*S K,"<*("  <at> ("  <at> ("!R;V]T+G5P9&%T95]I9&QE
M=&%S:W,H*0H <at> ("  <at> ("  <at> (&-O=6YT*&5V96YT*0H <at> ("  <at> ("  <at> ('!R:6YT('H*
M"F1E9B!C;W5N=" H979E;G0I. <at> H <at> (&=L;V)A;"!Z"B  <at> <F]O="YU<&1A=&5?
M:61L971A<VMS*"D*("!P<FEN=" B8V]U;G0 <at> (#T <at> (BQC:RYG970H*0H <at> (&EF
M("AC:RYG970]/3$I. <at> H <at> ("  <at> ("!P<FEN=" B8V]U;G0R(#T <at> (BP <at> 8VLN9V5T
M*"D*"B  <at> >CUZ+FQS=')I<" <at> G*SXG*2YR<W1R:7 H*2YS<&QI=" <at> G*R<I"B  <at> 
M>2 ](%M="B  <at> 9F]R(&< <at> :6X <at> >CH*("  <at> ('DN87!P96YD*#$P,"IF;&]A="AG
M*2D*"B  <at> =&5X=%]B=71T;VXQ+F1E;&5T92 <at> Q+C L14Y$*2  <at> "B  <at> =&5X=%]B
M=71T;VXQ+FEN<V5R="A%3D0L('E;,%TI" <at> H <at> (')O;W0N=7!D871E7VED;&5T
M87-K<R <at> I" <at> HC+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM
M+2TM+2TM("  <at> ( IR;V]T(#T <at> 5&LH*0IR;V]T+F=E;VUE=')Y*"(U,#!X,C P
M*S$P,"LQ,# B*0IF<F%M92 ]($9R86UE*')O;W0L8F<](FQI9VAT(&=R87DB
M+"!W:61T:#TR,# L:&5I9VAT/3$P,"D*" <at> HC0F5N8V <at>  <at> ,0IT97AT7V)U='1O
M;C$ <at> /2!497AT*&9R86UE+&9G(#TB8FQA8VLB+&)G/2)L:6=H="!B;'5E(BQH
M96EG:'0],2QW:61T:#TV+')E;&EE9CU204E3140L(&9O;G0 <at> /2 B0V]U<FEE
M<B(I"G1E>'1?8G5T=&]N,2YC;VYF:6=U<F4H<&%D>#TB,FTB*0IT97AT7V)U
M='1O;C$N9W)I9"AR;W<],BP <at> 8V]L=6UN/3$I"FQA8F5L,3U,86)E;"AF<F%M
M92P <at> =&5X=#TB0F5N8V <at>  <at> ,2(L(&9G/2)B;&%C:R(L(&)G/2)L:6=H="!B;'5E
M(BP <at> 9F]N=#TB0V]U<FEE<BQ"3TQ$(BD*;&%B96PQ+F=R:60H<F]W/3(L<W1I
M8VMY/5<K12P <at> 8V]L=6UN/3 I" <at> H*(W)E861?<V5N<V]R"F)U='1O;C, <at> /2!"
M=71T;VXH9G)A;64L('1E>'0](E-405)4(BQF9STB<F5D(BD*8G5T=&]N,RYG
M<FED*')O=R ](# L(&-O;'5M;B ](# I"F)U='1O;C,N8FEN9" <at> B/$)U='1O
M;BTQ/B(L<F5A9%]S96YS;W(I" <at> HC0VAE8VL <at> 8G5T=&]N"F-K(#U);G1687(H
M*0IC:U]B=71T;VX]0VAE8VMB=71T;VXH9G)A;64L9F<](F)L86-K(BQI;F1I
M8V%T;W)O;CTQ+'1E>'0](E-T;W B+'9A<FEA8FQE/6-K*0IC:U]B=71T;VXN
M9W)I9"AR;W<],"QC;VQU;6X],RD*"B-1=6ET"G%U:71?8G5T=&]N(#T <at> 0G5T
M=&]N*&9R86UE+"!T97AT/2)154E4(BQF9STB<F5D(BP <at> 8V]M;6%N9#UR;V]T
M+F1E<W1R;WDI"G%U:71?8G5T=&]N+F=R:60H<F]W/3 L(&-O;'5M;CTT*0H*
I9G)A;64N<&%C:R <at> I("  <at> ("  <at> ( H <at> ("  <at> "G)O;W0N;6%I;FQO;W H*0H`
`
end
Todd Rovito | 31 Mar 2013 20:04
Picon
Gravatar

Bug with Tk Text Widget hi-lights disappear when text widget loses focus on Windows

Greetings,
     I was looking for some guidance on a issue(s) that popped up for IDLE on the issue tracker here:

But is starting to creep into other places such as the find and replace dialogs:

Recently I tested with Tk 8.5.13 and Tk 8.6 and both have the problem.  We created a small test program to demonstrate the issue without IDLE:
from tkinter import *main = Tk() text = Text(main, width=40, height=10, wrap="char") text.pack() text.insert(INSERT, "".join(map(str, range(100)))) text.tag_add(SEL, "1.0", "end") text.focus_set()def jump(): text.after(500, btn.focus_set) text.after(1000, text.focus_set)btn = Button(main, text="Click me", command=jump) btn.pack() main.mainloop()
This program is for Python 3.x and behaves differently on Windows when compared to Linux or Mac.  Earlier today I filed a bug report with the Tk folks here:
https://sourceforge.net/tracker/?func=detail&aid=3609608&group_id=12997&atid=112997 But I also wanted to post something here in case it was a tkinter issue. Any feedback or help would be greatly appreciated thanks!

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Alejandro Autalan | 31 Mar 2013 08:58
Picon

class_ attribute on ttk widgets

Hello all.

I'm reading the tkinter reference at http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html.

It says that the 'class_' attribute is available for ttk widgets.  But when is set, some widgets become  unresponsive.

Example:

#uname -a   Linux vostro1 3.2.0-4-amd64 #1 SMP Debian 3.2.39-2 x86_64 GNU/Linux
# Python 3.2.3
#tkinter.TkVersion 8.5

import tkinter as tk
from tkinter import ttk

f = ttk.Frame()
f.grid()
entry = ttk.Entry(f, class_='CustomEntry')
entry.grid()
btn = ttk.Button(f, class_='CustomButton', text='Button')
btn.grid()
f.mainloop()

When I run the example, I can't enter text on entry widget or click a button.
Is this the expected behaviour? Anyone know how this attribute should be used for ttk widgets ?

Thanks.
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss <at> python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Gmane