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.

47 questions
5
votes
2 answers

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",…
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
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
  • 61
  • 1
  • 7
4
votes
2 answers

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
  • 1,092
  • 1
  • 11
  • 16
4
votes
4 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…
Max Koning
  • 172
  • 2
  • 19
3
votes
1 answer

How to change focus of simpledialog in Tkinter?

I have several simpledialog popup windows. The first one that shows is in focus and after it closes then every single one after that is not in focus. The simpledialog code is this: from tkinter import * from tkinter import messagebox import…
nikolay1499
  • 145
  • 1
  • 10
3
votes
2 answers

Navigator.pop won't close the simpledialog in flutter

I'm building android app using flutter. I have a problem to close the simple dialog programmatically. Now I have a stateful page named ListVessel. This page contains listTile from array otherVessels. Below is the code for this page. class…
3
votes
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
  • 8,333
  • 15
  • 53
  • 74
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
  • 36,608
  • 11
  • 63
  • 88
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,637
  • 4
  • 14
  • 22
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
2 answers

How do I change the icon of a simple dialog in tkinter, Python

Not sure how to change the icon of a simple dialog window. I try to use .bitmap but doesn't work. Need Help
GCIreland
  • 145
  • 1
  • 16
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
  • 47
  • 7
1
2 3 4