Web Development
int64
0
1
Data Science and Machine Learning
int64
0
1
Question
stringlengths
35
6.31k
is_accepted
bool
2 classes
Q_Id
int64
5.14k
40.5M
Score
float64
-1
1.2
Other
int64
0
1
Database and SQL
int64
0
1
Users Score
int64
-6
163
Answer
stringlengths
19
4.91k
Python Basics and Environment
int64
0
1
ViewCount
int64
12
475k
System Administration and DevOps
int64
0
1
Q_Score
int64
0
346
CreationDate
stringlengths
23
23
Tags
stringlengths
6
68
Title
stringlengths
12
138
Networking and APIs
int64
0
1
Available Count
int64
1
31
AnswerCount
int64
1
35
A_Id
int64
5.3k
72.3M
GUI and Desktop Applications
int64
1
1
0
0
I run python in my Android Terminal and want to run a .py file with: python /sdcard/myScript.py The problem is that python is called in my Android enviroment indirect with a shell in my /system/bin/ path (to get it direct accessable via Terminal emulator). My exact question, how the title tells how to pass parameter t...
true
35,928,155
1.2
1
0
0
I don't have experience in Android programming, so I can only give a general recommendation: Of course the naive solution would be to explicitly pass the arguments from script to script, but I guess you can't or don't want to modify the scripts in between, otherwise you would not have asked. Another approach, which I s...
0
373
1
0
2016-03-10T21:58:00.000
android,python,shell,qpython
Pass parameter through shell to python
0
2
2
35,935,344
1
0
0
I run python in my Android Terminal and want to run a .py file with: python /sdcard/myScript.py The problem is that python is called in my Android enviroment indirect with a shell in my /system/bin/ path (to get it direct accessable via Terminal emulator). My exact question, how the title tells how to pass parameter t...
false
35,928,155
0
1
0
0
I have similar problem. Runing my script from Python console /storage/emulator/0/Download/.last_tmp.py -s && exit I am getting "Permission denied". No matter if i am calling last_tmp or edited script itself. Is there perhaps any way to pass the params in editor?
0
373
1
0
2016-03-10T21:58:00.000
android,python,shell,qpython
Pass parameter through shell to python
0
2
2
36,178,959
1
0
0
Total beginner here, so please be gentle. I have a example.cpp file which has one main function which accepts some input parameters and returns an integer value. How would I run this .cpp file from within Python such that I can specify the input parameters from within Python and access the output of the .cpp so that it...
false
35,929,840
0
0
0
0
You can't run a .cpp file, as you need to compile a binary from your .cpp file before you can execute it. first, try to compile it using your terminal, after that you might port it to python, and automate it in a Python script (I guess, that's why you want to do it in Python).
1
684
0
0
2016-03-11T00:08:00.000
python,c++
Python/C++: Running .cpp in Python
0
1
2
35,929,867
1
0
0
I am currently writing a wxPython GUI with Twisted Python integrated to be able to send basic text over LAN to a RaspberryPi. I am at a point where I want some help figuring out the design path that would be best for this project when it comes to the way I should implement my networking. To briefly give more context t...
false
35,931,803
0
0
0
0
It looks like this is an really "old" question without any answer. I hope you have figured it out by now, if not I have a solution you might be interested. I have done something similarly, except I was using an Arduino with an EthernetShield. I use socket to communicate through LAN and python built-in thread (threadin...
1
89
0
3
2016-03-11T03:44:00.000
python,multithreading,wxpython,twisted
Python GUI implementation direction
0
1
1
48,219,389
1
0
0
So, I'm creating a client manager software for a local club. I'm using Python 3.5.1 and Tkinter. Used a Notebook to nest my Frames. On my first frame I made the form to add new clients (labels and textboxes) and an "add" button at the end. Problem is that it executes the function associated with the button insted of on...
false
35,966,578
-0.099668
0
0
-1
I would try using lambda: before the command. For instance, replace readFile(file) with lambda: readFile(file). This will ensure an anonymous ("lambda") function with no parameters is passed, which upon execution will run the intended code. Otherwise, the function is executed once when the behavior is set, then the ret...
0
451
0
0
2016-03-13T04:43:00.000
python
Python 3.5.1, Tkinter: Functions execute on start instead of button click
0
1
2
35,966,622
1
0
0
I have written a program in Python which draws parts of the Mandelbrot set using pygame. However, when I leave it running to generate for a long time and then save the file I get this error: pygame.error: SavePNG: could not open for writing I'm not sure why this would happen and saving works fine usually. Perhaps w...
false
35,968,464
0
0
0
0
Are you on windows or on mac? If you're on windows look if you wrote the location like this "\folder\thing.png", that's an error because you put the starting "\". Remove that and try again.
0
1,146
0
1
2016-03-13T09:08:00.000
python,image,crash,save,pygame
pygame.error: SavePNG: could not open for writing?
0
1
1
51,588,818
1
0
0
I made a program with using sqlite3 and pyqt modules. The program can be used by different persons simultaneously. Actually I searched but I did not know and understand the concept of server. How can i connect this program with a server. Or just the computers that have connections with the server is enough to run the p...
true
35,986,526
1.2
0
1
2
Do u want to connect to sqlite database server? SQLite Is Serverless. It stores your data in a file. U should use maria db for db server. Or u can store your sqlite database file in a network shared drive or cloud or...
0
59
0
0
2016-03-14T11:38:00.000
python,sqlite,server
How to connect my app with the database server
0
1
1
35,986,703
1
0
0
Is there a way to cut a transparent rectangle in the background of a wxFrame to see the desktop or other windows behind that rect? Custom shape is not an option since I want to capture mouse events there too.
true
35,991,038
1.2
0
0
1
No, the only possibilities here are using a custom shape or SetTransparent() but the latter can only set the transparency uniformly. SetTransparent() could probably be extended to be more flexible, but so far nobody has done it.
0
107
0
0
2016-03-14T15:03:00.000
wxpython,wxwidgets
Transparent hole in wxFrame background
0
1
1
35,992,362
1
0
0
Hi have been scavenging the web for answers on how to do this but there was no direct answer. Does anyone know how I can find the version number of tkinter?
false
35,999,344
0.132549
0
0
4
Run Tkinter.TclVersion or Tkinter.TkVersion and if both are not working, try Tkinter.__version__
0
40,994
1
27
2016-03-14T22:30:00.000
python-3.x,tkinter
How to determine what version of python3 tkinter is installed on my linux machine?
0
2
6
35,999,383
1
0
0
Hi have been scavenging the web for answers on how to do this but there was no direct answer. Does anyone know how I can find the version number of tkinter?
false
35,999,344
0.16514
0
0
5
Type this command on the Terminal and run it. python -m tkinter A small window will appear with the heading tk and two buttons: Click Me! and QUIT. There will be a text that goes like This is Tcl/Tk version ___. The version number will be displayed in the place of the underscores.
0
40,994
1
27
2016-03-14T22:30:00.000
python-3.x,tkinter
How to determine what version of python3 tkinter is installed on my linux machine?
0
2
6
63,566,647
1
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
true
36,001,080
1.2
0
0
2
There are some changes made on the new NDK r11 release and some tools were moved to different folders, I guess cocos2d-x scripts need to be updated to support the latest NDK release. You can wait for a new cocos2d-x release or use the previous NDK (r10e) version.
0
3,355
0
0
2016-03-15T01:25:00.000
android,python,android-ndk,cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
0
5
5
36,012,463
1
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
false
36,001,080
0
0
0
0
Try adding a "\" at the end. I know it sounds silly, but I had the same problem when setting up on my MacOs. Beyond that, see if you'll encounter other problems like.... wrong toolchain version when compiling
0
3,355
0
0
2016-03-15T01:25:00.000
android,python,android-ndk,cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
0
5
5
36,040,698
1
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
false
36,001,080
0
0
0
0
I know android studio should set you ndk path in local.properties,there is the setting: ndk.dir=C:\android-ndk-r10e sdk.dir=C:\Studio_SDK
0
3,355
0
0
2016-03-15T01:25:00.000
android,python,android-ndk,cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
0
5
5
36,001,423
1
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
false
36,001,080
0.039979
0
0
1
if you want to set relative path that work on all other fellow system without changing again and again then set ndk root path in such a way. NDK_ROOT="$APP_ROOT/../your ndk name" your ndk is placed one directory behind the proj.android file.
0
3,355
0
0
2016-03-15T01:25:00.000
android,python,android-ndk,cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
0
5
5
38,472,553
1
0
0
I am trying to set up Cocos2d-x for Android in Windows using python, but my ROOT values give me an error. My path to my ndk folder is: C:\Users\user\AppData\Local\Android\ndk\android-ndk-r11 When I try to run setup.py is asks "Please enter the path of NDK_ROOT: ". I enter in my path to the ndk but it then says: "Error...
false
36,001,080
0
0
0
0
I have figured out that at the time of this post, the NDK11 has just been released and the current version of Cocos2dx does not support it. I had to find a download link elsewhere to download an older version.
0
3,355
0
0
2016-03-15T01:25:00.000
android,python,android-ndk,cocos2d-x
NDK_ROOT path for ndk r11 in Cocos2d-x
0
5
5
36,167,731
1
0
0
I have created a GUI on Python 2.7.11 that consists of a main page along with page 1 and page 2 that are linked through buttons on main page. Converted main page to a python exe file using PyInstaller and there were no errors in the conversion. main page.exe appeared in the dist folder but on clicking it, a DOS screen ...
false
36,007,373
0.099668
0
0
1
There were multiple issues associated with converting the Python Script that links modules through button clicks. Keeping in mind these factors, it would be best to convert it to exe using Cx_Freeze. It is more user-friendly and was highly effective for the GUI when compared to PyInstaller and Py2Exe.
1
265
0
1
2016-03-15T09:34:00.000
python-2.7,tkinter,exe
Tkinter exe file - DOS screen flashes but GUI does not persist
0
2
2
36,943,399
1
0
0
I have created a GUI on Python 2.7.11 that consists of a main page along with page 1 and page 2 that are linked through buttons on main page. Converted main page to a python exe file using PyInstaller and there were no errors in the conversion. main page.exe appeared in the dist folder but on clicking it, a DOS screen ...
true
36,007,373
1.2
0
0
1
If you've got a line like root.mainloop() at the end (with root standing for your main Tk window) to make sure the event loop runs, then you'll need to debug your code. Try running a small segment of the code at a time to see if all goes well, and see where it is that all doesn't go well; then examine the offending par...
1
265
0
1
2016-03-15T09:34:00.000
python-2.7,tkinter,exe
Tkinter exe file - DOS screen flashes but GUI does not persist
0
2
2
36,009,578
1
0
0
When I try to use the turtle module with the python 2.7.11 shell, the turtle graphics window that does not respond. Can I use the python 2.7.11 shell with the turtle module?
true
36,073,457
1.2
0
0
0
With the 2.7.11 python shell it won't let use use the features of the turtle module. Sorry
0
138
0
0
2016-03-17T23:24:00.000
python-2.7,turtle-graphics
Can I use python 2.7 shell with the turtle module?
0
1
1
36,073,624
1
0
0
I have two questions regarding tkinter that I cant seem to find the answer too. 1) I currently have 2 radio buttons. I have programmed them in such a way that when one of them is clicked another definition is called and that creates a regular button on the screen. Now my problem is, if the user toggles between the bot...
true
36,085,002
1.2
0
0
2
1> Define you button outside the eventHandler of the radiobutton. inside the event handler only grid/pack it,whenever the radiobutton is pressed. In this way the button will not be defined multiple times. N.B. Use fix row & column with the grid if you need.
0
26
0
0
2016-03-18T12:57:00.000
python,python-3.x,tkinter
Doubts about checking if button is already displayed and making a list of radio buttons
0
1
1
36,085,149
1
0
0
Simple question, have parsed numerous search results, haven't found a simple answer. I set a very urgent button to red if something is not found so users click it first. Once clicked, I want to set the background back to normal like button.config(bg=''). I tried 'grey' but it's not the right color. What do I set it ...
false
36,093,839
0.049958
0
0
1
The default background color of tkinter is #f0f0f0. Hope this helps ;)
0
15,651
0
14
2016-03-18T20:40:00.000
python,tkinter
How to reset background color of a python tkinter button?
0
2
4
68,903,355
1
0
0
Simple question, have parsed numerous search results, haven't found a simple answer. I set a very urgent button to red if something is not found so users click it first. Once clicked, I want to set the background back to normal like button.config(bg=''). I tried 'grey' but it's not the right color. What do I set it ...
false
36,093,839
1
0
0
7
The default colour for buttons is SystemButtonFace. I am not sure how many versions of Windows this spans back to, but it is the default system colour for buttons. You can find the default colours by using @Bryan Oakley's answer above, and then print() it to the console.
0
15,651
0
14
2016-03-18T20:40:00.000
python,tkinter
How to reset background color of a python tkinter button?
0
2
4
44,747,033
1
0
0
I have been learning how to make GUIs with Tkinter and a question has occurred to me. As I'm testing the program, I often end up building the code while an instance of it already exists in the background. Are these two independent of each other in terms of performing their functions? I've always read that when I create...
false
36,141,010
0.197375
0
0
1
Each instance of Tk is separate from any other instance of Tk. It gets its own copy of an underlying tcl interpreter. Two instance of Tk in the same process means you have two active tcl interpreters. As a general rule you should only ever have exactly one instance of Tk, but I suppose if you fully understand how they...
1
291
0
1
2016-03-21T20:32:00.000
python,python-2.7,tkinter
Is each instance of Tk() class running independent of each other?
0
1
1
36,141,286
1
0
0
I have python 2.7.6, the newest kivy and buildozer installed. Now I want to use firebase for python, downloaded by: sudo pip install python-firebase. I can add this to the requirements in the buildozer.spec file as python-firebase. This all works fine and in the folder .buildozer/applibs/ I got: firebase, python_fire...
true
36,158,037
1.2
0
0
2
The multiprocessing module is not supported in Android due to incompatibilities with bionic (Android's libc). I would suggest trying to use the Firebase Android SDK via pyjnius, or just make web requests using Kivy's UrlRequest or via Twisted - it's just a REST API, after all.
0
1,125
0
0
2016-03-22T15:06:00.000
android,python-2.7,firebase,kivy,buildozer
Implement python-firebase in android
0
1
1
36,160,691
1
0
0
Pygame module is installed but not working. ImportError: No module named 'pygame.locals'; 'pygame' is not a package it worked when I import it in idle without creating a file but not working when .py file is executed through interpreter
false
36,214,865
0.197375
0
0
1
Make sure that you're not using pygame.py as a script filename. It will prevent the import of pygame module you want. Rename the file not to conflict. Also make sure there's no remaning pygame.pyc file.
1
74
0
0
2016-03-25T06:03:00.000
python,pygame
pygame module is not working in python 3.4.2
0
1
1
36,214,891
1
1
0
I want to use a phone number field in my form. What I need is when this field is tapped on Android phone, not general keyboard, but digital only appears. I learned that this can be achieved by using <input type="tel" or <input type="number". How do I use the tel or number input types in WTForms?
false
36,240,900
0.099668
0
0
1
Ok. I found it. IntegerField(widget = widgets.Input(input_type="tel"))
0
5,419
0
6
2016-03-26T21:06:00.000
python,flask,wtforms,flask-wtforms
How do I use "tel", "number", or other input types in WTForms?
0
1
2
36,382,378
1
0
0
I am trying to use a Qlabel as a message center for relaying messages to users of the application. Some messages might be longer than allowed for the Qlabel and I want it to just scroll horizontally until the end of the text. How can I do this in a Qlabel? I cannot seem to find anything in designer and don't want to wo...
false
36,297,429
0
0
0
0
There's nothing in Qt that does that by default. You will indeed need to create an animation that changes the text. You can use QFontMetrics (label.fontMetrics()) to determine if the label text is larger than then QLabel (to know if you need to scroll it or not). You need a way to repaint the QLabel every half second...
0
2,078
0
1
2016-03-30T00:16:00.000
python-2.7,pyqt,pyqt4,qwidget,qlabel
Smooth scrolling text in Qlabel
0
1
3
36,314,912
1
0
0
So I am learning to use python 3 and now the "pyautogui" module. When I try to use "pyautogui.click(x, y)". I get this error "[WinError 5] Access is denied". It still clicks the coordinates, but why I get this error. I have tried to run this from normal and administer CMD. I am using windows 10. If you can help me plea...
false
36,307,621
0
0
0
0
I had the same problem using Windows 8.1. I solved making a bat file calling the python script and running the bat file as administrator. To run the bat file as administrator I made a right click on bat file and run as administrator.
1
1,059
0
1
2016-03-30T11:35:00.000
python,python-3.x,pyautogui
Pyautogui.click(x, y) error
0
2
3
38,230,687
1
0
0
So I am learning to use python 3 and now the "pyautogui" module. When I try to use "pyautogui.click(x, y)". I get this error "[WinError 5] Access is denied". It still clicks the coordinates, but why I get this error. I have tried to run this from normal and administer CMD. I am using windows 10. If you can help me plea...
false
36,307,621
0
0
0
0
The root cause is when you have a mouse options app installed (at least in my case). I know it from this story: I had a python script that used click (twice). It worked well, but in the meantime, I installed a mouse settings app on my comp. After that I run my script, but got this access denied error. (However, the fir...
1
1,059
0
1
2016-03-30T11:35:00.000
python,python-3.x,pyautogui
Pyautogui.click(x, y) error
0
2
3
39,370,746
1
0
0
Hi i noticed that whenever you have the focus property of a textinput widget set to True, the hint_text is not displayed when the textinput is actually in focus. Please is there a way to combine them both, i.e the hint_text gets displayed even when the text input is in focus?
true
36,314,303
1.2
0
0
4
This is an issue with Kivy 1.9.1, where the hint text disappears as soon as the TextInput is focused. It has been fixed in the development branch, and now only disappears when there is content in the field.
0
443
0
4
2016-03-30T16:14:00.000
python,kivy
Kivy TextInput how to combine hint_text and focus
0
1
1
36,314,717
1
0
0
wrote a small application which is composed of a QT GUI module which in turn initiate an object that inherits from ShowBase class. Problem is, if I close the Panda App, the ShowBase class calls finalizeExit() which in turn shuts the whole process by calling exit. If I avoid calling the finalize method by overriding use...
true
36,339,195
1.2
0
0
1
At least in recent development builds of Panda, you should be able to call base.destroy() to shut down ShowBase and unload (most) resources. You would still need to override finalizeExit() to not quit the application when the main window is closed.
0
928
0
1
2016-03-31T16:44:00.000
python,python-2.7,panda3d
Closing a Panda3d app without shutting down the whole Process
0
1
2
43,324,179
1
0
0
I am using a pygtk application and I have added a Treeview inside a ScrolledWindow. Now I want to freeze the first column (fix the column position), so that when scrolling the Treeview horizontally the column position is fixed and still visible (as it's done in excel for the row column). So how I can freeze the Treevie...
false
36,427,596
0
0
0
0
The closest I've been able to get is a bit of a kludge. I use Perl, not Python, so I'll just describe my technique. Connect to the treeview's scroll-event signal and watch for direction=left/right (or smooth with get_scroll_deltas() returning non-zero for the X axis). Be sure to return FALSE for vertical scrolling so...
0
544
0
2
2016-04-05T13:20:00.000
python,gtk,pygtk,gtktreeview
Freeze the first column in Treeview pygtk
0
1
1
36,670,919
1
0
0
I am running El Capitan, when I type python --version the terminal prints Python 2.7.10, I have successfully downloaded pygame for Python 2.7.10 but I want to develop in python 3.5.1, I know I can do this by entering python3 in the terminal, but how do I properly set up pygame for this version of python?
false
36,456,584
0.197375
0
0
1
Use python3.5 -mpip install pygame.
0
44
0
0
2016-04-06T16:10:00.000
python,pygame
How to download pygame for non default version of python
0
1
1
36,456,629
1
0
0
Is there a way to "rip" Qt stylesheet from Python app? .styleSheet() returns an empty string.
true
36,475,003
1.2
0
0
1
You're assuming two things: The app has implemented its styling using stylesheets, and The app uses an application-wide stylesheet. Either of these assumptions is wrong in your case. You might need to extract stylesheets from individual widgets. Or the application might be using a custom QStyle and not stylesheets.
0
171
0
2
2016-04-07T11:35:00.000
python,qt,pyside
Get Qt stylesheet from Python app
0
1
1
36,476,989
1
0
0
I made a app with Python 3.4 and Tkinter. My app runs several (3-5) threads, and each thread does below. endless loop of recvfrom() to get message from socket(UDP) endless loop which displays the message and write it to a file I use my app on windows embedded OS which is based on XP, and I watch memory usage with Tas...
true
36,478,336
1.2
0
0
0
I discovered the cause by myself, so I write it here and close the question. The cause of memory leak was I was calling tkinter functions from multiple threads. tkinter is not thread safe so I was violating its rule. I modified my program so that only main thread use tkinter function then memory leak has gone. Thank yo...
1
232
0
0
2016-04-07T13:54:00.000
python,sockets,memory-leaks,tkinter
Windows Task Manager: Python app memory usage increase
0
1
1
38,483,492
1
0
0
Is there a way to insert text to a textinput without overwriting the previous text? Textinput().text = "something" deletes the previous text.I also want to add it everytime in a new line.
true
36,529,242
1.2
0
0
3
It has nothing to do with kivy, these are basics of python language. Instead of overwriting the varliable with = sign, use += to append.
1
799
0
0
2016-04-10T11:41:00.000
python,kivy
Insert text to TextInput() in Kivy
0
1
1
36,529,332
1
0
0
I'm using Pygal (with Python / Flask) relatively successfully in regards to loading data, formatting colors, min/max, etc., but can't figure out how to format a number in Pygal using dollar signs and commas. I'm getting 265763.557372895 and instead want $265,763. This goes for both the pop-up boxes when hovering over...
true
36,552,029
1.2
0
0
3
graph.value_formatter = lambda y: "{:,}".format(y) will get you the commas. graph.value_formatter = lambda y: "${:,}".format(y) will get you the commas and the dollar sign. Note that this formatting seems to be valid for Python 2.7 but would not work on 2.6.
0
784
0
2
2016-04-11T14:48:00.000
python,flask,formatting,pygal
Properly formatting numbers in pygal
0
1
1
36,914,709
1
0
0
I have a python code. I need to execute the python script from my c# program. After searching a bit about this, I came to know that there is mainly two ways of executing a python script from c#. One by using 'Process' command and the other by using Iron Python. My question might seem dumb, is there any other way throu...
false
36,563,002
0
1
0
0
Can you create a C# class that calls a Python script without using Iron Python and without using any external API? No. That is not possible. You have a few other choices: Integrate the Python runtime into your program. Smead already described one way to do this. It will work, and it does avoid creating another proce...
1
74
0
0
2016-04-12T03:15:00.000
c#,python
Creating a class that executes python in c#
0
1
2
36,647,773
1
0
0
I was wondering if it is possible to save a canvas that had several textures painted on it as an image file. I know I can save regular Image's (kivy.core.image) or Texture's (kivy.graphics.texture) as an image file with the save() function, so if I am able to convert the canvas to an Image or a Texture it should be eas...
true
36,600,993
1.2
0
0
9
Widgets have an export_to_png method. Call this from the Widget whose canvas you have drawn on.
0
2,200
0
3
2016-04-13T14:09:00.000
python,python-3.x,kivy
How to save a kivy canvas object as an image file
0
1
1
36,601,394
1
0
0
I want to add a simple password check to a Python/wxPython/MySQL application to confirm that the user wants to carry out a particular action. So far I have a DialogBox with a textCtrl for password input and Buttons for Submit or Cancel. At the moment the password appears in the textCtrl. I would prefer this to appear a...
true
36,643,784
1.2
0
0
2
Set the style on the text ctrl as TE_PASSWORD: The text will be echoed as asterisks.
0
493
0
0
2016-04-15T09:49:00.000
python-2.7,wxpython
Creating Simple Password Check In wxPython
0
1
2
36,649,037
1
0
0
I'm searching for a way to get the path of the directory of the file that I have chosen by QFileDialog.getOpenFileName(). I know that you can access it by os.path.dirname(os.path.realpath(filename), but I'm searching for a better way because I need to work in this directory. I don't really understand why you can access...
false
36,645,478
0.53705
0
0
3
It turns out that the filename which is accessed by QFileDialog.getOpenFileName() is actually not only the filename but the whole path..
0
5,334
0
2
2016-04-15T11:06:00.000
python,directory,pyqt,qfiledialog,getopenfilename
pyqt QFileDialog.getOpenFileName() get path of the directory of the file
0
1
1
36,650,012
1
0
0
How would you be able to create multiple screens using Pygame and events performed by the user? For example, if I had a menu screen with 2 buttons ('Start' and 'Exit') and the user clicked on 'Start', a new screen would appear in the same window with whatever is next in the game. From that screen, a user could click o...
true
36,667,149
1.2
0
0
4
Make classes for each one, where each class is a subclass of pygame.Surface, of the same size as the display. Then you could have 3 variable TITLESCREEN, PLAYING, HIGHSCORES and change them on key press. Then you would be able to blit the correct screen to the display.
0
3,094
0
1
2016-04-16T17:08:00.000
python,pygame
Making multiple 'game screens' using Pygame
0
2
3
36,670,152
1
0
0
How would you be able to create multiple screens using Pygame and events performed by the user? For example, if I had a menu screen with 2 buttons ('Start' and 'Exit') and the user clicked on 'Start', a new screen would appear in the same window with whatever is next in the game. From that screen, a user could click o...
false
36,667,149
0
0
0
0
What I did for this was have a literal main loop that checks to see what "Screen" the player wants to go to. Like if they press the exit button, it returns where to go next. The main loop then runs a the new script for the new screen.
0
3,094
0
1
2016-04-16T17:08:00.000
python,pygame
Making multiple 'game screens' using Pygame
0
2
3
62,853,674
1
0
0
I am new to using emacs as python ide. I am using Emacs 24.5.1 with its default python mode. I am writing a game with pygame and pyganim modules, but i am not able to run the code and test it because sometimes when i hit C-c C-c for eval buffer at the down window (i think it calls mini buffer?) i see only Sent: import...
false
36,668,587
0.197375
0
0
1
You need to start the interpreter first with C-c C-p (run-python). Then you can C-c C-c (python-shell-send-buffer) to send the entire buffer to the python process or even C-c C-r (python-sheel-send-region) to only send the selected region to the python process. See more keybindings for your current buffer with C-h m (d...
0
459
0
0
2016-04-16T19:17:00.000
python-2.7,ubuntu,emacs
Emacs+python C-c C-c not working
0
1
1
36,672,978
1
0
0
I'd like to try Qpython on a Samsung Galaxy Tab 4 running Android 4.4.2. Which would be better, in terms of stability, functionality, supported libraries, etc., Qpython or Qpython3? Or can they be installed side-by-side? Thanks.
false
36,680,852
0.197375
0
0
1
You can install and run both the apps.It is better to install both because qpython uses python2.7 where as qpython3 uses python3.x.The syntax are different for both the versions so obviously the libraries. There is a pip console in qpython to install libraries where as in qpython3 it is not there.
0
2,861
0
0
2016-04-17T18:58:00.000
android,galaxy-tab,qpython,qpython3
Qpython or Qpython3?
0
1
1
39,323,926
1
0
0
I thought it meant everything in the module. But in tkinter I would have to specifically import things like messagebox, colorchooser and filedialog despite having a "from tkinter import *" command. So exactly what does "import *" mean?
false
36,695,687
-0.066568
0
0
-1
It just means that you import all(methods, variables,...) in a way so you don't need to prefix them when using them.
1
11,100
0
1
2016-04-18T13:40:00.000
python,python-3.x
What exactly does " from module import * " mean?
0
1
3
36,695,749
1
0
0
I installed theano but when I try to use it I got this error: WARNING (theano.configdefaults): g++ not detected! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. I installed g++, and put the c...
false
36,722,975
0.099668
1
0
3
This is the error that I experienced in my mac running jupyter notebook with a python 3.5 kernal hope this helps someone, i am sure rggir is well sorted at this stage :) Error Using Theano backend. WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for bot...
0
31,119
0
18
2016-04-19T15:31:00.000
python,g++,theano
theano g++ not detected
0
3
6
40,705,647
1
0
0
I installed theano but when I try to use it I got this error: WARNING (theano.configdefaults): g++ not detected! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. I installed g++, and put the c...
false
36,722,975
1
1
0
7
I had this occur on OS X after I updated XCode (through the App Store). Everything worked before the update, but after the update I had to start XCode and accept the license agreement. Then everything worked again.
0
31,119
0
18
2016-04-19T15:31:00.000
python,g++,theano
theano g++ not detected
0
3
6
39,568,992
1
0
0
I installed theano but when I try to use it I got this error: WARNING (theano.configdefaults): g++ not detected! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. I installed g++, and put the c...
false
36,722,975
1
1
0
6
On Windows, you need to install mingw to support g++. Usually, it is advisable to use Anaconda distribution to install Python. Theano works with Python3.4 or older versions. You can use conda install command to install mingw.
0
31,119
0
18
2016-04-19T15:31:00.000
python,g++,theano
theano g++ not detected
0
3
6
37,846,308
1
0
0
I just started a new job. Existing code is wxpython GUI that is partially implemented. The jist is that there are 2 independent GUIs: one is a "status monitor with test abort button" and the other is a test executive, running tests that might take a few minutes. At any time, the status monitor GUI abort button shou...
false
36,757,558
0
0
0
0
Yes and no. As far as I know, it is not possible to run 2 GUIs just seperated by threads. We had a quite similar problem. And as we are using Windows mainly, we needed to work around the Python GIL, to enable the GUI to stop the subprocess which executes the tests. In order to do so, we moved to multiprocessing library...
0
144
0
0
2016-04-21T00:29:00.000
multithreading,user-interface,parallel-processing,wxpython
2 "parallel" wxpython GUIs possible?
0
1
1
36,760,661
1
0
0
I want to make a msi for my PyGame game with cx_Freeze : (I already created an execute file) So, i used python setup.py bdist_msi, but I got this message : File "C:\Python34\lib\msilib\__init__.py", line 213, in commit FCICreate(filename, self.files) ValueError: FCI error 1 An idea ?
false
36,802,811
0
0
0
0
I had that problem, the build was created and worked ok, but an ValueError: FCI error 1 take place in the msi creation. In my case, it was due to data files containing a point in your name (example AB_12345.1.fasta). I replaced the point by the underscore symbol (example AB_12345_1.fasta) and everything worked properly...
1
1,671
0
3
2016-04-22T20:29:00.000
python,pygame,cx-freeze
Building msi with cx_Freeze : ValueError: FCI error 1
0
3
4
38,202,398
1
0
0
I want to make a msi for my PyGame game with cx_Freeze : (I already created an execute file) So, i used python setup.py bdist_msi, but I got this message : File "C:\Python34\lib\msilib\__init__.py", line 213, in commit FCICreate(filename, self.files) ValueError: FCI error 1 An idea ?
false
36,802,811
-0.049958
0
0
-1
I had the same problem. I solved my problem by deleting the build directory. Then run python setup.py bdist_msi. That works for me. I wish it will help you.
1
1,671
0
3
2016-04-22T20:29:00.000
python,pygame,cx-freeze
Building msi with cx_Freeze : ValueError: FCI error 1
0
3
4
47,951,324
1
0
0
I want to make a msi for my PyGame game with cx_Freeze : (I already created an execute file) So, i used python setup.py bdist_msi, but I got this message : File "C:\Python34\lib\msilib\__init__.py", line 213, in commit FCICreate(filename, self.files) ValueError: FCI error 1 An idea ?
false
36,802,811
0
0
0
0
I had the same problem. I used non-ascii characters at the path contains. I solved that by changing the path contains into ascii characters.
1
1,671
0
3
2016-04-22T20:29:00.000
python,pygame,cx-freeze
Building msi with cx_Freeze : ValueError: FCI error 1
0
3
4
49,082,133
1
0
0
I'm working on a simple program in Python 3.5 that contains turtle graphics and I have a problem: after the turtle work is finished the user has to close the window manually. Is there any way to program the window to close after the turtle work is done?
false
36,826,570
-0.132549
0
0
-2
Try exitonclick() or done() at the end of the file to close the window .
0
42,886
0
16
2016-04-24T17:30:00.000
python,python-3.x,turtle-graphics
How to close the Python turtle window after it does its code?
0
2
3
36,827,757
1
0
0
I'm working on a simple program in Python 3.5 that contains turtle graphics and I have a problem: after the turtle work is finished the user has to close the window manually. Is there any way to program the window to close after the turtle work is done?
true
36,826,570
1.2
0
0
18
turtle.bye(), aka turtle.Screen().bye(), closes a turtle graphics window. Usually, a lack of turtle.mainloop(), or one of its variants, will cause the window to close because the program will exit, closing everything. turtle.mainloop() should be the last statement executed in a turtle graphics program unless the script...
0
42,886
0
16
2016-04-24T17:30:00.000
python,python-3.x,turtle-graphics
How to close the Python turtle window after it does its code?
0
2
3
42,283,059
1
0
0
I have designed a gui with PYQT4. It has two buttons. One of start button. It starts a start.py file. And another button execute stop.py file that stop start.py pid. This start.py and stop.py files are on a remote location. I am connecting there with ssh and paramiko. When I click to start button, gui is freezing and ...
true
36,828,383
1.2
0
0
0
I found the solution. I covered that function in thread. And now its working properly without freeze or lag.
0
236
0
0
2016-04-24T20:11:00.000
python,debugging,pyqt4
Qt freezing cause of the loop?
0
1
2
36,916,323
1
0
0
I developed a GUI app in Python 3. I want to be able to launch it by clicking on the script itself or in a custom-made launching script. I have changed permissions and it's now opening with "Python Launcher" on double-click. But everytime I run my app, I get a lot of windows: My Python application (that's the only one...
false
36,864,537
0
0
0
0
By changing the file extension to .pyw (Python Windowed), any terminal/shell/cmd would be hidden by default (I even don't know about the preferences window). Hope this helps!
0
3,492
0
3
2016-04-26T12:08:00.000
python,macos,python-3.x,tkinter
How to run a Python 3 tkinter app without opening any Terminal windows in Mac OS X?
0
1
2
36,864,625
1
0
0
I am making a program that will display images on a Tkinter canvas, but I need to use images in a different folder than the program is in so I can't use what I usually do: img = PhotoImage(file=some_img) I have an os path like C:\Users\SomeUser\Documents\some_img. I need to access some_img to make it a PhotoImage while...
true
36,898,571
1.2
0
0
1
If you have the full path then that should work fine as it is.
0
252
0
0
2016-04-27T18:56:00.000
python-2.7,tkinter,tkinter-canvas
Using an os path in Tkinter PhotoImage
0
1
1
36,898,667
1
0
0
I am trying to create a label for a string in TKinter. The string can be very long, and greater than the length of the label. Therefore, I wanted to implement a label which can scroll sideways, to show the entirety of the string. How would you do this in TKinter?
true
36,959,902
1.2
0
0
3
You cannot scroll a label. I suggest using an entry widget. You can set the state to disabled to prevent users from using it like an entry widget, and you can change the borders to make it look like a label.
0
379
0
1
2016-04-30T20:28:00.000
python,user-interface,tkinter
Scrollable label for TKinter?
0
1
1
36,961,427
1
0
0
I guess this might be a trivial question, nonetheless I couldn't find the answer anywhere. I am currently building a small rpg style game and I am starting to have quite a few sprite groups. I was wondering if there was a way to ask Pygame to refer to all existing groups ? I would need this function to be able to move ...
false
36,968,992
0
0
0
0
Try making one group for all sprites in your game, and filling it while filling the separate groups
1
36
0
0
2016-05-01T16:26:00.000
python-2.7,loops,pygame,sprite
Is there a way to iterate through all existing groups automatically?
0
2
2
37,002,212
1
0
0
I guess this might be a trivial question, nonetheless I couldn't find the answer anywhere. I am currently building a small rpg style game and I am starting to have quite a few sprite groups. I was wondering if there was a way to ask Pygame to refer to all existing groups ? I would need this function to be able to move ...
true
36,968,992
1.2
0
0
0
From @Ni. Sprite.kill() removes a sprite from all its groups
1
36
0
0
2016-05-01T16:26:00.000
python-2.7,loops,pygame,sprite
Is there a way to iterate through all existing groups automatically?
0
2
2
37,038,660
1
0
0
so i'm going to be as in depth as possible, here's my problem: I'm using the turtle.addshape() command to add images onto the turtle. In order to do this I have to do turtle.addshape(C:\Users\Username Here\Desktop\Game\Images\an image.gif) The problem is with this, is that if I were to distribute my file, it would sear...
false
36,971,884
0
0
0
0
For this to happen you need to use a relative path from your Game directory (assuming this is the working directory for your game). Eg. "Game\Images\an image.gif"
0
179
0
0
2016-05-01T21:00:00.000
python,file
Python - File Directory Issue
0
1
2
36,971,947
1
0
0
I know how to use ctypes to call a function from a C++ .dll in Python by creating a "wrapper" function that casts the Python input types to C. I think of this as essentially recreating the function signatures in Python, where the function body contains the type cast to C and a corresponding .dll function call. I curren...
true
37,002,150
1.2
0
0
2
I would recommend using Cython to do your wrapping. Cython allows you to use C/C++ code directly with very little changes (in addition to some boilerplate). For wrapping large libraries, it's often straightforward to get something up and running very quickly with minimal extra wrapping work (such as in Ctypes). It's al...
1
1,193
0
2
2016-05-03T10:51:00.000
python-3.x,dll,ctypes
How to programmatically wrap a C++ dll with Python
0
1
1
38,547,145
1
0
0
I am trying to do make a virtual keyboard using tkinter. Is there any method that allow tkinter window focus out? For example in java we can have setFocusableWindowState(false) Thank you very much for your help.
false
37,026,046
0
0
0
0
I believe you can accomplish what you want with tkinter, but it's not about not getting focus. I don't think, that other GUI tools will make it any easier. It's part of operation system, or more precisely window manager to give focus to some window, when it is clicked. So, in case of virtual keyboard: User has focus i...
0
440
0
0
2016-05-04T11:07:00.000
python,tkinter
How to set tkinter window focus out?
0
1
1
37,028,844
1
0
0
Currently in my work placement, I have to creat a GUI thanks to Tkinter. In this GUI I have to embed a console, this console has to be interactive that is to say stdout & stderr will display in this console and user can type up a commande. With my first research, I think xterm can be useful, but I didn't find how we ca...
false
37,026,175
0
0
0
0
You should start with an analysis of what you expect: input from user: what do you want, how you want to process it? (is this really shell input?) feed back: what do you want to display, how is it produced? (direct shell output?) xterm is just a graphic interface around a shell. That means that is captures keyboard i...
0
1,028
0
0
2016-05-04T11:13:00.000
python,tkinter,console,stdout,xterm
Python, Tkinter, embed an interactive console and redirect stdout
0
1
1
37,031,498
1
0
0
I have a GridView inside of a ScrollView. I am trying to create and display approximately ~12,000 items in the GridView (which clearly will not display appropriately on screen), but the number of items could feasible be ~40,000. Currently ~18 seconds are spent constructing all of the items (Labels), and any resizing of...
false
37,064,168
0
0
0
0
How can you imagine a user scrolling through 40000 labels? You should rethink your app design. Consider adding a text input, and based on the given string, fetch filtered data from the database you have.
0
525
0
0
2016-05-06T04:19:00.000
python,kivy
Kivy ScrollView (with Gridview) Suffering Performance Issues
0
1
1
37,085,902
1
0
0
I found ways to hide something after pressing a button, but what I would like to do is having an invisible button that can still be pushed. A secret button of some sort, using Tkinter. It doesn't need to do anything yet
true
37,111,267
1.2
0
0
0
You don't need an invisible button to register a secret click Simply bind <1> to the root window and it will register whenever you click on anything (unless you click on some other widget that is listening for that event). You can then check the coordinates of the click to see where the use clicked.
0
1,995
0
1
2016-05-09T08:44:00.000
python,tkinter
Is there a way to make an invisible button in Tkinter?
0
1
1
37,117,837
1
0
0
I searched on the web and couldn't find anything. How can I install PyQt5 for Python 3.4 version?
false
37,150,509
0
0
0
0
I am using pyCharm and it allows me to install PyQt5 from the settings menu, just go to the "Project Interpreter" and install it.
1
10,671
0
4
2016-05-10T23:23:00.000
python,python-3.4,pyqt5
How to install PyQt5 for Python 3.4 version?
0
1
2
37,150,609
1
0
0
In my build I am required to copy header files in a flat structure while source code files are copied in a hierachical structure. By default when specifying duplicate = 1 (my build is a variant dir build) in SCons all header files and .c/.cpp files are duplicated in a hierarchical structure. Is there a way to deactiva...
true
37,271,162
1.2
0
0
1
You can't turn off the duplicate method for only a subset of files (based on their extension for example). Installing a subset of source and target files to a specific directory is usually handled by calling the Install() method. Independent of whether you plan to use duplicate=0 or duplicate=1 for your actual builds, ...
0
82
0
0
2016-05-17T08:41:00.000
python,scons
How to deactivate header files duplication in SCons?
0
1
1
37,272,718
1
0
0
I'm creating a program that I would like to use as a normal program as well as continue to code it on the side. To do this I first tried creating a shortcut of the .py file in my PyCharms project folder and sent it to desktop. When I double-clicked the shortcut the command prompt would open for a second and then shut. ...
false
37,297,917
0
0
0
0
Managed it thanks to the link above. Uninstalled Python 3.5 and set my PATH variable to C:\Python34. Downloaded pyinstaller and installed it using PIP. Then navigated to Python34/Scripts and dragged myFile.py (the one to be made an .exe) into it. Ran pyinstaller.exe --windowed myFile.py to create the exe which then wen...
1
883
0
0
2016-05-18T11:13:00.000
python,pyqt
How can I run my Python program like a normal program from the desktop?
0
2
2
37,298,956
1
0
0
I'm creating a program that I would like to use as a normal program as well as continue to code it on the side. To do this I first tried creating a shortcut of the .py file in my PyCharms project folder and sent it to desktop. When I double-clicked the shortcut the command prompt would open for a second and then shut. ...
false
37,297,917
0
0
0
0
Go to your environmental variables (Right click on Computer > Properties > Advanced system settings > Environment Variables...). Find Path in System variables, select it, and click edit. Remove the Python 3.5 path and replace it with your python 3.4 or virtual environment folder that has python.exe in it. Make a short...
1
883
0
0
2016-05-18T11:13:00.000
python,pyqt
How can I run my Python program like a normal program from the desktop?
0
2
2
37,299,236
1
0
0
I am working on an GUI based application, that is developed using python and go. I am using python(+Kivy) to implement UI and Go to implement middleware / core on windows OS. my problem statement is : 1) I want to run the exe of the core on launching the application and it should remain in the background till my appli...
true
37,319,345
1.2
0
0
1
There are many ways you can tackle this but what I would recommend is having one of the parts (GUI/Core) as the main application that does all of the initializations and starts the other part. I would recommend using the core for this. Here's a sample architecture you can use, though the architecture you choose is hig...
1
105
0
2
2016-05-19T09:37:00.000
python,user-interface,go,communication,core
Communication between UI and Core on windows machine
0
1
1
37,328,359
1
0
0
I have a QComboBox and say I type the word "info" in the box, followed by "INFO". Why doesn't it remember both as 2 distinct words and instead convert "INFO" to "info"? How can I go about solving this issue so that both words would end up in the list. Also the back-end is in python. Note: I would prefer a solution with...
true
37,336,002
1.2
0
0
0
The easiest way - to use setAutoCompletion(false) on your QComboBox.
0
47
0
0
2016-05-20T00:08:00.000
python,qt,qcombobox
QComboBox: same words with different cases are seen as duplicates
0
1
1
37,339,381
1
0
0
I have just installed kivy in python 2.7.11. After installing it, whenever i try to open IDLE, it is giving subprocess startup error. Actually i installed kivy on my windows 7 PC through command prompt. After installation, I copied programs of kivy from my android tab to run them on my pc. When I tried to open them, ID...
false
37,346,844
0
0
0
0
reason for subprocess startup error can be a new python file that you have created recently with the same name as same existing libraries or module name e.g. 're.py','os.py' etc beacuse re,os are the predefined libraries just go and find the file and rename it hope so it will be resolved
0
566
1
0
2016-05-20T12:32:00.000
python-2.7,kivy,startup,python-idle
Python IDLE giving startup error
0
1
1
48,363,806
1
0
0
Ok so I am very bad at sprites and I just don't get how to use sprites with blitted images. So I was wondering, if I make the image and just make a rectangle around that object that follows that image around, would that be a good replacement for sprites, the rectangle would be the one that's colliding for instances... ...
true
37,381,061
1.2
0
0
0
In my experience, most uses for sprites can work with rectangular collision boxes. Only if you had an instance where a ball needed to be collided with then you would have to use an actual sprite. In the long run, I would recommend learning sprites, but if you need help with sprites, the pygame documentation has loads o...
0
25
0
2
2016-05-23T00:28:00.000
python-3.x,pygame
Replacing sprites idea
0
1
1
37,381,094
1
0
0
OptionMenu is working perfectly in my application to select one option among several possible. However, I need to allow the user to select more than one option. Is it possible?
true
37,394,199
1.2
0
0
2
It's not designed for that. If you want that sort of behavior you can create your own widget. An optionmenu is just a menubtton and a menu, and a tiny bit of code.
0
230
0
2
2016-05-23T14:51:00.000
python-3.x,tkinter,optionmenu
How to allow more than one selection in tkinter OptionMenu?
0
1
1
37,395,425
1
0
0
I searched the web and SO but did not find an aswer. Using Python, I would like to know how (if possible) can I stop the screen from updating its changes to the user. In other words, I would like to buid a function in Python that, when called, would freeze the whole screen, preventing the user from viewing its changes....
true
37,419,778
1.2
0
0
1
If by "the screen" you're talking about the terminal then I highly recommend checking out the curses library. It comes with the standard version of Python. It gives control of many different aspects of the terminal window including the functionality you described.
0
1,178
0
0
2016-05-24T17:03:00.000
python,screen,freeze,display
Using Python, how to stop the screen from updating its content?
0
1
1
37,421,436
1
0
0
I'm still relatively new to Python and Kivy (much more so for Kivy). I'm running Python 3.5 and Kivy 1.9.1 on OS X. I installed Kivy using pip install, and I was never really able to get Kivy to work using the download and putting in my Applications folder like the instructions were asking. Everything seems to work fin...
true
37,476,505
1.2
0
0
3
The problem was caused because Kivy was using Pygame. I had to brew install the SDL2 dependencies and reinstall Kivy. This fixed the problem.
0
556
0
1
2016-05-27T06:41:00.000
python,kivy
Kivy window goes blank after being resized
0
1
1
37,493,470
1
0
0
I am starting to learn Tkinter and have been creating new windows with new instances of Tk every time. I just read that that wasn't a good practice. If so, why? And how could this be done better? I have seen others create windows with Toplevel and Frame instances. What are the benefits/drawbacks of using these instead?...
true
37,502,942
1.2
0
0
3
Every tkinter program needs exactly one instance of Tk. Tkinter is a wrapper around an embedded tcl interpreter. Each instance of Tk gets its own copy of the interpreter, so two Tk instances have two different namespaces. If you need multiple windows, create one instance of Tk and then additional windows should be ins...
0
1,757
0
0
2016-05-28T19:17:00.000
python,python-2.7,user-interface,tkinter
Tkinter Creating Multiple Windows - Use new Tk instance or Toplevel or Frame?
0
1
1
37,503,535
1
0
0
I have made a GUI application using wxpython and some other packages (matplotlib, pandas, numpy). I tried to compile this into a standalone executable. However, when I run the 'my_script.exe' I get the following error in my command prompt: Intel MKL FATAL ERROR: Cannot load mkl_avx2.dll or mkl_def.dll. The versions...
true
37,511,165
1.2
0
0
2
Search for mkl_avx2.dll & mkl_def.dll files and paste them in your .exe folder.
1
2,841
0
1
2016-05-29T14:37:00.000
python,executable,anaconda,pyinstaller
Pyinstaller Intel MKL fatal error when running .exe file Python 2.7
0
1
2
37,513,422
1
0
0
I have a Python function that takes no parameters. In my code, I call this function twice. Once as a command behind a Tkinter Button and once as a function to an event that I bind to a window. For the command, I call the function as func and that works fine. For the event, it will only work if I call it as func() and c...
true
37,514,795
1.2
0
0
-1
This is because when you bind a function to a button you are not calling the function, only binding it so that tkinter knows what to do when the button is pressed. You only need to use func() when you are calling the function as you are doing in the the event.
0
116
0
1
2016-05-29T20:44:00.000
python,tkinter
What is the difference between "func" and "func()" in TkInter?
0
1
1
37,514,847
1
1
0
I want to set my QGroupBox's title with HTML expressions in python program, e.g. : ABC. (subscript) Does anybody have an idea how to do this?
true
37,527,124
1.2
0
0
1
QGroupBox's title property does not support HTML. The only customization you can do through the title string (besides the text itself) is the addition of an ampersand (&) for keyboard accelerators. In short, unlike QLabel, you can't use HTML with QGroupBox.
0
372
0
1
2016-05-30T13:38:00.000
python,html,qt,groupbox
How can I set QGroupBox's title with HTML expressions? (Python)
0
1
3
37,535,825
1
0
0
to elaborate, I'm currently creating a maze layout using wall sprites. however, I want the maze to be invisible when I am actually playing the game, while still able to be able to have collision detection. Is this possible in any way? Thanks.
false
37,535,998
0.197375
0
0
1
Are you using images to show your walls? Because if you are, you can use a program called paint.net to create a transparent sprite. Just create a file with the desired dimensions and use the eraser tool to make the whole thing transparent (click on the little squiggly arrow up at the top to make it easier). Save it as ...
1
318
0
0
2016-05-31T02:38:00.000
python,python-2.7,pygame
How to make an invisible sprite in pygame? (python)
0
1
1
42,210,427
1
0
0
I know how to make message boxes, and I know how to create textboxes. However, I don't know how to make a message box WITH a textbox in it. I've looked through the tkinter documentation and it seems message boxes are kind of limited. Is there a way to make a message box that contains a text entry field, or would I have...
true
37,556,808
1.2
0
0
0
simpledialog.askstring() was exactly what I needed.
0
392
0
1
2016-05-31T22:40:00.000
user-interface,python-3.x,tkinter,textbox,messagebox
Python: Create a message box with a text entry field using tkinter
0
1
1
37,559,356
1
0
0
I know "adb push" command could be used to push files to android device. But in Python how do i push single file for example file.txt(size of about 50 KB) into android sdcard with different names(for ex. file1.txt, file2.txt etc) until the device storage is full. Any idea much appreciated.
false
37,559,502
0
0
0
0
I found an alternative solution to this problem. In a python while loop push a single file into SD Card and use "adb mv" to rename the file in the SD Card after pushing the file, continue this until the device memory is full.
0
227
0
1
2016-06-01T04:34:00.000
python
Python push single file into android device with different names until the device runs out of memory
0
1
1
37,658,540
1
0
0
I am trying to make a grid on a QGraphicsView and QGraphicsScene with custom QGraphicsWidgets, but I am not sure how the best way to do this would be. I'm working with PyQt4, but this is a general Qt question. My current implementation contains the following. One QGraphicsScene (with view) and one QGraphicsWidget that ...
true
37,592,580
1.2
0
0
1
Is there a better way to make the hierarchy of widgets, my current one seems excessive (Scene > Widget > Layout > Widgets) When I use the QGraphics.... classes, I generally will subclass QGraphicsView. The view will create it's own scene and have convenience methods for creating all the child items as well. From an...
0
464
0
0
2016-06-02T12:58:00.000
python,c++,qt,qt4,pyqt4
Adjusting widget size in QGraphicsGridLayout
0
1
1
37,598,213
1
0
0
Well I need to scale (kinda like changing the screen resolution on your PC) the TkInter window up and down and I have checked like 200 answers and they are all for Python 2.0 so please do any of you guys have any help on this?
false
37,607,312
0.197375
0
0
1
You can't do what you want. You can simulate it partly by setting up bindings that can grow and shrink the size of fonts as a window is resized, and you can double or halve the size of images. You can also have widgets like the canvas, text widget, and frames grown and shrink to fit. However, widgets in general won't s...
0
53
0
0
2016-06-03T06:26:00.000
python-3.x,tkinter
How can I scale the contents of a tkinter window up and down?
0
1
1
37,613,354
1
0
0
I tried a lot of technics but nothing work, I want to convert my .ui file to a .py file, using the pyuic4 in cmd, but the result is : from PyQt4 import QtCore ImportError: DLL load failed: %1 [...] is not a valid Win32 application I'm using a 64bits system with python27 and "PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x64.exe" ...
true
37,623,661
1.2
0
0
0
Maybe try PYQT 3. Version 4 has some bugs in it
0
127
0
0
2016-06-03T21:24:00.000
python,qt,user-interface
Python Error When creating a .py file from a .ui file (from Qt designer)
0
1
1
37,623,811
1
0
0
I have a Matlab function that takes a 3D binary object as input, saves it as temporary file, then loads a python script through cmd (I made this before Matlab's python integration). The python script loads and reorganizes the 3D data and displays them through VTK. The python script also creates some VTK controls that ...
true
37,632,614
1.2
0
0
0
I kind of got it to work. Here's what I did: matlab session running the GUI converts to shared session through matlab.engine.shareEngine('shared_matlab_session') and keeps track of the matlab GUI slider position in matlab_slider_pos variable the python script connects to the session through MatEng=matlab.engine.connec...
0
204
0
0
2016-06-04T16:36:00.000
python,matlab,vtk
controlling VTK through Matlab
0
1
1
37,661,211
1
0
0
So I spent a lot of time trying to fugure out what Cython and Jython are and I'm still (more) confused as anyone who just started computer programming. I heard that Cython is an extension, but..is also and indepent language?? What I think I've understood is that: Cython/Jython is just Python and you can use C or C++/J...
false
37,643,172
0
0
0
0
Jython is a implementation of Python language on the Java Virtual Machine, so Jython is Python but is not CPython. Cython is an extension to CPython and has not much in common with Python except some similarities in Syntax.
1
3,486
0
3
2016-06-05T14:44:00.000
java,python,c,jython,cython
Is Cython/Jython an independent language?
0
3
4
37,643,350
1
0
0
So I spent a lot of time trying to fugure out what Cython and Jython are and I'm still (more) confused as anyone who just started computer programming. I heard that Cython is an extension, but..is also and indepent language?? What I think I've understood is that: Cython/Jython is just Python and you can use C or C++/J...
false
37,643,172
0.099668
0
0
2
Ok. Jython is an implementation of Python that converts python source code into java bytecode or object code as most people call it. So you basically write your programs using the python syntax, but the output of the source code when compiled to an object code is the java bytecode Cython on the other hand is an impleme...
1
3,486
0
3
2016-06-05T14:44:00.000
java,python,c,jython,cython
Is Cython/Jython an independent language?
0
3
4
37,643,398
1
0
0
So I spent a lot of time trying to fugure out what Cython and Jython are and I'm still (more) confused as anyone who just started computer programming. I heard that Cython is an extension, but..is also and indepent language?? What I think I've understood is that: Cython/Jython is just Python and you can use C or C++/J...
false
37,643,172
0.049958
0
0
1
CPython is comparable to Jython. They're the implementation of the Python language. CPython is the de-facto standard and was written in C. Jython is written in Java and runs on the JVM. It also allows accessing the Java ecosystem to a great extent. There are also other implementation of the language, like PyPy or Pysto...
1
3,486
0
3
2016-06-05T14:44:00.000
java,python,c,jython,cython
Is Cython/Jython an independent language?
0
3
4
37,643,279
1
0
0
I'm trying to make a GUI in tkinter that uses one image as an overlay on top of another, but when I place the image over the lower one, the transparent area of the image appears as grey. I've searched for solutions to this, but all the results that I've found have pointed towards using PIL. Is it possible for me to use...
false
37,667,631
0
0
0
0
You could use some basic photoshop tools like the magic wand tool to remove the background, but keep in mind, some PNG format images have a faint background. This is either in the from of a watermark, or the image background was rendered with a lower opacity than the rest of the image. Your GUI may also have a layer pl...
1
234
0
0
2016-06-06T22:10:00.000
python,user-interface,tkinter,transparent
How can I make the background of an image appear transparent without PIL?
0
1
1
37,801,513
1
0
0
Right now I have an image processing algorithm that is roughly 100 lines or so in Python. It takes about 500ms using numpy, PIL and scipy. I am looking to get it faster, and as the actual algorithm seems pretty optimized thus far, I'm wondering if using a different approach such as Cython would improve the times. I bel...
true
37,712,561
1.2
0
0
6
It helps to know what you need to do here. If you're not using ctypes for function calls, it's unlikely that it will save you anything to just have ctypes types involved. If you already have some DLL lying around with a "solve it for me" function, then sure, ctypes it is. Cython creates extension modules, so anything y...
0
929
0
5
2016-06-08T20:43:00.000
python,cython,ctypes,python-extensions
Differences between Cython, extending C/C++ with Python.h, etc
0
1
1
37,712,741
1
0
0
I'm using length based message framing with python twisted framework with a C# client running BeginRecieve async reads and I'm having trouble grabbing the value of the length of the message. This is the twisted python code self.transport.write(pack(self.structFormat, len(string)) + string) And this is the C# code: i...
false
37,718,216
0
0
0
0
Sorry the question was badly asked. I did find the solution though. int netmsg_size = BitConverter.ToInt32(state.buffer, 0); int msg_size = IPAddress.NetworkToHostOrder(netmsg_size); This converts the network integer back into a regular integer.
0
72
1
0
2016-06-09T06:19:00.000
c#,python,sockets,twisted,beginreceive
Python Twisted frameowrk transport.write to a c# socket BeginReceive reading length based message framing value
0
1
1
37,736,839
1
0
0
I am having a problem with running pillow for python 3.4.2. I tried installing Pillow using 3 different files: Pillow-3.2.0.win-amd64-py3.4.exe, Pillow-3.2.0-cp34-cp34m-win_amd64.whl, Pillow-3.2.0-cp34-none-win_amd64.whl. Every time I try to import Image or tkimage I get the not a valid win32 error in shell. Also, ...
false
37,753,121
0
0
0
0
Solved: I finally figured it out! I had a 32 bit and a 64 bit version of python installed. I had pillow installed to my 32 bit directory, so when python ran from 32 bit was why I got the win32 error. And when I ran python 64bit it said module not found. Uninstalled both and reinstalled the 64 bit to the normal install ...
1
115
0
0
2016-06-10T16:31:00.000
python,python-imaging-library,pillow
Unable to use Pillow (not a valid WIN32 error)
0
1
1
38,139,040
1
0
0
This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempting to use pyinstaller to package it into a single folder and .exe for easier portability. Currently, I am using windows 10 and anaconda3 to manag...
false
37,815,371
1
0
0
33
Extending Vikash Kumar's answer, build the application by adding the --hidden-import argument to the command. For example, running the command given below worked for me. "pyinstaller --hidden-import=pkg_resources.py2_warn example.py" update: added missing "="
1
55,660
0
33
2016-06-14T14:49:00.000
python,opencv,ffmpeg,pyinstaller
Pyinstaller "Failed to execute script pyi_rth_pkgres" and missing packages
0
2
8
59,979,390
1
0
0
This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempting to use pyinstaller to package it into a single folder and .exe for easier portability. Currently, I am using windows 10 and anaconda3 to manag...
false
37,815,371
0.07486
0
0
3
this is because he did not copy a dependency.I solved it like this. pyinstaller my_program.py this creates a my_program.spec. it is a base configuration file. open it with any text editor. search for hiddenimports=[] edit to. hiddenimports=["pkg_resources.py2_warn"] now let's call pyinstaller passing our configured f...
1
55,660
0
33
2016-06-14T14:49:00.000
python,opencv,ffmpeg,pyinstaller
Pyinstaller "Failed to execute script pyi_rth_pkgres" and missing packages
0
2
8
62,305,689
1
0
0
I'm developing a project (in Python) that does video processing using OpenCV. Now I'm planning to implement that in my android phone. I read that Qpython supports python on android. So is there any way to import third party libs like OpenCV in Qpython. Thanks in advance.
false
37,833,638
0.099668
0
0
1
You can install opencv from qpython libraries(install from QPypi). QPython --> Libraries --> QPypi --> opencv-qpython --> install Use it as import cv
0
7,472
0
3
2016-06-15T11:05:00.000
android,python,opencv,qpython
OpenCV in Qpython
0
2
2
45,597,300
1
0
0
I'm developing a project (in Python) that does video processing using OpenCV. Now I'm planning to implement that in my android phone. I read that Qpython supports python on android. So is there any way to import third party libs like OpenCV in Qpython. Thanks in advance.
false
37,833,638
0
0
0
0
In Qpython3 there is a pip program (not sure if on qpython too) but running that program you can "pip install [your module]" Worked for me installing sqlalchemy and youtube_dl
0
7,472
0
3
2016-06-15T11:05:00.000
android,python,opencv,qpython
OpenCV in Qpython
0
2
2
38,175,636
1
0
0
Using Python 2.7 and PyQt4. So I need a way to make a text of the QPushButton editable when click on it, like on QTextEdit.
true
37,933,629
1.2
0
0
1
There is no builtin way to edit a push button in the sense that you have a cursor and can type along. Probably the easiest solution is to bring up a QInputDialog. If that feels to heavy, you could also place a floating QLineEdit over or next to the QPushButton. Close that on <Enter> and set the typed text to the QPushB...
0
302
0
1
2016-06-21T00:01:00.000
python,pyqt4,qtextedit,qpushbutton
How to make QPushButton editable text when one click on it?
0
1
1
37,933,711
1