Keeping Your Publicly Released Programs...


Keeping Your Publicly Released Programs Automatically Updated

Program: This will be run with Python once an update has or hasn't occured.

Web Directory: The Update Instructions and Contents are here.

Version Data: Contains a number with the current version number, in the same folder as the program and this file.

Update Instuctions: Contains a number which if higer then the version number, will process all the listed files underneath to current working directory.

Version Data:
(Toggle Plain Text) 1 1
Posted On: Friday 28th of December 2012 05:26:09 AM Total Views:  195
View Complete with Replies

RELATED TOPICS OF Python Programming PROGRAMMING LANGUAGE




Registering a python function in C

Could someone post an example on how to register a python function as a callback in a C function It expects a pointer to PyObject... how do I expose that Basically, the signature of the function is foo(PyObject* obj), where obj is the callback function... It's not exactly extending or embedding, I've looked at those examples but they don't really show how to do this...
VIEWS ON THIS POST

104

Posted on:

Monday 5th November 2012
View Replies!

Using Regular Expresions to change .htm to .php in files

I have a bunch of files that have changed from standard htm files to php files but all the links inside the site are now broken because they point to the .htm files while they are now .php files. Does anyone have an idea about how to do a simple script that changes each .htm in a given file to a .php
VIEWS ON THIS POST

89

Posted on:

Monday 5th November 2012
View Replies!

Eval and raw string ??

Eval() doesn't seem to recognize the r'string' format. Is there a way around this. Example: If I input: ---------> eval("r'C:\tklll\ndfd\bll'") I get the output: Traceback (most recent call last): File "", line 1, in eval("r'C:\tklll\ndfd\bll'") File "", line 1 r'C: klll ^ SyntaxError: EOL while scanning single-quoted string The same principle applies for exec.
VIEWS ON THIS POST

48

Posted on:

Monday 5th November 2012
View Replies!

Using a web service [newbie]

