On 2023-01-11 00:13, Cameron Simpson wrote:
On 10Jan2023 18:32, MRAB wrote:
I don't like how you're passing Thread...start as an argument. IMHO, it
would be better/cleaner to pass a plain function, even if the only
thing that function does is to start the thread.
Yes, and this is likely the
On 10Jan2023 18:32, MRAB wrote:
I don't like how you're passing Thread...start as an argument. IMHO, it
would be better/cleaner to pass a plain function, even if the only
thing that function does is to start the thread.
Yes, and this is likely the thing causing the cited exception "threads
c
On 2023-01-10 14:57, Abhay Singh wrote:
Here is the entire code snippet of the same.
Please help
def change_flag(top_frame, bottom_frame, button1, button2, button3, button4,
controller): global counter, canvas, my_image, chosen, flag, directory
canvas.delete('all') button5['state'] = DISABLED
Here is the entire code snippet of the same.
Please help
def change_flag(top_frame, bottom_frame, button1, button2, button3, button4,
controller): global counter, canvas, my_image, chosen, flag, directory
canvas.delete('all') button5['state'] = DISABLED counter += 1
chosen, options_text = func
Can anybody help or share a python code using Tkinter for opening cmd.exe and
running command given from input box.
For eg. when I run the code it will ask IP in an input box gui and ping
response for that IP will be on cmd console
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, Dec 26, 2015 at 10:59 PM, brian.moreira
wrote:
> I trying to run a simple code that opens a Tkinter window with text in it, on
> my windows 8 machine using Python 3.4.3
Hi Brian,
Details are important, and there are several missing from your
question that make any advice just guesswork
Hi there.
I trying to run a simple code that opens a Tkinter window with text in it, on
my windows 8 machine using Python 3.4.3
I used to ge: “ImportError: no tkinter module exists”
But now it opens a windows Wizard screen that prompts me to Modify, Repair, or
Uninstall Python.
I have tried
Am 14.01.14 22:27, schrieb Lewis Wood:
Also anyone know how to create an entry box for Tkinter where you can only
enter in 2 digits?
You must use a validator to achieve this. This is a more advanced topic
though. A validator is a function that is called whenever the user keys
something in - e
Also anyone know how to create an entry box for Tkinter where you can only
enter in 2 digits?
--
https://mail.python.org/mailman/listinfo/python-list
I cannot say how grateful I am to find such a community willing to help <3
Thanks to everyone posting, learned a lot of new stuff :) Never knew you could
just bring a local var into a def block using global inside of the function.
Again, thanks for taking your time to help out newbies to program
On Tue, Jan 14, 2014 at 5:49 AM, wrote:
> entry = entry1var.get()
> if entry == num1:
> elif entry > num1:
> elif entry < num1:
>
> num1 =str(random.randint(10,99))
> num2 =str(random.randint(10,99))
> num3 =str(random.randint(10,99))
> mastercode = num1+num2+num3
Be careful of c
On Monday, January 13, 2014 12:49:07 PM UTC-6, Lewis Wood wrote:
> labelent1 = Label(main, text="Correct!",fg="green").grid(row = 0, column = 3)
>
> [snip]
>
> UnboundLocalError: local variable 'labelent1' referenced before assignment
Observe the following interactive session and prepare to be e
fluttershy...@gmail.com wrote:
> Inside the function is where I am having the problem, I am trying to get
> it to delete the label so that it may then replace it with a shorter text.
> Here is the full code:
> def check1():
> entry = entry1var.get()
> if entry == num1:
> labelent1
When I try to use the labelent1.configure, it greets me with an error:
AttributeError: 'NoneType' object has no attribute 'configure'
I changed the labelent's to global. Don't suppose you know why?
Also how would I go about using an object for the entire window. I am still a
Novice at Tkinter and
Am 13.01.14 19:49, schrieb fluttershy...@gmail.com:
Inside the function is where I am having the problem, I am trying to get it to
delete the label so that it may then replace it with a shorter text.
Here is the full code:
from tkinter import *
import random
main = Tk()
main.title("Crack th
Forgot to mention I am using Python 3.3.3
--
https://mail.python.org/mailman/listinfo/python-list
Inside the function is where I am having the problem, I am trying to get it to
delete the label so that it may then replace it with a shorter text.
Here is the full code:
from tkinter import *
import random
main = Tk()
main.title("Crack the Code")
def check1():
entry = entry1var.get()
... and thanks to Chris too.
Now I got the better idea how the subprocess module works.
On Sat, Jan 4, 2014 at 11:29 AM, Beinan Li wrote:
> Thank you so much Jerry.
> I should have read though the man page more carefully.
> The available online cscope tutorials never mentioned the line-oriented
Thank you so much Jerry.
I should have read though the man page more carefully.
The available online cscope tutorials never mentioned the line-oriented
mode.
On Sat, Jan 4, 2014 at 1:35 AM, Jerry Hill wrote:
> On Fri, Jan 3, 2014 at 9:44 PM, Beinan Li wrote:
> > But some console programs have
On Fri, Jan 3, 2014 at 9:44 PM, Beinan Li wrote:
> But some console programs have their own shell or ncurse-like CUI, such as
> cscope.
> So I figured that I need to first subprocess.popen a bidirectional pipe and
> send command through stdin and get results from stdout and stderr.
>
> But in such
On Sat, Jan 4, 2014 at 1:44 PM, Beinan Li wrote:
> But some console programs have their own shell or ncurse-like CUI, such as
> cscope.
> So I figured that I need to first subprocess.popen a bidirectional pipe and
> send command through stdin and get results from stdout and stderr.
>
> But in such
I know how to make a GUI program work on top of a console program like
"ls", which exits immediately.
But some console programs have their own shell or ncurse-like CUI, such as
cscope.
So I figured that I need to first subprocess.popen a bidirectional pipe and
send command through stdin and get re
On 08/03/2013 14:04, prqu...@gmail.com wrote:
Greetings,
I'm trying to run a simple Tkinter program that opens a program when
you click a button. The code is listed below. I use a command to
call a program that then calls a fortran program. However, when I
click on the button, it opens the pr
Greetings,
I'm trying to run a simple Tkinter program that opens a program when you click
a button. The code is listed below. I use a command to call a program that
then calls a fortran program. However, when I click on the button, it opens
the program but the menu of the program i'm calling
On Saturday, February 23, 2013 4:50:43 PM UTC-6, Rex Macey wrote:
> Here is one general and one specific question about
> creating GUIs using tkinter from a newbie. I have created
> a class in which to hold some data. I want to create a
> GUI to get the data from the user and store it in the
> ob
On Saturday, February 23, 2013 02:50:43 PM Rex Macey wrote:
> Here is one general and one specific question about creating GUIs using
> tkinter from a newbie. I have created a class in which to hold some data.
> I want to create a GUI to get the data from the user and store it in the
> object. B
Here is one general and one specific question about creating GUIs using tkinter
from a newbie. I have created a class in which to hold some data. I want to
create a GUI to get the data from the user and store it in the object.
Browsing the web I see that a lot of examples on GUIs have the for
On 2012-12-21, Kevin Walzer wrote:
> I maintain a Tkinter application that's a front-end to to a package
> manger, and I have never been able to find a way to keep the app from
> locking up at some point during the piping in of the package manager's
> build output into a text widget. At some p
In article ,
Kevin Walzer wrote:
> I maintain a Tkinter application that's a front-end to to a package
> manger, and I have never been able to find a way to keep the app from
> locking up at some point during the piping in of the package manager's
> build output into a text widget. At some po
I maintain a Tkinter application that's a front-end to to a package
manger, and I have never been able to find a way to keep the app from
locking up at some point during the piping in of the package manager's
build output into a text widget. At some point the buffer is overwhelmed
and the app s
On 06/17/2010 12:50 AM, Michael Torrie wrote:
> On 06/16/2010 04:05 PM, My Python wrote:
>> I would like to see some substantial example of an App written for a
>> Modeless Dialog (fixed size, non resizable window)
>
> Tk? PyQt? PyGTK? wxPython?
Nevermind that question. You stated that in your su
On 06/16/2010 04:05 PM, My Python wrote:
> I would like to see some substantial example of an App written for a
> Modeless Dialog (fixed size, non resizable window) (If you have used
> WIndows MFC or Visual Basic you all know how elegant it is)
What is elegant about a fixed-size, non-re-sizable w
On Jun 16, 5:05 pm, My Python wrote:
> I would like to see some substantial example of an App written for a
> Modeless Dialog (fixed size, non resizable window) (If you have used
> WIndows MFC or Visual Basic you all know how elegant it is) with
> Buttons, menus, edit boxes, list boxes, file save
I would like to see some substantial example of an App written for a
Modeless Dialog (fixed size, non resizable window) (If you have used
WIndows MFC or Visual Basic you all know how elegant it is) with
Buttons, menus, edit boxes, list boxes, file save as dialogs popping
from the button action (thi
Thanks for the reply, will work with this tomorrow.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 01 Mar 2007 21:01:40 +0100, Adam <[EMAIL PROTECTED]>
wrote:
> Ok the window has resized but the elements inside are still like they
> were, so they are going off the edge on the window. How can I get
> these to resize? I have put sizes on the frames they are in. Sorry to
> keep asking bu
Ok the window has resized but the elements inside are still like they
were, so they are going off the edge on the window. How can I get
these to resize? I have put sizes on the frames they are in. Sorry to
keep asking but I'm flying blind here, I have checked the python site
and the intro to tkinte
Adam wrote:
> On Feb 28, 9:13 pm, Adonis Vargas <[EMAIL PROTECTED]>
> wrote:
>> Adam wrote:
>>
>>
>>
>>> I think my main questions are:
>>> 1. How can I get the Window to be sized the way I want it?
>>> 2. How can I get the Scrollbars to fill the side of the text box
>>> instead of being small? (l
On Feb 28, 9:13 pm, Adonis Vargas <[EMAIL PROTECTED]>
wrote:
> Adam wrote:
>
>
>
> > I think my main questions are:
> > 1. How can I get the Window to be sized the way I want it?
> > 2. How can I get the Scrollbars to fill the side of the text box
> > instead of being small? (like .pack(fill= tk.Y
Adam wrote:
> I think my main questions are:
> 1. How can I get the Window to be sized the way I want it?
> 2. How can I get the Scrollbars to fill the side of the text box
> instead of being small? (like .pack(fill= tk.Y)
>
>
> I have only posted the code relevant to the GUI.
>
> TIA
> Adam
>
Hey,
I'm pretty new to programming. Been trying to learn using Python.
The code I'm struggling with is for my GUI.
I'm am having trouble getting this to display the way I want with the
grid manager. Can anybody tell me what I am doing wrong? I hope you
can tell what look I'm trying to achieve fro
ep(), will it do this?
ok here is the rub - the tkinter gui and the sockets stuff both want to be the
main thread.
You are going to have to run separate processes, and communicate via pipes.
Its a hard nut to chew, but there you have it
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of hg
Sent: Tuesday, December 19, 2006 9:44 AM
To: python-list@python.org
Subject: Re: Can a Tkinter GUI check for abort script:
Michael Yanowitz wrote:
> Hello:
>
>I have successfully impl
Michael Yanowitz wrote:
> Hello:
>
>I have successfully implemented a Tkinter GUI which has
> this (simplified here for explanation):
> +-+
> | filename: [./test3.py] |
> |
Michael Yanowitz <[EMAIL PROTECTED]> wrote: > What I am hoping for is a
function call I can make, without knowing any
> of the GUI objects, I can call from test3.py (or while test3.py is running)
> which will refresh the GUI and check for activity such as button presses
> on the GUI itse
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Mohammad Tayseer
Sent: Monday, December 18, 2006 11:28 AM
To: python-list@python.org
Subject: RE: Can a Tkinter GUI check for abort script:
I don't know why this happen. do you call mainloop() inside the
I don't know why this happen. do you call mainloop() inside the test3.py?? you
shouldn't
Michael Yanowitz <[EMAIL PROTECTED]> wrote:> Presently what happens is
that the script takes over and all the buttons on
> the GUI disappear
> as the GUI is not given any cpu time to refresh or ch
Michael Yanowitz top posted:
> Presently what happens is that the script takes over and all the buttons on
the GUI disappear
>as the GUI is not given any cpu time to refresh or check if any activity in the
dialog.
Yuk!
you may have to run the script in a thread then, to preserve the GUI main
al Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Mohammad Tayseer
Sent: Monday, December 18, 2006 10:40 AM
To: python-list@python.org
Subject: Re: Can a Tkinter GUI check for abort script:
To view a button & hide the other, call .pack_forget() on the button you
w
To view a button & hide the other, call .pack_forget() on the button you want
to hide & pack() on the button you want to show
test3.py should contains a main() function that returns the new window. if you
press 'Abort script' button you should call new_window.destroy(), pack_forget()
the curren
"Michael Yanowitz" <[EMAIL PROTECTED]> Wrote:
> Hello:
>
>I have successfully implemented a Tkinter GUI which has
> this (simplified here for explanation):
> +-+
> | filename: [./test3.py] |
> |
Hello:
I have successfully implemented a Tkinter GUI which has
this (simplified here for explanation):
+-+
| filename: [./test3.py] |
| |
| [Run Script
Le dimanche 13 août 2006 16:01, [EMAIL PROTECTED] a écrit :
> No neep for thread or Tix modules...!
Module thread is always available (at less on platforms where Tkinter is
available), while Tix in my example is just intended to use the Meter widget
(a progress bar).
> # this will *sleep* one m
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Tkinter also has a timer-type function called *after*. Use this to call
> your init function just befrore the mainloop call. You gui wil show up
> and you can then update it to show progress as you wish
> No neep for thread or Tix modules.
Maric Michaud wrote:
> Le dimanche 13 août 2006 12:39, Pasi Oja-Nisula a écrit :
>
> > The question is how (or where) can I call my loadImages function right
> > after the mainloop starts? Or is there a better way to do this?
> >
> Seems a good use case for multi-thread, try something like this :
>
Le dimanche 13 août 2006 12:39, Pasi Oja-Nisula a écrit :
> The question is how (or where) can I call my loadImages function right
> after the mainloop starts? Or is there a better way to do this?
>
Seems a good use case for multi-thread, try something like this :
In [28]: import Tix
In [29]: ma
put some kind
of "loading image 25/50" text there while processing the images.
So now I construct the simple Tkinter gui in init and when mainloop
is called the gui is shown.
The question is how (or where) can I call my loadImages function right
after the mainloop starts? Or is ther
> Ah, what I was referring to (somewhat in jest) was something to
> automatically *write* the code needed by the application. Simply
> executing it is easy enough and in fact Rapyd-Tk already does this via
> the save-build-run project-menu choice.
sorry I misunderstood you.
--
http://mail.pytho
Ah, what I was referring to (somewhat in jest) was something to
automatically *write* the code needed by the application. Simply
executing it is easy enough and in fact Rapyd-Tk already does this via
the save-build-run project-menu choice.
vbgunz wrote:
> > As for the code to actually make the ap
> As for the code to actually make the application go, well,
> if there is some automatic way to make that happen it hasn't dawned on
> me yet.
why not execute 'python -u /pathto/module.py' I could be wrong but hope
I am not :)
--
http://mail.python.org/mailman/listinfo/python-list
>What are you building? I routinely do things like these by hand
>www.greschke.com/unlinked/images/changeo.jpg
>www.greschke.com/unlinked/images/pocus.jpg
>www.greschke.com/unlinked/images/pis.jpg
>www.greschke.com/unlinked/images/petm.jpg
>and I can't imagine using a builder for anything 'simpl
>
> What are you building? I routinely do things like these by hand
>
> www.greschke.com/unlinked/images/changeo.jpg
> www.greschke.com/unlinked/images/pocus.jpg
> www.greschke.com/unlinked/images/pis.jpg
> www.greschke.com/unlinked/images/petm.jpg
>
> and I can't imagine using a builder for anyth
"vbgunz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thank you very much for the link and info. It looks promising but I am
> still on the lookout for a drag-n-drop Gui builder like vltc so if
> anyone has more links to new projects I am definitely interested!
>
> PS. I do love th
Thank you very much for the link and info. It looks promising but I am
still on the lookout for a drag-n-drop Gui builder like vltc so if
anyone has more links to new projects I am definitely interested!
PS. I do love the code generated from rapyd!
--
http://mail.python.org/mailman/listinfo/pyth
vbgunz wrote:
> Hello world,
>
> I tried looking everywhere for a decent Tkinter GUI builder and the
> closest I got to finding one before being horrified from looking at the
> source was vtcl @ http://vtcl.sourceforge.net. The next closest thing
> was page @ http://page.sourcef
Hello world,
I tried looking everywhere for a decent Tkinter GUI builder and the
closest I got to finding one before being horrified from looking at the
source was vtcl @ http://vtcl.sourceforge.net. The next closest thing
was page @ http://page.sourceforge.net/
Page just didn't cut it f
My Tkinter app's gui file grew to the point that i wanted to split it
into several files: menus.py, mainFrame,py, buttons.py, etc. Of
course, when i moved the menu code into its own file, then did "import
menus" in the main gui file, it died because of references in the
menus file to stuff in the m
67 matches
Mail list logo