Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Development Group »» Python
  • Newb ?

    said:you could just do the following:print "\n\nWelcome to the Backwards Message Display."printmessage = raw_input("\nPlease Enter a Message.")print message[::-1]Interesting. I forgot about the 'step' option when slicing.This is the equivalent of print ''.join(reversed(messa...

    0 answers | 1050 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • compiled images

    Fred said:[snip]I've got another question I think you may have come across before.I'm planning on purchasing a license to use some stock icons in anapplication I'm developing. The problem is the license requires this:"Where an application is to be distributed, the graphical media...

    0 answers | 1510 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Newb ?

    >list() takes any iterable and returns a list object.Hmm, I did not know that the list(str) thing worked that way.That'll reducethe list comprehensions, but is it intuitive? Would a newbie see that andthink that list("Hi") returns ["Hi"] or ["H","i"] ?>reversedMessage = ''.j...

    0 answers | 2726 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Newb ?

    Liam said:How about -print "\n\nWelcome to the Backwards Message Display."printmessage = raw_input("\nPlease Enter a Message.")msgAsList = [ char for char in message]You could also do:msgAsList = list(message)list() takes any iterable and returns a list object.msgAsList.reverse()reversedMessage...

    1 answers | 668 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • compiled images

    Hehe,Sounds like someone's license was designed for C/C MessageFrom: tutor-bounces (AT) python (DOT) org [mailto:tutor-bounces (AT) python (DOT) org] Behalf Fred LionettiSent: Friday, 18 November 2005 8:29 a.m.To: tutor (AT) python (DOT) orgSubject: [Tutor] compiled imagesHi everyone,Thanks...

    0 answers | 2335 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • Sanity Check: wx.GridBagSizer

    I've used Boa Constructor's Designer to add widgets to a wx.Panel that willeventually be on a wx.Notebook page. However, after getting totally losttrying to use sizers in BC, I decided to add them manually. Here in modModel,py I have initiated a wx.Panel and widgets:class modModel(wx.P...

    19 answers | 3186 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • compiled images

    Hi everyone,Thanks everyone for the help with lambda expressions! Yoursuggestions and discussions were great!I've got another question I think you may have come across before.I'm planning on purchasing a license to use some stock icons in anapplication I'm developing. The problem...

    1 answers | 994 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • wx.ListCtrl label editting problem

    Aha! That fixed the problem I was having where the TreeCtrl was notreturning the correct label text after being edited. Beautiful!Ron GriswoldCharacter TDR!T Picturesrgriswold (AT) rioting (DOT) com MessageFrom: jiwu liu [mailto:liujiwu (AT) msu (DOT) edu]Sent: Thursday, November 17, 2005 8:37 A...

    0 answers | 1686 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • slices

    Is there an easy way to slice the last set of characters off a string when Idon't know the length of the string? For example say I have a list of wordslikethisthoughweatherI want to get the last 2 characters from each. But so far nothing I havetried has seemed to work. Currently I am doing...

    0 answers | 865 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • slices

    Blah brain freeze I saw my mistake as I hit send.It should just be word[-2:]So#!/usr/bin/pythonimport sysfor word in sys.argv[1:]:print word[-2:]Works now. Thanks! 11/17/05, Will Harris <mosinu (AT) gmail (DOT) comwrote:Is there an easy way to slice the last set of characters off a string whe...

    0 answers | 1148 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • ANN: FloatSpin Control For wxPython ;-)

    Hello Alexander & NG,>Umm sorry that wasn't my mind. I really like your ANNs, especially your>NotebookCtrl can be really useful - images can show more the 1000 words.>And I'm sure that I'll use FoldPanelBar in one of my next apps.>if you think in this way, probably>...

    1 answers | 5223 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

  • ListCtrl and sizers

    Hi *,I have a listctrl centered inside a boxsizer, and when I resizethe window the list expands only on the right (yuk!), and I want it toexpand on both sides. def allUsers (self, data): box = wx.BoxSizer (wx.VERTICAL) list = wx.ListCtrl ( self.edit_panel, -1, style = wx.LC_REPRT | wx.SUNKEN_BRD...

    5 answers | 924 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

SPONSORED
QUESTION
SPONSORED
EMSDN