I am working with Python 2.5 and would like to use of a web service. What shall I install on my setup (or import in my Python script) I read about Zolera Soap Infrastructure, which seems to be the preferred Python web service framework (http:// pywebsvcs.sourceforge.net/). However, its documentation seems quite old (c. 2001/2002) whilst the Babel Fish translation example (http:// livedocs.adobe.com/coldfusion/6.1/htmldocs/webserv3.htm) did not work for me. Are there any more recent frameworks or tools for using web services by Python scripts Thank you.
VIEWS ON THIS POST

81

Posted on:

Monday 5th November 2012
View Replies!

Third PyConBrasil takes place in August 2007

We are glad to announce the Third PyConBrasil organised by the Brazilian Python Community. The event will take place from 2007-08-30 to 2007-09-01 at Joinville city in Santa Catarina State (SC) in the Brazil's south region. The event home page is http://pyconbrasil.com.br/ We apologize but the site's content is only available in Brazilian Portuguese Language (pt-br) for the time being. The call for speeches is open until 2007-06-30. I'd like to thank the python developers and the python community in general for outstanding tools, culture and community. best regards, Rod Senra III PyConBrasil http://pyconbrasil.com.br pycon@pythonbrasil.com.br
VIEWS ON THIS POST

92

Posted on:

Monday 5th November 2012
View Replies!

Fredericksburg ZPUG February 15: ZODB Blob support,Zope 3 C2 certification, Twisted book review

Please join us February 15, 7:30-9:00 PM, for the eighth meeting of the Fredericksburg, VA Zope and Python User Group ("ZPUG"). Topics are ZODB Blob support, Zope 3 C2 certification, and a Twisted book review. This meeting is moved from the usual date (second Wednesday) to accommodate the visit of Christian Theune, an active member of the Zope community who will be visiting from Europe. More detail on topics: * Christian Theune is leading an effort to get Zope 3 Common Criteria certified. The Common Criteria is an international security evaluation program for software, based on US, Canadian, and European standards (more information at the bottom of this email). Christian will talk about this process and ask for feedback and ideas about the C2 certification of Zope 3. * Christian is also working with one of our ZPUG attendees, Chris McDonough, to add blob support to the Zope Object Database (ZODB), which essentially makes working with large blobs in the ZODB more efficient. He will talk about progress and approach for this effort. * Benji York will review the O'Reilly book about the Twisted network programming framework, with Zac Bir and Gary Poster chiming in occasionally. * We will serve delicious food and soft drinks. Next meeting, March 8, will have Brian Lloyd talk about IronPython (a Microsoft-sponsored implementation of Python on .Net); and Gary Poster talk about zasync 2, an in-development tool based on Twisted and Zope 3; and possibly other topics. The following meeting, April 12, will have Zac Bir talk about a Twisted-based application on Mac OS X; and other topics. We've had a nice group for all the meetings. Please come and bring friends! General ZPUG information When: second Wednesday of every month, 7:30-9:00. Where: Zope Corporation offices. 513 Prince Edward Street; Fredericksburg, VA 22408 (tinyurl for map is http://tinyurl.com/duoab). Parking: Zope Corporation parking lot; entrance on Prince Edward Street. Topics: As deed (and offered) by participants, within the constraints of having to do with Python or Zope. Contact: Gary Poster (gary@zope.com)
VIEWS ON THIS POST

60

Posted on:

Monday 5th November 2012
View Replies!

How to get PyTypeObject from PyObject?

I want to check the type of an object, right now I am doing strcmp( object->ob_type->tp_name, "MyClass") Which seems slow, is there a way I can find the pointer to the global PyTypeObject for MyClass, and then just call PyObject_TypeCheck
VIEWS ON THIS POST

37

Posted on:

Wednesday 7th November 2012
View Replies!

Testing out NewsProxy

Please excuse this post, but I am seeing if NewsProxy actually filters out Google Groups or not.
VIEWS ON THIS POST

38

Posted on:

Wednesday 7th November 2012
View Replies!

PyOpenGL + wxPython developer needed

I am working on a map editor for BZFlag (http://www.bzflag.org/), and I need help. Mostly, all I need help on is 3D rendering. I know nothing about OpenGL, so if you do, your help would be appreciated. The program I am making is called RatBZEdit (http://ratbzedit.sourceforge.net/). If you are interested, please contact me and I will probably add you to the project. --Ratfink
VIEWS ON THIS POST

172

Posted on:

Wednesday 7th November 2012
View Replies!

Re: [Tkinter-discuss] WxPython -> Tkinter

On 10/29/08, Olrik Lenstra wrote: > , > > A while ago I joined the Tutor mailing list, and they helped me out with a > question regarding wxPython. > Now however, I have tried a program in Tkinter and I would like to see if > there is a similar command to "wx.SafeYield(self, True)". It will be a combination of commands, not a single one. Initially I considered this as "probably without solution", since tcl acquired a yield command just in the 8.6a3 release, but then I looked at wx.SafeYield code and apparently it is possible to replicate it. Here is an initial cut, it is very possible to contain something not equivalent to wx.SafeYield (besides it could be improved): import ttk inside_tkyield = False disabled_wins = {} def safe_yield(window, only_if_needed=False): window_disabler(window) try: return tk_yield(window, only_if_needed) finally: for widget, flags in disabled_wins.iteritems(): ttk.Widget.state(widget, flags) disabled_wins.clear() def window_disabler(window): widgets = window.children.values() widgets.append(window) for widget in widgets: if widget.instate(['!disabled']): prev_flags = widget.state(['disabled']) disabled_wins[widget] = prev_flags def tk_yield(window, only_if_needed=False): # wx implements this differently based on the backend it is using global inside_tkyield if inside_tkyield: if not only_if_needed: raise RuntimeError("safe_yield called recursively") return False inside_tkyield = True; window.update() window.update_idletasks() inside_tkyield = False; return True Note that this depends on ttk widgets (http://pypi.python.org/pypi/pyttk) since it uses widget.state to disable and reenable the widgets. On windows the "wm" command supports disabling the entire window, so it is easier if you can use it. > Below is a copy of the message to the tutor list. > > > Dear Mailing list, > > > > a while ago a few of you helped me solve an issue I had with a GUI / scan > > program that I made. > > The problem was that when I tried to move the frame it would hang until > the > > scan was finished. > > To solve this I had to add "wx.SafeYield(self, True)" to the scan and the > > GUI wouldn't hang any more. > > Now I have redone the program and have written it with Tkinter instead of > > WxPython. > > > > So is there a similar command for Tkinter as there is for WxPython > > > >
VIEWS ON THIS POST

22

Posted on:

Wednesday 7th November 2012
View Replies!

Is try-except slow?

or why does this take so god damn long time and if I run into an IndexError it break out of the inner loop right so having range up to 10000000 or 1000 wouldn't matter if biggest working x is 800 def getPixels(fileName): im = PIL.Image.open(fileName) colors = [] for y in range(1, 1000): row = [] for x in range(1, 1000): try: color = im.getpixel((x,y)) row.append(color) except IndexError: break colors.append(row) return numpy.array(colors)
VIEWS ON THIS POST

37

Posted on:

Wednesday 7th November 2012
View Replies!

tkinter: Round Button - Any idea?

, I'm trying to implement a virtual instrument, which has buttons and displays, using Tkinter+Pmw. One of items on the virtual instrument is a round button. This is imitating a tact switch. Tkinter has a Button class, which I can assign a button image. However, when the button is depressed, the rectangle is sunken (rather than the round button). Probably I need to prepare two images, normal one and depressed one, and implement all button behaviours by myself. But before reinventing everything by myself, I'm wondering if there is an easy way to implement or there is existing widget example of such button. So far, I couldn't find any good examples. Any suggestions are highly appreciated. Best regards, Aki Niimura
VIEWS ON THIS POST

88

Posted on:

Wednesday 7th November 2012
View Replies!

Resolver One 1.2

We are proud to announce the release of Resolver One, version 1.2 - the largest IronPython application in the world, we think, at 38,000 lines of production code backed up by 150,000 lines of unit and functional tests. Resolver One is a Rapid Application Development tool for ****ysing and presenting business data, using a familiar spreadsheet interface combined with a powerful IronPython-based scripting capability that allows you to insert your own code directly into the recalculation loop. For version 1.2, we have on big headline feature; a new function called RunWorkbook that allows you to "call" one spreadsheet from another, passing in parameters and pulling out results - just like functions, but without having to code the function by hand. This allows you to mix spreadsheet-based and code-based logic, using the best paradigm for the job in hand. We've also added a whole bunch of usability enhancements - the full (long!) changelist is up on our website, or you can see a screencast: It's free for non-commercial use, so if you would like to take a look, you can download it from our website: (registration no longer required). Best regards, Giles -- Giles Thomas MD & CTO, Resolver Systems Ltd. giles.thomas@resolversystems.com +44 (0) 20 7253 6372 Try out Resolver One! 17a Clerkenwell Road, London EC1M 5RD, UK VAT No.: GB 893 5643 79 Registered in England and Wales as company number 5467329. Registered address: 843 Finchley Road, London NW11 8NA, UK
VIEWS ON THIS POST

56

Posted on:

Wednesday 7th November 2012
View Replies!

Create a short way to save typing script over and over....

I have a statement "url = 'http://xyzserver/'" so in my code every time I need to use xyzserver I state "url +...." What I' m now trying to do is create a call to a login process. The script for the login process is below. I'd like to call "adminlogin" and not have to keep entering the same several lines of script each and everytime (I'm testing various login functions and rule changes.) I'm a newbie, can someone walk me through this THNX #Login to ISeDeposit Admin ie.navigate (url + 'isweb/admin/default.aspx') ie.textBoxSet ('AdminLogin1:Username','Admin') ie.textBoxSet ('AdminLogin1:inputPassword','Password') ie.buttonClick ('AdminLogin1:btnLogin')
VIEWS ON THIS POST

79

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Checking a file's time stamp.

os.paht.gmtime(path) returns the last modification of path. check out http://docs.python.org/lib/module-os.path.html regards Edwin -----Original Message----- From: python-list-bounces+edwin.madari=verizonwireless.com@python.org [mailtoython-list-bounces+edwin.madari=verizonwireless.com@python.org]On Behalf Of William Purcell Sent: Tuesday, August 12, 2008 1:47 PM To: Python List Subject: Checking a file's time stamp. Hi all, I am wanting to check to see the last time a file was edited. For example, I have a directory containing two text files, file1.txt and file2.txt. I want to be able to process these files but only if they have been edited since the last time they were processed. I think that I want to be able to check the time stamp of each file. Can anyone tell me how to do that or pointme in a better direction of checking the last time a file was edited
VIEWS ON THIS POST

53

Posted on:

Wednesday 7th November 2012
View Replies!

Find Sofas

Huge Selections at Great Prices The Convenience of OneCart! http://good-furniture-care.page.tl/
VIEWS ON THIS POST

15

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Web Server

James Tanis wrote: >> there's also apache, of course, and a bunch of others, including several >> Python solutions (more or less pre-packaged). but the "open up" part >> still sounds a bit risky. maybe you could turn things around, and let >> the application "push" data to your server instead > > Either way requires an open port, otherwise there's no way to negotiate new > clients. The scenario I had in mind was rather to make his application the client for an external server, instead of using some external client to connect to someone's PC over HTTPS. That wouldn't need an open server port on the client; any Comet-style protocol would work. But at this point, only the OP knows enough about his application to be able to figure out if that's a usable approach.
VIEWS ON THIS POST

21

Posted on:

Wednesday 7th November 2012
View Replies!

Re: 'if name is not None:' v. 'if name:'

On Tue, 2008-07-15 at 14:37 -0400, Victor Noagbodji wrote: > , > > what's the difference between these two statement And which one should one use > Aside: Please include all relevant information in the *body* of your post, not just the subject header. The two statements in question are: if name is not None: and if name: The difference name='' if name is not None: print "name is not None." if name: print "name is." Give it a whirl. Cheers, Cliff
VIEWS ON THIS POST

42

Posted on:

Wednesday 7th November 2012
View Replies!

designer damenbekleidung bestellen lagerverkauf damenbekleidungbestellen damen klamotten bestellen damen hosen bestellen

designer damenbekleidung bestellen lagerverkauf damenbekleidung bestellen damen klamotten bestellen damen hosen bestellen + + + +++ DAMENKLEIDUNG KAUFEN +++ DAMENKLEIDUNG ONLINE BESTELLEN +++ + http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO http://WWW.DAMENKLEIDUNG-KAUFEN-24.INFO + + + +++ MAENNERKLEIDUNG KAUFEN +++ MAENNERKLEIDUNG ONLINE BESTELLEN +++ + http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO + + + + +++ UEBERGROESSEN KAUFEN +++ UEBERGROESSEN ONLINE BESTELLEN +++ + http://WWW.UEBERGROESSEN-KAUFEN-24.INFO http://WWW.UEBERGROESSEN-KAUFEN-24.INFO http://WWW.UEBERGROESSEN-KAUFEN-24.INFO http://WWW.UEBERGROESSEN-KAUFEN-24.INFO http://WWW.UEBERGROESSEN-KAUFEN-24.INFO http://WWW.UEBERGROESSEN-KAUFEN-24.INFO + + + mango damenbekleidung bestellen damenbekleidung bestellen groesse la martina damenbekleidung bestellen www damenbekleidung bestellen billige damenkleidung kaufen opus damenbekleidung bestellen
VIEWS ON THIS POST

66

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Malaysia python user group

Marcus, You should probably contact the Malaysian Public Sector Open Source Competency Centre (OSCC) in Cyberjaya. http://www.oscc.org.my HTH, Tim On Mon, 2008-07-14 at 10:57 +0800, Marcus.CM wrote: > > > I am thinking of promoting Python for the local developers here in > Malaysia, via Universities , seminars etc . > Is there already a user group here in Malaysia Any pointers would help. > > Marcus. > > -- > http://mail.python.org/mailman/listinfo/python-list -- ************************************************************************** Join the OSHIP project. It is the standards based, open source healthcare application platform in Python. Home page: https://launchpad.net/oship/ Wiki: http://www.openehr.org/wiki/display/...loper%27s+page ************************************************************************** -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBIesfG2TFRV0OoZwMRAudEAJ4wuw5aJkwXit/9w4IgwUgXIeycdACgpsYC 5Fz56adSWSTjYHJOJsPqhXY= =Fpv3 -----END PGP SIGNATURE-----
VIEWS ON THIS POST

87

Posted on:

Wednesday 7th November 2012
View Replies!

[jcd@sdf.lonestar.org: Re: Compress a string]

On Sun, May 18, 2008 at 07:06:10PM +0100, Matt Porter wrote regarding Compress a string: > > Hi , > > I'm trying to compress a string. > E.g: > "AAAABBBC" -> "ABC" > > The code I have so far feels like it could be made clearer and more > succinct, but a solution is currently escaping me. > > > def compress_str(str): > new_str = "" > for i, c in enumerate(str): > try: > if c != str[i+1]: > new_str += c > except IndexError: > new_str += c > return new_str > > > Cheers > Matt def compress_str(s): # str is a builtin keyword. Don't overload it. out = [] for c in s: if out and c == out[-1]: out.append(c) # This is faster than new_str += c return ''.join(out)
VIEWS ON THIS POST

62

Posted on:

Wednesday 7th November 2012
View Replies!

waiting on an event blocks all signals

This ignores CTRL-C on every platform I've tested: python -c "import threading; threading.Event().wait()" ^C^C^C^C It looks to me like all signals are masked before entering wait(). Can someone familiar with the internals explain and/or justify this behavior
VIEWS ON THIS POST

39

Posted on:

Wednesday 7th November 2012
View Replies!

simple question about Python list

, suppose I have 2 lists list1 = ['elem0', 'elem1', 'elem2', 'elem3', 'elem4', 'elem5'] and list2 = [0, 2, 4] # integer elements howto (I mean most simple recipe, of course) form list3 that contains elements from list1 with indexes from list2, i.e. list3 = ['elem0', 'elem2', 'elem4'] Thank you in advance, D.
VIEWS ON THIS POST

75

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Welcome to the "Python-list" mailing list

"Ronn Ross" wrote in message news:d1c466d40804070747x34588c19id6f9050bf3cf5411@mail.gmail.com... | This is my first post and I'm new to Python. How would someone go about | adding keywords to Python It would be great to add support for Esperanto | keywords in the language instead of English being the only option. If you want other-language keywords, you should either use a translator processor or an editor that will do keyword substitution. I do not know of such but I would not be surprised if there is one. I suspect this sort of thing will more likely happen with Python 3, which will allow unicode keywords. PS. Subject lines should reflect the subject of the post.
VIEWS ON THIS POST

49

Posted on:

Wednesday 7th November 2012
View Replies!

Re: State of ctypes Support on HP-UX?

Phil Thompson schrieb: > On Thursday 03 April 2008, Thomas Heller wrote: >> Phil Thompson schrieb: >> > Could somebody confirm how well ctypes is supported on HP-UX (for both >> > PA-RISC and Itanium) for both Python v2.4 and v2.5 >> I cannot answer your question, but if you want to try it out >> yourself there is the HP testdrive program: http://www.testdrive.hp.com/ > >
VIEWS ON THIS POST

44

Posted on:

Wednesday 7th November 2012
View Replies!

parsing json output

I have a service running somewhere which gives me JSON data. What I do is this: import urllib,urllib2 import cjson url = 'http://cmsdoc.cern.ch/cms/test/aprom/phedex/dev/gowri/datasvc/ tbedi/requestDetails' params = {'format':'json'} eparams = urllib.urlencode(params) request = urllib2.Request(url,eparams) response = urllib2.urlopen(request) # This request is sent in HTTP POST print response.read() This prints a whole bunch of nonsense as expected. I use cjson and am unable to figure out how to print this json response and I guess if I can do this, parsing should be straightforward doing a cjson.decode(str(repsonse)) does not work. In what form is this data returned and how do I print it and later pass it on to another client browser Typing http://cmsdoc.cern.ch/cms/test/aprom...requestDetails in my browser returns valid json data.
VIEWS ON THIS POST

104

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Problems with wxPython

Hi David, 2008/3/24, David Anderson : > If ther's anyone who knows pretty much about wxPython can e-mail me I'm > having some trouble in dealing with some guis here, I would thank u very > much if you could help me You should subscribe to the wxPython users mailinglist and ask there. It's a very helpful mailinglist. Robin Dunn (wxPython author) is very active in answering questions from wxPython users. See http://www.wxpython.org/maillist.php Cheers, Frank
VIEWS ON THIS POST

34

Posted on:

Wednesday 7th November 2012
View Replies!

urllib2.unquote() vs unicode

I've been hit by a urllib2.unquote() issue. Consider the following unit test: import unittest import urllib2 class UnquoteUnitTest(unittest.TestCase): def setUp(self): self.utxt = u'%C4%99' self.stxt = '%C4%99' def testEq(self): self.assertEqual( self.utxt, self.stxt) def testStrEq(self): self.assertEqual( str(self.utxt), str(self.stxt)) def testUnicodeEq(self): self.assertEqual( unicode(self.utxt), unicode(self.stxt)) def testUnquote(self): self.assertEqual( urllib2.unquote(self.utxt), urllib2.unquote(self.stxt)) def testUnquoteStr(self): self.assertEqual( urllib2.unquote(str(self.utxt)), urllib2.unquote(str(self.stxt))) def testUnquoteUnicode(self): self.assertEqual( urllib2.unquote(unicode(self.utxt)), urllib2.unquote(unicode(self.stxt))) if __name__ == '__main__': unittest.main() The three testEq*() tests positively confirm that the two are equal, they are the same, they are also the same if cast both to str or unicode. Tests with unquote() called with utxt and stxt cast into str or unicode are also successful. However... ....E.. ====================================================================== ERROR: testUnquote (__main__.UnquoteUnitTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "unquote.py", line 28, in testUnquote urllib2.unquote(self.stxt)) File "/usr/lib/python2.4/unittest.py", line 332, in failUnlessEqual if not first == second: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128) ---------------------------------------------------------------------- Ran 6 tests in 0.001s FAILED (errors=1) Why does this test fail while others are successful Any ideas
VIEWS ON THIS POST

59

Posted on:

Wednesday 7th November 2012
View Replies!

Re: PHP Developer highly interested in Python (web development)with some open questions...

Am Sonntag, den 24.02.2008, 13:44 +0100 schrieb Christian Heimes: > > Plone and Archetypes (based on Zope) have a tool named ArchGenXML. It > takes UML XMI files and generates content types, workflows and products > for the Plone CMS. I don't want workflows, I want the classes and methods generated. Or do I understand this answer wrong > Source code encryption can't stop people from reading or stealing your > code. Microsoft tries it, Apple tries it and even the RIAA tries it. > None of them had success in the past. :] > > A proper service contract is more important. Not true! you can disassemble the app and then have fun reading, not that easy. I simply want that nobody reads the "sourcecode" or better said the content of the python files I would have generated. But I think I have found one sollution. I have red that the bytecode compiler from Python is very advanced (more then the PHP bcompiler) to give me good brotection. Still I will have to look a lot for Python libraries which give me the same hardcore feeling like ezComponent (ez.no). I think Python is great! And I will soon dive there in! What is the difference between Ruby and Python Can anyone say that to me
VIEWS ON THIS POST

79

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Tkinter fonts setting

jim-on-linux wrote: > On Tuesday 05 February 2008 15:22, Unnamed > One wrote: > >> First question - is it possible to set >> font to default OS font for window text >> It would be preferable, while on my >> Windows XP system Tkinter sets small >> Helvetica-style font by default. >> >> Secondly, can I set font globally (or >> specify "default" font for widgets) In >> fact, all I want is to get default OS font >> unless (rarely) I need to specify another. >> >>
VIEWS ON THIS POST

51

Posted on:

Wednesday 7th November 2012
View Replies!

Re: where do my python files go in linux?

On 12/01/08 12:02 +0100, Jorgen Bodde wrote: > Hi , > > I am trying to make a debian package. I am following the tutorial by > Horst Jens (http://showmedo.com/videos/videonam...romSeriesID=37) > and it is very informative. However one thing my app has and his > doesn't, is multiple python files which need to be executed. For > example > > {dir}/app > app.py > > app.py calls a lot of modules in {dir}/app. Horst says the python file > goes in /usr/bin/app.py which is ok with me, but I have multiple > python files, and I decided to use an app.sh script to call my python > files. In the /usr/bin I do not see subdirs so I assume that is not > really deable. > > Question 1. Where do I put the bulk of python scripts in a normal > linux environment I would think you'd create a directory /usr/bin/app and then symlink /usr/bin/app.py to /usr/bin/app/app.py. > Question 2. Should I use *.pyc rather then *.py files to speed up > executing as the user cannot write to /usr/bin or any other dir in the > system and everytime my app runs it will recompile it That would make sense. >
VIEWS ON THIS POST

94

Posted on:

Wednesday 7th November 2012
View Replies!

subprocess.Popen(cmd) question

, I'm starting some subprocesses inside a loop. The processes run independent and dont need any communication between each other. Due to memory issues I need to limit the number of running processes to around 10. How can I insert a break into my loop to wait until some processes are finished Some minimal examplecode: import subprocess for i in range(0,100): cmd='ping localhost' p=subprocess.Popen(cmd) p.wait()
VIEWS ON THIS POST

112

Posted on:

Wednesday 7th November 2012
View Replies!

Jython - problem import os

Hi. I'm using Jython in combination with Java, webservices and jboss4.0.4. The webservice is implemented in java and creates an PythonInterpreter object which loads the jython scripts. I wrote an jython script which uses a function from another jython file called library.py. So, i wrote: service.java ======== public void webMethod(){ PythonInterpreter p = new PythonInterpreter() p.execfile(skript.py) } skript.py ====== from library import * test=testFunction() library.py ======= import os def testFunction(): os.getcwd() ....all these files are inside my ear-archive and the service.java represent my webservice class. So, calling WebMethod returns: ImportError: no module named javaos in library.py. Any ideas
VIEWS ON THIS POST

77

Posted on:

Wednesday 7th November 2012
View Replies!

passing vars to py scipts in cron jobs

What's the proper way to call a py script and pass in variables while doing cron jobs I can run the scripts fine from idle, python, etc using raw_input() to prompt users. The scripts have classes with methods that need arguments. Here's an example... I want to run c1.d1(v,v,v) then c2.d2(v,v,v) class c1: # User defined vars def d1(var1, var2, var3): pass class c2: # User defined vars def d2(var1, var2, var3): pass
VIEWS ON THIS POST

100

Posted on:

Wednesday 7th November 2012
View Replies!

Re: Update

http://windowsxpprotips.blogspot.com/ windows xp pro tips http://thebesthealthtips.blogspot.com/ the best health tips http://unwealthyhabits.blogspot.com/ unwealthy habits http://beautytipsfornewu.blogspot.com/ beauty tips for new u http://datingattractivewomen.blogspot.com/ how to attract a women 4 date http://gta4-grandtheftauto.blogspot.com/ gta4 grand theft Auto http://tastyhealthrecipes4u.blogspot.com/ Tasty Healthy Recipes For Healthy Body and mind http://aboutreligionphilosophy.blogspot.com/ About religion and philosophy http://storiesbedtime4u.blogspot.com/ Naughty Bed Time Stories http://bollywoodhollywoodnews.blogspot.com/ Bollywood Hollywood News And Gossip
VIEWS ON THIS POST

27

Posted on:

Saturday 10th November 2012
View Replies!

Port scan module

I programmed a port scanning module which you can download here http://code.google.com/p/portscan/ Including the module in your program allows you to scan specific ports in an IP, using the function scan(ip,port,timeout). Instead of getting a cryptic code in return, the ...
VIEWS ON THIS POST

72

Posted on:

Saturday 10th November 2012
View Replies!

RSA SecurID token authentication?

Anyone doing python application authentication using RSA SecurID tokens We have a Pylons app that needs this. I've written code against RSA's API and found the docs terrible and the libraries painful to use. RSA has a RADIUS server fronting ...
VIEWS ON THIS POST

40

Posted on:

Saturday 10th November 2012
View Replies!

LDBackup Release 00.08.05

Release 00.08.05 http://www.latedecember.com/sites/software/LDBackup/ Introduction Why another Backup tool Simple, I wanted something that would suit a Home or Small office environment and that I could hand out to friends. A batch file and xcopy would probably be enough but friendly ...
VIEWS ON THIS POST

30

Posted on:

Saturday 10th November 2012
View Replies!

THE GOOGLE PROJECT NETWORK INVITES YOU TO EARN$1,000 IN A SINGLEPROJECT.NORMALLY YOU CAN MAKE 20 PROJECTS IN A DAY.YOUR CHANCE IS GOING TORARN $3,00,000 IN A SINGLE WEEK.THE LINK IS BELOW

THE GOOGLE PROJECT NETWORK INVITES YOU TO EARN$1,000 IN A SINGLE PROJECT.NORMALLY YOU CAN MAKE 20 PROJECTS IN A DAY.YOUR CHANCE IS GOING TO RARN $3,00,000 IN A SINGLE WEEK.THE LINK IS BELOW www.jeeva235.blogspot.com IT IS A FREE MONEY MAKING ...
VIEWS ON THIS POST

24

Posted on:

Sunday 11th November 2012
View Replies!

ANN: pycairo release 1.4.12 now available

Pycairo is a set of Python bindings for the multi-platform 2D graphics library cairo. http://cairographics.org http://cairographics.org/pycairo A new pycairo release 1.4.12 is now available from: http://cairographics.org/releases/pycairo-1.4.12.tar.gz http://cairographics.org/releases/py....12.tar.gz.md5 c63199d35b1e1d3c5133509f315f70d7 pycairo-1.4.12.tar.gz Overview of changes from pycairo 1.4.0 to pycairo 1.4.12 ======================================================== General ...
VIEWS ON THIS POST

46

Posted on:

Monday 12th November 2012
View Replies!

How to read strings cantaining escape character from a file and useit as escape sequences?

How to read strings cantaining escape character from a file and use it as escape sequences for example, a file 'unicodes.txt' has contents: \u0050\u0079\u0074\u0068\u006f\u006e Now, >>> file = open('unicodes.txt') >>> line = file.readline() >>> line '\\u0050\\u0079\\u0074\\u0068\\u006f\\u006e\n' >>> print line \u0050\u0079\u0074\u0068\u006f\u006e ...
VIEWS ON THIS POST

64

Posted on:

Monday 12th November 2012
View Replies!

Washington DC bug-day sprint this Saturday

HacDC has kindly offered to host a Python sprint for the global Python sprint weekend, this coming Saturday afternoon (May 10th), noon to 4PM. The sprint will be at HacDC's rented space at 1525 Newton St NW, Washington DC 20010 ...
VIEWS ON THIS POST

24

Posted on:

Sunday 25th November 2012
View Replies!

Get cgi script to begin execution of another script...

I've posted something similar to this already, but now I'm more sure of what I'm asking. Basically I've a CGI script, that when executed by the user, I want to call another script that does a very long running task ...
VIEWS ON THIS POST

44

Posted on:

Sunday 25th November 2012
View Replies!

Python ASP Error

I want continuie this topic http://groups.google.com/group/comp....299ebaa5a2144c I have same problem Pythonwin's "Tools->Remote Trace Collector" show me: IOError: [Errno 13] Permission denied: 'C:\\WINDOWS\\TEMP\\gen_py\\2.5\ \__init__.py' pythoncom error: ERROR: server.policy could not create an instance. how solve this problem...
VIEWS ON THIS POST

13

Posted on:

Sunday 25th November 2012
View Replies!

Clearing a DOS terminal in a script

This doesn't seem to work in a dos terminal at the start of a script: from os import popen print popen('clear').read() Any idea why not
VIEWS ON THIS POST

51

Posted on:

Monday 26th November 2012
View Replies!

The report of unittest module

, I use python's unittest module to run tests, and i redirect the stderr and stdout to textbox in my gui, everything that I print is redirected fine, but the TestCase output such us: . ---------------------------------------------------------------------- Ran 1 test in 12.605s OK is still printed in reglar stdout...
VIEWS ON THIS POST

44

Posted on:

Wednesday 28th November 2012
View Replies!

Pygame error

Quote: Originally Posted by coldDeath huh What do you mean by that Sane can get .mp3 and .mid sound files to play with pygame. I just get errors even with the latest version (1.7.1). Hard to believe that pygame1.7.1 for windows and python24 should not install properly. You may want to delete that old pygame folder manually and reinstall!
VIEWS ON THIS POST

202

Posted on:

Friday 28th December 2012
View Replies!