- Strength to Increase Rep
- +16
- Strength to Decrease Rep
- -4
- Upvotes Received
- 1K
- Posts with Upvotes
- 1K
- Upvoting Members
- 383
- Downvotes Received
- 26
- Posts with Downvotes
- 25
- Downvoting Members
- 16
Mind explorer.
- Interests
- Logic, psychology, mathematics.
- PC Specs
- Kubuntu 16.04 Xenial Xerus
Re: The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are … | |
Re: I am trying to use wxPython (the version that ships with Fedora 11 - I'm not building it from source). I am seeing: [code] from wxPython.wx import * File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/__init__.py", line 15, in <module> import _wx File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_wx.py", line 3, in <module> from _core import * File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_core.py", line 15, … | |
Re: Hi all. I have been doing some HTML scraping and today a fellow coder told me about this thing 'DOM' and how much easier it is to use it rather than manipulating strings as I have been doing. He doesn't know much about it, and that's why I came here … | |
Re: Is it possible to write a full blown operating system (such as Linux) in Python? I mean writing a kernal, and then other applications that the kernal calls, without having Windows, Linux, UNIX, or Macintosh OS installed on your computer? | |
Re: I need to make some changes in SPI in Linux. I found that IOCTL was the called function. So where is IOCTL defined? I am using Yocto linux on Intel edison (arduino breakout board).The function call is as: ioctl (this->fd, SPI_IOC_MESSAGE(1),&msg); In the IOCTL definition I want to add code … | |
Re: Hi all, I have 2 form and a main.py in the project: ffrend.py and fmain.py main.py: from PyQt4 import QtCore, QtGui from fmain import * if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() app.exec_() fmain.py (there is a button to execute … | |
Re: Hello everyone, I am writting a code where result is not coming correct because I am not able to join 2 lines to make a single line. Please help me e.g my input file is: AATTCCGGTTT CCTTAACCCCC I want my code to first join them together as AATTCCGGTTTCCTTAACCCCC and then … | |
Re: I have a file that contains a class, its called test.py. How can i call on that class within another file called xml.py? | |
Re: Hi When I run main.py I got this error how can I fix it? I'm using https://github.com/PicciMario/iPhone-Backup-Analyzer-2 / Traceback (most recent call last): File "./main.py", line 44, in <module> from PySide import QtCore, QtGui ImportError: No module named PySide I appreciate your help | |
Re: I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int 1 =0; i< size; i +=1) } answer += values[1]; } … | |
Re: hi guy! I started learn python with pandas , but now, i get the trouble so i cant understand what i should do with this trouble File "C:\Users\Administrator\site-packages\Ver6.py", line 3, in <module> abc = pd.read_csv('book2.csv') AttributeError: module 'pandas' has no attribute 'read_csv' Plz , someone help me coz i cant … | |
Re: This is Python 3.4.2 The documentation says that s2 = s1.strip('a') will strip out all the 'a' in s1. When I run it, only the leftmost character - and only if it is 'a' - is stripped. The default s2 = s1.strip() takes out all whitespace. PS: I understand that … | |
Re: I want to create a batch file in windows to do specific commands on redhat linux server When user click on batch file 1- login to server using root user 2- restart some service 3- logout from server Am able to do cron job to do these commands but I … | |
Re: Hi all, here is a small program I have worked on over these last two days, I have submitted it in the hopes of some constructive criticism and suggestions (please be kind, this is one of my earlier C projects lol). This is a small console application that simulates a … | |
Re: Hello and thanks for reading my thread. I'm willing to start coding a little bit, specially php. This website has a lot of useful information that a rookie like me could use. I have a homeserver that isn't very powerful or big for storage(120GB) but it can be used for … | |
Re: Just trying to find out which of these five isprime functions is the fastest. | |
Re: This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, and that 1 is not considered a prime number. To find out if an integer n is odd one can … | |
Re: I have a python script which extracts unique ip addresses from snort log but how to modify or use regex to extract IPs only if they are logged more than 10 times per second? more specific: using "regex", if the second (i.e 41 in this scenario) doesn't change for more … | |
Re: This short Python code gets the local time from the PC as a formatted string using time.strftime('%H:%M:%S'). The time string is displayed in a label using a larger font. A recursive function checks the time five times per second, and updates the time string, if it has changed. Five times … | |
Re: A simple way to create a toggle button for the Tkinter Python GUI toolkit. | |
Re: [B]Hi all.. I need to do a condition check in a script. The same condition check needs to be repeated in another script. So, I am looking for a way, where i can set, say a flag in the first script ,upon meeting the condition, and be able to access … | |
Re: I've been following this whole 'Bloody Dazah' debate for a while, and have largely resisted from commenting as I was struggling to have anything positive to say. However, having now had a long chat with Dani about Dazah and DaniWeb I have to admit that I've changed my mind with … | |
Re: Can we use Bing instead of Google for accurate search result? | |
Re: Hey guyss, here are a big champs of programming I have seen in this web, I am stucking in this assignment of mine, from where should I start I am totally stucked, is anyone here who can help me for this programme........ Define a function drawCircle. This function should expect … | |
Re: I am having trouble getting my button to work. What I am trying to do is when the button is pressed, it should call the function clickGame() The window is opening after I press the button but I get an error message: self.tk = master.tk AttributeError: 'Point' object has no … | |
Re: Linux Mint So I'm trying to learn French but I'm running into some complications when it comes to finding a good keyboard layout. Here are the layouts that I've tried so far: English (US) English (international Alt Gr dead keys) English (UK, international with dead keys) English (UK, extended WinKeys) … | |
Re: Hello, I have a question about who uses https:// instead of http:// ? What is the point of encrypting the information if that is the point? Who normally uses it? Ecommerce? Bank? Who else? If am I right? | |
Re: Hi, i was working on a code for a vending machine and i do consider myself to be a beginner, anyway i feel my code is much longer than it needs to be and i want someone to show me a new, shorter way of presenting it. import time print … | |
Re: Hello, I am new to python and try to learn more about it. How can I copy or move all the sub-folders (folderA, folderB, folderC,...) from folder1 to folder2 (folder2 is already existed)? I tried this [Click Here](http://www.daniweb.com/software-development/python/threads/176391/how-to-move-files-to-another-directory-in-python) for files and it worked. How can I use something similar to … | |
Re: hi. i have a really basic question (really new to python). how do i read an entire binary file? from https://www.devdungeon.com/content/working-binary-data-python , `data = binary_file.read()` is to read the whole file at once. so i have a .dng file to test, which is 16.2mb, and i did: with open("portrait1.dng", "rb") … |