Questions tagged [simpledialog]

SimpleDialog2 is a re-imagining of the original SimpleDialog - it's purpose is to provide an easy programmers interface to dialog popups.

SimpleDialog2 is a re-imagining of the original SimpleDialog - it's purpose is to provide an easy programmers interface to dialog popups.

39 questions
5
votes
1 answer

dialog box with error " Uncaught TypeError: Cannot read property 'sdIntContent' of undefined "

i have a dialog box that i use in all my internal pages it works fine from home page but when page 1 kicks in i get an error that says Uncaught TypeError: Cannot read property 'sdIntContent' of undefined and the dialog box does not appear…
user2805663
4
votes
1 answer

Tkinter simpledialog boxes not getting focus in Windows 10 with Python3

In the code below, the first dialog box gets focus immediately, so the user can just type an answer and press enter. In the second one, that doesn't seem to happen when running in Windows. Running Raspbian 9, both windows get focus when they…
mgroat
  • 772
  • 10
  • 15
3
votes
2 answers

tkinter askstring deleted before its visibility changed

I am trying to make a popup window where someone can fill in a string in an Entry box. I have gone through many examples, but it doesn't work. I am trying to this: var_entry = simpledialog.askstring("Test", "Test") I get this error…
3
votes
2 answers

tkinter.simpledialog.Dialog leaves the initiating tkinter.Button depressed

I am using Python 3.3 on Windows 7. I have a tkinter application where one Button fires up a tkinter.simpledialog.Dialog. Like this (this is a complete, runnable example): import tkinter import tkinter.simpledialog class Mainframe(tkinter.Frame): …
Lutz Prechelt
  • 29,204
  • 6
  • 52
  • 79
2
votes
2 answers

How to close the SimpleDialog in flutter after choosing an option

I added a SimpleDialog with 2 options: lost and found. Whenever I make my selection and get redirected to where I want, the SimpleDialog doesn't close and stays on my screen. The switch: switch ( await showDialog( context: context, child:…
Rabih Kadi
  • 41
  • 1
  • 6
2
votes
3 answers

Snackbar in SimpleDialog Flutter

I faced an error code below when adding a snackbar to an on-pressed method in my Simpledialog. [Scaffold.of() called with a context that does not contain a Scaffold.] I would like to seek your advice on how to provide the correct context to resolve…
lonelearner
  • 1,049
  • 3
  • 11
  • 21
2
votes
1 answer

messagebox stops validation

I don't understand why a messagebox (or simpledialog) breaks the flow of the following code. The code basically validates an entry box in python 3.5. It checks that the field only contain numeric values and that it does't go over 9 digits long, the…
Dr Jeep
  • 43
  • 3
2
votes
1 answer

Uncaught TypeError with use of select menu in simpledialog2 of jQuery Mobile

Is Simpledialog2 not supported select menu in jQuery Mobile ? Because when I use select menu in Simpledialog2, I get error like as under, "Uncaught TypeError: Cannot read property 'jQuery1910010748725151643157' of undefined" And if I do not use…
1
vote
0 answers

Python, while loop conflicts with other buttons in simpledialog

I'm new to programming and I'm trying to make a typeracer kind of program but the while loop conflicts with other buttons in simpledialog(including the close button), making it impossible to quit halfway without ending the main. import tkinter from…
Mamon4
  • 11
  • 1
1
vote
1 answer

Python - Move focus to simpledialogbox

So I'm working on a script that uses pyautogui to launch a web browser, and then go to a specific page where it will print multiple pdf's. However, before it prints, it will pop a simpledialogbox and ask for an integer, so it knows how many times to…
Mrvaandpyt
  • 27
  • 5
1
vote
1 answer

How do i resize the pop-up from simpledialog.askstring in tkinter?

While using the simplesialog.askstring is good and all, I would like to resize the pop-up window and also resize the width of the text input. (sample code) from tkinter import * from tkinter import simpledialog prompts = ["name", "age", "height",…
1
vote
0 answers

Why does an autorelease pool error occur when askinteger is called from a tkinter menu in Python 3.6?

I would like to call askinteger() from a tkinter menu in Python 3.6.3. When I do this, the dialog box appears and I can enter an answer, but when I close the dialog box I get an autorelease pool error and the script exits. When I call the same…
IGreenberg
  • 11
  • 1
1
vote
1 answer

Flutter - How to display a GridView within an SimpleDialog box?

Asked a very similar question yesterday concerning displaying a GridView in an AlertDialog and got the perfect answer for wrapping Widget in a container and adding width. Now I decided a SimpleDialog would be better in order to provide more…
Charles Jr
  • 5,303
  • 12
  • 43
  • 68
1
vote
1 answer

Python tkinter simpledialog. How to bind a key to the OK button in simpledialog

def prompt_new_name(self): new_name = simpledialog.askstring("Name Change", "New name") if new_name is not None: self.request_name_change(new_name) I want to bind enter key on the keypad to the OK button in the simpledialog…
whiteSkar
  • 1,394
  • 2
  • 14
  • 29
1
vote
1 answer

Declared variables not initialised when using 'simpledialog'

I have a problem with some code that I have been working on where I am trying to pass a variable to a 'simpledialog' box. However, when I declare the variable in the __init__ section, the variable cannot be accessed from any other method in the…
skyhammer
  • 97
  • 1
  • 7
1
2 3