First  |  Prev |  Next  |  Last
Pages: 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
Issue with PyUnicodeObject type variables
gmail, 17.05.2010 11:24: A variable whose data type is PyUnicodeObject checked whether it is a UnicodeObject type. Got output as false example : PyUnicodeObject *p; if (PyUnicode_Check(path)) { printf("\nTrue.\n"); } else { printf("\nfalse.\n"); } output: f... 17 May 2010 06:56
reading XML file using python
Hi , i am new to python.i want to read the XML file using python it ,by using DOm or SAX any of them. I want to read the http://www.google.com(any hyper text) from XML and print that. please give me the sample program for this. regards Shanti Bhushan Bangalore,India ... 17 May 2010 19:06
tone generation for motherboard and sound card speakers?
Hi all, I am wondering if there is a way to generate a tone for the motherboard speaker, like the call to Beep() in C++? Also, is there a module to generate tones in Python using the sound card? A module that can beep at a given frequency for a given time using the usual sine wave is okay, but the fancier the be... 17 May 2010 04:47
global variables in imported modules
Taken from www.python.org, FAQ 2.3 How do I share global variables across modules? config.py: x = 0 # Default value of the 'x' configuration setting mod.py: import config config.x = 1 main.py: import config # try removing it import mod print config.x The example, such as shown in th... 16 May 2010 20:07
Qt and progressBar - how to update
I am quite new to Python and Qt and need very urgently advice on how to update Qt progressBar while executing a process. I have went thrugh number of 'google' stuff and saw different solution, hence none worked for me. The best idea I have seen is the usage of QThread and emiting signal from thread to MainWindow. I... 16 May 2010 15:43
Global variables for python applications
On Mon, May 17, 2010 at 3:50 AM, AON LAZIO <aonlazio(a)gmail.com> wrote: Hi,    How can I set up global variables for the entire python applications? Like I can call and set this variables in any .py files.    Think of it as a global variable in a single .py file but this is for the entire application.... 20 May 2010 14:59
Updating values in a dictionary
Greetings I am having a darn awful time trying to update a matrix: row = dict([(x,0) for x in range(3)]) matrix = dict([(x,row) for x in range(-3,4,1)]) matrix[2][1] += 1 matrix[-1][2] += 1 """ Got: a 1 in all col 1 and 2 {-3: {0: 0, 1: 1, 2: 1}, -2: {0: 0, 1: 1, 2: 1}, -1: {0: 0, 1: 1, 2: 1}, 0:... 17 May 2010 03:43
Using site-packages with alt-installed Python version
I am testing an application GUI with Python 2.4, 2.5 and 2.6. The native Python (in Fedora 12) is 2.6. Versions 2.4 and 2.5 are alt-installed. Aplication GUI uses: import pygtk pygtk.require('2.0') import gtk import gobject I go to: $ cd /usr/local/lib/python2.4/site-packages and say: $ sudo ln -s /usr... 16 May 2010 14:38
Setup global variables settings for the entire applications
On Fri, May 14, 2010 at 7:32 AM, AON LAZIO <aonlazio(a)gmail.com> wrote: Hi,    Say I have an application which requires a global settings for the user. When the user finishes setting those global variables for the app. Any class can use that variables (which are the same for all), something like that. W... 16 May 2010 04:52
[ANN] Oktest 0.3.0 released - a new style testing library
Hi, I released Oktest 0.3.0. http://packages.python.org/Oktest/ http://pypi.python.org/pypi/Oktest/ Overview -------- Oktest is a new-style testing library for Python. :: from oktest import ok ok (x) > 0 # same as assert_(x > 0) ok (s) == 'foo' # same as assert... 16 May 2010 03:47
First  |  Prev |  Next  |  Last
Pages: 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126