Compare commits
	
		
			1 Commits
		
	
	
		
			testing
			...
			9f03de15b8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 9f03de15b8 | 
							
								
								
									
										13
									
								
								__init__.py
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								__init__.py
									
									
									
									
									
								
							| @@ -32,6 +32,7 @@ except ImportError: | |||||||
| import math | import math | ||||||
| import numpy as np | import numpy as np | ||||||
| import time | import time | ||||||
|  | import wx | ||||||
|  |  | ||||||
| localConfig = configparser.ConfigParser() | localConfig = configparser.ConfigParser() | ||||||
| globalConfig = configparser.ConfigParser() | globalConfig = configparser.ConfigParser() | ||||||
| @@ -116,6 +117,18 @@ def read_config(readGlobal = False): | |||||||
|         except: |         except: | ||||||
|             pass |             pass | ||||||
|  |  | ||||||
|  |  | ||||||
|  | def get_input(prompt = "Enter text:", text = ""): | ||||||
|  |     app = wx.App(False) | ||||||
|  |     dialog = wx.TextEntryDialog(None, prompt, "Input", text) | ||||||
|  |     dialog.SetValue(text) | ||||||
|  |     if dialog.ShowModal() == wx.ID_OK: | ||||||
|  |         userInput = dialog.GetValue() | ||||||
|  |     else: | ||||||
|  |         userInput = None | ||||||
|  |     dialog.Destroy() | ||||||
|  |     return userInput | ||||||
|  |  | ||||||
| def speak(text, interupt=True): | def speak(text, interupt=True): | ||||||
|     if speechProvider == "speechd": |     if speechProvider == "speechd": | ||||||
|         if interupt: spd.cancel() |         if interupt: spd.cancel() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user