text
stringlengths
226
34.5k
Accessing Local Variables Inside a Python Generator Question: How would you access a local variable defined inside a Python generator from outside the generator? I have a case where my generator manipulates a local state, and for unittests I want to inspect this state to ensure it contains the correct values. I can't...
Inversion of Control: Have you ever had to decide what Dependency Injection framework is best for a project? Which one did you pick and why? Question: Rather than triggering a flamewar on what DI framework is "best" (I don't think there's a definitive general solution), this question is meant to discuss good alternativ...
Any easy way to plot a 3d scatter in Python that I can rotate around? Question: Currently I'm using matplotlib to plot a 3d scatter and while it gets the job done, I can't seem to find a way to rotate it to see my data better. Here's an example: import pylab as p import mpl_toolkits.mplot3d.axes3d a...
Specify action to be performed at the end of many functions Question: I have a python object in which a bunch of functions need to perform the same action at the end of execution, just before the `return` statement. For example: def MyClass(object): def __init__(self): pass ...
Python class is a subclass of itself, is this ok? Pitfalls? Question: I am wrapping a large C library using ctypes. [ctypesgen](http://code.google.com/p/ctypesgen/) generated the wrapping code (not too far from how I do it myself). As a part of the ctypes wrapping C structures get made as objects, some of these have "s...
Python code reflection and modification Question: Perhaps I'm not using the proper term, but I'm looking to take a block of Python code (in Python), get the token tree for the code, make some kind of modification, and re-assemble it to Python. For instance, consider this block of code: def x(y): ...
Parameterising an import statement Question: I maintain a Python module that wraps and exposes the functionality of a DLL (also maintained by me). The interfacing with the DLL uses ctypes. This all works wonderfully thanks to the wonders of ctypes. However, as I am by no means a Python expert, there are some parts of ...
How do you play ogg files in Python in Linux? Question: Could someone provide a short code or pseudocode example of how to play ogg files in Python 2.7.1 or Python 3.1.3 in Linux (along with a list of any dependencies from the Synaptic Package Manager, or elsewhere)? Answer: If you don't mind depending on numpy, my p...
Icon overlay issue with Python Question: I found some examples and topics on this forum about the way to implement an icon overlay handler with Python 2.7 & the win32com package but it does not work for me and I don't understand why. I create the DLL and I have no error when I register it. I have also tried directly w...
Matching and merging text files programmatically Question: I would like to merge an EDL (edit decision list) text file with another text file that contains subtitles. The EDL is generated from a video editing program, Final Cut Pro, while the text file is just regular text. While this particular request is for a specif...
How to enable the use of the gui resources on mac Question: I am having a problem with tkinter.ttk on mac. I am using macports and python3.1. When I try to use tkinter.ttk I get very old looking gui elements. eg: I get this ![enter image description here](http://i.stack.imgur.com/Cexre.png) Instead of this: ![en...
How to move old libraries of previous version python to new version of python Question: I am using Ubuntu. I install newer version of python. But all my installed libraries such as imdbPy, NumPy, Cython etc. can run in previous version of python whose version number is 2.6.6. When I import Cython in 2.6.6, tt works, b...
Install tkinter for Python Question: I am trying to import Tkinter. However, I get an error stating that Tkinter has not been installed: > ImportError: No module named _tkinter, please install the python-tk package I could probably install it using synaptic manager (can I?), however, I would have to install it on eve...
Importing a script into another script Question: I am trying to import this file <http://pastebin.com/bEss4J6Q> Into this file def MainLoop(self): #MainLoop is used to make the commands executable ie !google !say etc; try: while True: ...
PyQt4 - "See the log file for details" error Question: I have made an application using Python and recently i found that i can use py2exe to make executables for windows. The problem is that a library i am using (xmpppy) produces this error > DeprecationWarning: the md5 module is deprecated; use hashlib instead and ...
Pass variable to subprocess call in python Question: I am trying to pass my variables from raw_input to my subprocess command. I am new to python. Any help would he appreciated. #!/usr/bin/python import subprocess print "\nWhat user name" username = str(raw_input('username: ')) ...
Django version in GAE Question: In the Google App Engine [documentation](http://code.google.com/intl/en/appengine/docs/python/tools/libraries.html#Django), it is said that we can use different versions of Django: from google.appengine.dist import use_library use_library('django', '1.1') So do ...
Python CouchDB/httplib - error: [Errno 61] Connection refused Question: Did any one get this error? Please advice! There seems to be some problem with httplib python library. Python 2.7 (r27:82508, Jul 3 2010, 20:17:05) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "copyright", "credits" o...
win32com + Excel + Django + Apache = problem Question: I have some problem with opening Excel document in web application running under Apache(mod_wsgi)/Windows 2008 Server (there is no problem when the application is running on django developer server - one thread). My code: def my_view(request): ...
Tab key not indenting in Python Question: I recently upgraded to python2.7 and noticed that the tab key does not function appropriately in the shell. Instead, it appears to search through the underlying directory (the standard unix behavior). If I change back over to python2.6, it works appropriately. Is there a way t...
subprocess.check_output() doesn't seem to exist (Python 2.6.5) Question: I've been reading the Python documentation about the subprocess module (see [here](http://docs.python.org/library/subprocess.html#subprocess- replacements)) and it talks about a `subprocess.check_output()` command which seems to be exactly what I ...
How to create a setup.py that consumes a tar file Question: Our systems people bundle source up in git and do not support pip. The git repository contains a compressed tar file. And the tar file has a setup.py within it. I figure the easiest way to expose this in my project is to add a `-e git...` line to my pip requir...
SSL wrap socket: AttributeError: 'module' object has no attribute 'wrap_socket' Question: I'm creating a very simple example on OSX with python 2.6 but I keep getting: Traceback (most recent call last): File "ssl.py", line 1, in <module> import socket, ssl File "/Users/Dennis/ssl.py",...
Python Algorithm- For the game "Ghost"- need a way to intelligently look up all 'winning' permutation of letters Question: I'm writing a computer program to play the word game ["Ghost."](http://en.wikipedia.org/wiki/Ghost_%28game%29) Here's how the current programs works: \--User selects a letter (right now it only w...
Reading first line of an uploaded text file in python/django Question: I am trying to process text files in a django app. Before I try to import the data, I need to evaluate the first line to determine the file type. i tried file[0], but of course that doesn't work. that did give me an error saying its a "'InMemoryUpl...
Python search list of objects that contain objects, partial matches Question: I'm trying to build a simple search engine for a small website. My initial thought is to avoid using larger packages such as Solr, Haystack, etc. because of the simplistic nature of my search needs. My hope is that with some guidance I can m...
Is Rails much better for interactive website compare to Django? Question: Just got a new website project for my company internal use. The whole website isn't that complicating but requires quite a lot of real time interaction. Basically, it's an interactive time line table where we can freely drag and drop each element...
Matplotlib not displaying figures Question: This must be a really basic question: I am trying to use Matplotlib. Here's the basic example from the [documentation](http://matplotlib.sourceforge.net/api/pyplot_api.html). import numpy as np import matplotlib.pyplot as plt x = np.arange(0,5,0.1) ...
Does Python have a built in function for string natural sort? Question: Using Python 3.x, I have a list of strings for which I would like to perform a natural alphabetical sort. **Natural sort:** The order by which files in Windows are sorted. For instance, the following list is naturally sorted (what I want): ...
Django: How to make an unique, blank models.CharField? Question: Imagine that I have a model that describes the printers that an office has. They could be ready to work or not (maybe in the storage area or it has been bought but not still in th office ...). The model must have a field that represents the phisicaly loca...
Python APNs does not process request Question: I'm trying to implement a server side script for sending push notifications to apple push notification server. I create the ssl connection, I send the payload - but am unable to get a response from the APNs. Here is my code: import socket, ssl, pprint, struc...
Python: PyQt Popup Window Question: So I've been creating my GUI with Qt for my Python application. I've now come to a situation where after a button has been pushed the appropriate deferred gets executed, we perform some tasks then I need to open up a separate window that contains one or two things. But I can't seem t...
Eclipse environment for Maya's python modules Question: I'm trying to set up the Eclipse IDE to recognize the **maya.cmds** module, an all modules associated with the **maya** module. The following code are tests run in Eclipse, and Maya's script editor. import maya print 'maya:\n', dir(maya) ...
can python function smart enough to show it's capability? Question: I want to define a function cluster can be chained and invoked in-a-go with the initial parameter given then get the final result, I want it may acting as Linux command pipe chain: test01() | test02() | test03() | te...
run as administrator problem with py2exe Question: I am having this problem that we compiled our python project into an exe with py2exe and the resulting exe does not work unless it is executed as an administrator. I wanted to ask that is this supposed to happen ?? As in there are so many applications that we can run ...
Free image analysis libraries? Question: I'm looking for some Free (preferably LGPL'd) image analysis/comparison libraries. The most important thing they should be able to do, is compare two different images and say if they're similar, with adjustable sensibility (i.e the higher the sensibility the more they have to lo...
Laying out MVC classes in Python Question: I'm working on a project in Python, and I'm trying to follow a somewhat-strict MVC pattern for practice. My idea was to separate things out into packages named `model`, `view` and `controller`, plus have a `Model`, `View` and `Controller` class for each. Each package would hav...
Handling of ConnectionLost exception in twisted Question: I can not handle a ConnectionLost exception. Brief example of what I have. First of all iIset up connection to jabber server and ping it. I use wokkel library for that. Then I add errback to the method that is sending ping. In the errback I handle the Connection...
Python: Downloading files from HTTP server Question: I have written some python scripts to download images off an HTTP website, but because I'm using urllib2, it closes the existing connection and then opens another before opening another. I don't really understand networking all that much, but this probably slows thin...
Python Regex Help Question: I am trying to sort through HTML tags and I can't seem to get it right. What I have done so far import urllib import re s = raw_input('Enter URL: ') f = urllib.urlopen(s) s = f.read() f.close r = re.compile('<TAG\b[^>]*>(.*?)</TAG>',) resul...
Django/python date aggregation by month and quarter Question: I'm writing a feature that requires the average price of an item over different times (week, month, quarter etc.) Here's the model: class ItemPrice(models.Model): item = models.ForeignKey(Item) date = models.DateField() ...
Use python to connect to a php page and upload image Question: I would like to know if its possible to use python to connect to a certain site (EX: <http://www.example.com/python> ) and upload an image from the computer. Basically I have a python script that takes images from the webcam. Now after it takes the image ...
How do I import a third party module in Python? Question: I've found a third party module which I would like to use. How do I technically import that module? Particularly, I want to use a module called [context_manager](https://github.com/cool-RR/GarlicSim-for- Python-3.x/blob/master/garlicsim_py3/garlicsim/general_mi...
Passing Command line argument to Python program using IDLE? Question: I have downloaded a python file xxxxxx.py that is supposed to run on the command line by typing: `python xxxxxx.py filename1 filename2` and that should take these two files as arguments. I was wondering if there is a way I can use IDLE to pass in th...
Python method or class to compare two video files? Question: I'm trying to write a program to compare files and show the duplicates in python. Anyone know any good functions or methods related to this? I am sorta lost... Answer: If you're just looking for exact duplicates, do an [MD5 hash](http://docs.python.org/libr...
Using python win32com can't make two separate tables in MS Word 2007 Question: I am trying to create multiple tables in a new Microsoft Word document using Python. I can create the first table okay. But I think I have the COM Range object configured wrong. It is not pointing to the end. The first table is put before "H...
What's the difference between database object and cursor object in pysqlite2? Question: In Python one may interact with an sqlite database using the `pysqlite2` class. `from pysqlite2 import dbapi2 as sqlite` One way to send commands to the database is through the database object: db = sqlite.connect('...
I need to generate urlencoded string in Python that is valid for PHP parser Question: I need to generate same output in Python as I have in PHP, possible? **Php code:** <?php $items = array( array( 'item_key_a' => 'item_value_a') ); $payload = array( 'i_key' =...
Summing up digits ! Question: Hi I have been trying out this [problem](http://mathalon.in/?page=show_problem.php&pid=133): > Suppose P(n) is sum of digits of 2^n > For example: > As 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26,so > P(15)=26. > Catulate sum of the P(n) for n=1 to 10000. He...
How to use Python/CGI for file uploading Question: I'm trying to make a file uploader page that will prompt the user for a file and will upload while displaying progress. At the moment I've managed to make a simple HTML page that can calls my python script. The python script will then get the file and upload in 1000 b...
Make in-memory copy of a zip by iterrating over each file of the input Question: Python, as far as know, does not allow modification of an archived file. That is why I want to: 1. Unpack the zip in memory (zip_in). 2. Go over each file in the zip_in, and change it if needed, then copy it to zip_out. For now I'm ha...
Calculating EuropeanOptionImpliedVolatility in quantlib-python Question: I have R code that uses RQuantlib library. In order to run it from python I am using RPy2. I know python has its own bindings for quantlib (quantlib-python). I'd like to switch from R to python completely. Please let me know how I can run the fol...
FileField() Error when trying to upload file using GAE and Django Question: Hello Stack Overflow community!! I am attempting to upload a file to GAE and I'm using Django. When I run the following code it returns this error: Tried upload in module pathway.app.views. Error was: 'module' object has no...
Uploading files from a Cyrillic path using pycurl Question: I've recently designed an upload dialog backed by PyCURL which I'm using in a few of my applications. I have run into an issue when setting pycurl's HTTPPOST option. I am setting it like so: self.curl.setopt(self.curl.HTTPPOST, [(field, (self.curl.FORM_FIL...
Find all list permutations of a string in Python Question: I have a string of letters that I'd like to split into all possible combinations (the order of letters must be remain fixed), so that: s = 'monkey' becomes: combinations = [['m', 'onkey'], ['mo', 'nkey'], ['m', 'o', 'nkey'] ....
Python: Converting GIF frames to PNG Question: I'm very new to python, trying to use it to split the frames of a GIF into PNG images. # Using this GIF: http://www.videogamesprites.net/FinalFantasy1/Party/Before/Fighter-Front.gif from PIL import Image im = Image.open('Fighter-Front.gif')...
How do I get the python package "gtk"? Question: I can't import it right now, but my library imports it. I don't want the full Windows gtk thing. I just want the package that can be imported by this script: <http://www.koders.com/python/fid798D591F71AC2C5F462B7BFFF0D84E1EA8D5759F.aspx?s=timer> Answer: Go to the [PyG...
Python CSV search for specific values after reading into dictionary Question: I need a little help reading specific values into a dictionary using Python. I have a csv file with User numbers. So user 1,2,3... each user is within a specific department 1,2,3... and each department is in a specific building 1,2,3... So I ...
Determining if a given Python module is a built-in module Question: I am doing some parsing and introspection of various modules, but I don't want to parse built-in modules. Now, there is no special type for built-in modules like there is a `types.BuiltinFunctionType`, so how do I do this? >>> import Cor...
Problem with Python server and Ajax on Firefox Question: I have a simple Python server, import BaseHTTPServer import SimpleHTTPServer PORT = 8080 class TestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): self.wfile.write("ok") def s...
Why won't my python code run properly? Question: My python code is the following but it won't work. import random secret = random.randint (1, 99) guess = 0 tries = 0 print "AHOY! I'm the Dread Pirate Oliver and I have a secret!" print "I will tell you where my treasure is bu...
Loading a pickled list just once - Django\Python Question: I have a pickle file that contains a list of compiled regexes and other data. It takes about 1-1.5 seconds to load. **What could a good way of using this list into my views, but have pickle work on the file just once?** ## Edit: would importing into setting...
Get, or calculate the entropy of an image with Ruby and imagemagick Question: How to find the "entropy" with imagemagick, preferably mini_magic, in Ruby? I need this as part of a larger project, _finding "interestingness" in an image so to crop it_. I found a good [example in Python/Django](http://stackoverflow.com/qu...
Trouble parsing HTML using BeautifulSoup Question: I'm trying to use BeautifulSoup to parse some HTML in Python. Specifically, I'm trying to create two arrays of soup objects: one for the dates of postings on a website, and one for the postings themselves. However, when I use findAll on the div class that matches the p...
Problem bulk loading a csv file in Mysql using Python Question: I am loading a file called 'rec.csv' to my Mysql DB. I use the code below: import MySQLdb,os path='testData' absPath = os.path.abspath(path) print absPath conn = MySQLdb.connect(host='localhost', ...
Is there somewhere an index of Py3k-only libraries? Question: I'm curious if there are important libraries that support only Python 3, since it appears that many libraries that do support it, also happen to support Python 2. Answer: No, there is no such index, but you could create one from the classifier data on PyPI...
PyXML on Ubuntu Question: I just completed a fresh install of Ubuntu 10.10 and I'm trying to run some scripts that use xml and xpath. I get an error from inside PyXML. I think this is an install error. To get this installed I did the following: prompt> sudo apt-get install python2.6-dev # The next lin...
Changing Date format in MySql Question: I have a large Csv file that I wanna bulk-load it to my table. A column of this csv file keeps the dates but in the DD-MM-YYYY format. When I am loading this file to my table, it does not accept it, since MySQL DATE format only accepts YYYY-MM-DD. Is there any way I could change ...
understanding OptionParser Question: I was trying out `optparse` and this is my initial script. #!/usr/bin/env python import os, sys from optparse import OptionParser parser = OptionParser() usage = "usage: %prog [options] arg1 arg2" parser.add_option("-d", "--dir", typ...
Python "global name 'x' is not defined" Question: from dionaea.core import ihandler, incident, g_dionaea from dionaea.util import md5file, sha512file from dionaea import pyev import logging import json import uuid logger = logging.getLogger('submit_http') logger.setLevel(loggi...
How to get the size of a string in Python? Question: For example, I get a string: str = "please answer my question" I want to write it to a file. But I need to know the size of the string before writing the string to the file. What function can I use to calculate the size of the string? Answer: ...
Django - python manage.py send_mail - Unknown command: 'send_mail' Question: jafte@11156:~/django/sp$ python manage.py shell Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (Interac...
Virtualenv issue with flask-werkzeug Question: I have installed virtualenv along with flask, werkzeug, jinja2 and SQLAlchemy. I was following the tutorial mentioned on the flask website and i came across the below error when executing flask code Traceback (most recent call last): File "hello.py", ...
processing an image using CUDA implementation, python (pycuda) or C++? Question: I am in a project to process an image using CUDA. The project is simply an addition or subtraction of the image. May I ask your professional opinion, which is best and what would be the advantages and disadvantages of those two? I apprec...
escaping characters in a xml file with python Question: I need to escape special characters in an ugly XML file (5000 lines or so long). Here's an example of XML I have to deal with: <root> <element> <name>name & surname</name> <mail>name@name.org</mail> </element> </root> ...
Python's os.path libraries equivalent in C# Question: Let's say I have a binary in C# code ae /a/b/c/xyz.exe and it expects the /a/b/c/hello.txt in the same directory. How can I get the /a/b/c/hello.txt in full path? In python, I can get the running program's path with `os.path.abspath(sys.argv[0])`, and I can get the...
pylint balks on reference to __package__ Question: I'm using `__package__` in setup.py to refer to the top-level name of the package it's supposed to test, build, install, etc.. However, pylint objects: Module 'mian.mian' has no '__package__' member This works fine in `ipython`: from...
python and django: execute python script from django web form? Question: I have fully functional python program which I run from shell. All arguments and options are supplied using option parser. What I would like to do is to create simple web interface for this program using django. I am stacked on transferring value...
What can you do with Lisp macros that you can't do with first-class functions? Question: I think I understand Lisp macros and their role in the compilation phase. But in Python, you can pass a function into another function def f(filename, g): try: fh = ope...
Django model field max_length 3x varchar size? Question: I just realized that with a legacy table I'm using in a django app that a varchar(5) field (for example) is rendered in python as a models.CharField(max_length=15) field. This 3x size for the max length is very consistent across many other fields. Why? or more i...
Using text in one file to search for match in second file Question: I'm using python 2.6 on linux. I have two text files first.txt has a single string of text on each line. So it looks like lorem ipus asfd The second file doesn't quite have the same format. it would look more like this 1231 lorem 1311 assss 3...
virtualenv --no-site-packages is not working for me Question: virtualenv --no-site-packages v1 cd v1\Scripts activate.bat python -c "import django" # - no problem here Why does it see the Django package??? It should give me an import error, right? Answer: Just unset `PYTHONPATH` ...
Generate a list of file names based on month and year arithmetic Question: How can I list the numbers `01` to `12` (one for each of the 12 months) in such a way so that the current month always comes last where the oldest one is first. In other words, if the number is grater than the current month, it's from the previo...
python, numpy boolean array: negation in where statement Question: with: import numpy as np array = get_array() I need to do the following thing: for i in range(len(array)): if random.uniform(0, 1) < prob: array[i] = not array[i] with array being a numpy...
Does Jython support Tkinter Question: Does Jython support Tkinter ? If I code a program in Python and put a GUI front end on it with Tkinter, how hard would it be to do the same program in Jython? Or is there a better solution for Jython GUI's? When i try java -jar "jarname" It is showing error as : import Tkinter, tk...
python unzip -- tremendously slow? Question: Can somebody please explain the following mystery? I created a binary file of size ~37[MB]. zipping it in Ubuntu -- using the terminal -- took less than 1[sec]. I then tried python: zipping it programatically (using the zipfile module) took also about 1[sec]. I then tried ...
How to import Tkinter for distributed Jython jar formed from Python code Question: I have tried the steps mentioned at <http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts> and formed myapp.jar from my python code and my main.py script uses Tkinter for GUI...but when i try to run it : java -jar myapp.jar...
OpenStreetMap generate georeferenced image Question: I'm new to Openstreetmap and mapnick, I'm trying to export map image which will be geo-referenced (So it can be used in other applications) I've installed osm and mapnik inside ubuntu virtual machine I've tried using generate_image.py script, but generated image i...
Use IronPython to access COM object in a browser? Question: I am trying to use a COM object by IronPython in a browser. I have tried the following code in ipy.exe and it works fine: from System import Type, Activator Activator.CreateInstance(Type.GetTypeFromProgID("Word.Application")) But if I ...
python feedparser Question: How would you parse xml data as follows with python feedparser <Book_API> <Contributor_List> <Display_Name>Jason</Display_Name> </Contributor_List> <Contributor_List> <Display_Name>John Smith</Display_Name> </Contributor_List> </Book_API> Ans...
constants in Python: at the root of the module or in a namespace inside the module? Question: I'm building a Python module with about a hundred constants. I would like to avoid naming issues when people import my module so I was wondering what would be the best way to do it. MY_CONSTANT = 1 MY_SECON...
Submit without the use of a submit button, Mechanize Question: So, I started out with Mechanize, and apparently the first thing I try it on is a monkey-rhino-level high JavaScript navigated site. Now the thing I'm stuck on is submitting the form. Normally I'd do a submit using the Mechanize built-in submit() function...
Python Parameter pass to prevent sql injection. Why is this giving an error? Question: from django.db import connection, transaction def pk_dt_catalog(p_CAT_ID,p_COMMONS_ID): c1 = connection.cursor() sql = "SELECT COMMONS_ID, CAT_ID, CAT_NAME FROM DT_CATALOG" ...
Mocking out methods on any instance of a python class Question: I want to mock out methods on any instance of some class in the production code in order to facilitate testing. Is there any library in Python which could facilitate this? Basically, I want to do the following, but in Python (the following code is Ruby, u...
python click event scope issue in pygame Question: I've created a GameObject class, using the python pygame library, which draws a rectangle on the screen. I would like to integrate an event handler which would allow me to draw the rectangle around, however the click events for the GameObject are not registering. Here ...
Calculating pi in Python using geometry Question: I'm posting this code with the hope that this community will be willing to assist me in ironing out some bugs I can't seem to be able to tackle. It's quite short, is intended to guess pi, and is not intended to replace already efficiently working approaches. This is not...
Python logging in interactive sessions Question: I am trying to implement logging in my Python 2.7 applications and have found it very useful. However, I have noticed that when running Python interactively each logging message prints multiple times. The number of times the message is printed is the same as the number o...
Is there an exact replacement for the old functional.curry? Question: I am trying to run this snippet from <http://www.ibm.com/developerworks/linux/library/l-prog3.html> on a python 2.6 runtime. from functional import * taxcalc = lambda income,rate,deduct: (income-(deduct))*rate taxCurr...
problem implementing get_filename() method for GtkFileChooser Button in glade and python? Question: As a newbee I am trying to create a basic theme installer using Glade and python. Everything is working fine but i am not able to find anywhere how to use get_filename() method for gtkFileChooserButton. My Glade File Loo...
Combining multiple csv files together and also adding a column during concatenation Question: I have a set of files I am trying to import into mySql. Each csv file looks like this: Header1;Header2;Header3;Header4;Header5 Data1;Data2;Data3;Data4;Data5; Data1;Data2;Data3;Data4;Data5; Data1;Dat...