Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: how I can use the widgets as an argument of a function?
Post: RE: how I can use the widgets as an argument of a ...
(Apr-23-2022, 05:02 PM)deanhystad Wrote: Are you trying to make LabelFrame behave like it has a "textvariable" argument similar to Label? You can do that by creating the label yourself.
import tkin... |
|
pymn |
GUI |
9 |
2,291 |
Apr-24-2022, 08:04 PM |
|
|
Thread: how I can use the widgets as an argument of a function?
Post: RE: how I can use the widgets as an argument of a ...
(Apr-22-2022, 12:25 AM)deanhystad Wrote: 60 lines isn't much. Let's see the function and you can add some comments to highlight the important parts.I tried to bring the part of my code with this pr... |
|
pymn |
GUI |
9 |
2,291 |
Apr-23-2022, 12:48 AM |
|
|
Thread: how I can use the widgets as an argument of a function?
Post: RE: how I can use the widgets as an argument of a ...
(Apr-21-2022, 09:24 PM)Gribouillis Wrote: No I don't mean from the code's perspective, but from the user perspective. How will the user let the program know that they want one frame instead of anoth... |
|
pymn |
GUI |
9 |
2,291 |
Apr-21-2022, 09:51 PM |
|
|
Thread: how I can use the widgets as an argument of a function?
Post: RE: how I can use the widgets as an argument of a ...
(Apr-21-2022, 09:03 PM)Gribouillis Wrote: How will the program know that you want to give a name to frame1 instead of frame2?
That is also my question. currently it is working for the one I have def... |
|
pymn |
GUI |
9 |
2,291 |
Apr-21-2022, 09:16 PM |
|
|
Thread: how I can use the widgets as an argument of a function?
Post: how I can use the widgets as an argument of a func...
In this example, I have an entry and two LabelFrames. I am looking to find out how I can call my LabelFrame through only one function. I have written this code as an example.
import tkinter as tk
... |
|
pymn |
GUI |
9 |
2,291 |
Apr-21-2022, 08:25 PM |
|
|
Thread: How to move in entries using the arrow keys by applying the bind and focus?
Post: RE: How to move in entries using the arrow keys by...
Thanks a lot. That is a clever way. |
|
pymn |
GUI |
4 |
5,043 |
Apr-06-2022, 04:29 AM |
|
|
Thread: How to move in entries using the arrow keys by applying the bind and focus?
Post: RE: How to move in entries using the arrow keys by...
Thanks for your reply. Actually, tab or shift only selects the next entry. What will happen once we want to go backward or in any direction? Sorry, your current code raises an error.
Error:entry.bind(... |
|
pymn |
GUI |
4 |
5,043 |
Apr-05-2022, 07:37 AM |
|
|
Thread: How to move in entries using the arrow keys by applying the bind and focus?
Post: How to move in entries using the arrow keys by app...
I have some entries in tkinter. currently, I need to move the cursor to each entry and click it to select it. I am looking to do this using the arrow keys. I saw we can use bind_class to select all th... |
|
pymn |
GUI |
4 |
5,043 |
Apr-05-2022, 06:15 AM |
|
|
Thread: Why I am getting ModuleNotFoundError when I make an Exe file for tkinter GUI?
Post: Why I am getting ModuleNotFoundError when I make a...
I have a simple code to use the LHS design of the experiment, and it works fine.
from tkinter import *
from pyDOE import *
root = Tk()
root.geometry("400x400")
n_points = IntVar()
n_features = IntV... |
|
pymn |
GUI |
0 |
1,716 |
Apr-01-2022, 05:36 PM |
|
|
Thread: How to use rangesliders feature from matplotlib in tkinter?
Post: RE: How to use rangesliders feature from matplotli...
(Feb-28-2022, 11:47 AM)Larz60+ Wrote: there is an example here: https://matplotlib.org/stable/gallery/wi...angeslider
I think my problem is that this ipywidgets library is for jupyter notebook. I am... |
|
pymn |
GUI |
2 |
3,138 |
Feb-28-2022, 05:06 PM |
|
|
Thread: How to use rangesliders feature from matplotlib in tkinter?
Post: How to use rangesliders feature from matplotlib in...
I have written a code to use the RangeSldider widget to have control over my axis range.
from tkinter import *
import numpy as np
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.figure impor... |
|
pymn |
GUI |
2 |
3,138 |
Feb-28-2022, 07:28 AM |
|
|
Thread: why my list changes to a string as I move to another window in tkinter?
Post: RE: why my list changes to a string as I move to a...
(Feb-17-2022, 06:10 AM)deanhystad Wrote: None of those types can hold a list. You will have to come up with a different way that doesn't use tkinter variables.
I wonder why you are working with li... |
|
pymn |
GUI |
4 |
2,701 |
Feb-17-2022, 07:02 AM |
|
|
Thread: why my list changes to a string as I move to another window in tkinter?
Post: RE: why my list changes to a string as I move to a...
(Feb-17-2022, 04:53 AM)deanhystad Wrote: Data.NO is a StringVar. Data.NO.set(thing) converts thing to a str because that is the kind of value you can save in StringVar.
When you set the text for a... |
|
pymn |
GUI |
4 |
2,701 |
Feb-17-2022, 05:08 AM |
|
|
Thread: why my list changes to a string as I move to another window in tkinter?
Post: why my list changes to a string as I move to anoth...
Hello, I am learning how to work around moving in pages in tkinter. I asked a question a few days ago about that here: https://python-forum.io/thread-36382.html
I wrote another app using that basis le... |
|
pymn |
GUI |
4 |
2,701 |
Feb-17-2022, 04:13 AM |
|
|
Thread: how to add two numbers and pass the result to the next page in tkinter?
Post: RE: how to add two numbers and pass the result to ...
(Feb-14-2022, 08:17 PM)deanhystad Wrote: It is not good user interface design to have controls in one "page" change displays in a second "page". It is not an absolute, but should give you pause. I... |
|
pymn |
GUI |
7 |
4,517 |
Feb-15-2022, 04:40 AM |
|
|
Thread: how to add two numbers and pass the result to the next page in tkinter?
Post: RE: how to add two numbers and pass the result to ...
(Feb-14-2022, 08:17 PM)deanhystad Wrote: It is not good user interface design to have controls in one "page" change displays in a second "page". It is not an absolute, but should give you pause. I... |
|
pymn |
GUI |
7 |
4,517 |
Feb-14-2022, 08:28 PM |
|
|
Thread: how to add two numbers and pass the result to the next page in tkinter?
Post: RE: how to add two numbers and pass the result to ...
(Feb-14-2022, 05:37 AM)deanhystad Wrote: You don't need a lambda expression for something like this:
command=lambda: self.go_to_page_two()Instead use:
command=self.go_go_page_twoOnly use a lambda if... |
|
pymn |
GUI |
7 |
4,517 |
Feb-14-2022, 08:05 PM |
|
|
Thread: how to add two numbers and pass the result to the next page in tkinter?
Post: RE: how to add two numbers and pass the result to ...
|
pymn |
GUI |
7 |
4,517 |
Feb-14-2022, 02:40 AM |
|
|
Thread: how to add two numbers and pass the result to the next page in tkinter?
Post: how to add two numbers and pass the result to the ...
I am new to tkinter. I want to add two numbers and pass the result to the second page. in my code, I don't understand why instead of adding the numbers, it attaches them and shows them on the second p... |
|
pymn |
GUI |
7 |
4,517 |
Feb-14-2022, 02:11 AM |