15,170 Topics

Member Avatar for
Member Avatar for katharnakh

how to add a seperating line between menubar and toolbar in Python using Tkinter. is that possible using Tkinter. also how to add vertical seperating line to seperate toolbar buttons in toolbar. please help me out from this problem.

Member Avatar for katharnakh
0
2K
Member Avatar for Steko

I've got a problem with replacing letters for a specific vector, stored in a file. The first file contains a list of "x = 0000101" like entries. The second file contains the target words in the 15th colom. I tried to use a dictionary containing the data of the first …

Member Avatar for Steko
0
408
Member Avatar for Ghent

[COLOR=Navy]Yo, im new to Python and have been working on a personal project but can figure out how to save data to a file then read it in another program. im might have the writing down but cant tell bacause i cant read it. Iv been trying to work it …

Member Avatar for katharnakh
0
170
Member Avatar for katharnakh

can any body help me to add icons to the toolbar, i know that we have to use PhotoImage class to add but i'm not able to see the image in the toolbar. here is the code which i wrote, the following code is not an error, but im not …

Member Avatar for vegaseat
0
187
Member Avatar for uv2005

Hey there. I'm new to Linux, and must install Scipy (Scientific Python) on my Suse 9.2 . I have the Numeric model installed already. I've used the RPM and I can import the scipy module, but when I try to run xplt then I get this horrible error lines, can …

Member Avatar for vegaseat
0
138
Member Avatar for senateboy

how can i get the index number of a iterator? for instance: i wante to return the number of times ive gone through the loop. [CODE]list = [(mark, jacky,jane),(stick,cheri,nice),(elly,younces,pluto)] for i in list: print i[/CODE] this returns lists. but i want an output like: [CODE]>>1 >>2 >>3[/CODE] how do i …

Member Avatar for vegaseat
0
152
Member Avatar for ajitmote

Hi, after searching a lot , i got IDE SPE........ link for SPE [url]http://stani.be/python/spe/page_download[/url]........ but giving some problem........ my system is fedora core 4 .....

Member Avatar for vegaseat
0
163
Member Avatar for senateboy

hey yo's, i pretty much understand this function, except for the return value. i know that [I]string , string[/I] concats the strings. but what does the comma in the middle do when you have 2 different objects on either side as in the return value below? [CODE]def load_image(name, colorkey=None): fullname …

Member Avatar for vegaseat
0
167
Member Avatar for davalend
Member Avatar for ankit_rastogi82

Hi All, I want to remove a substring from a string without any additional tabs/returns in the output string. Is there any method availaible or how can I do it. For the ease, I am giving an example: [code] mainstr =""" ${if:isLeaf} Dont include this isLeaf=True ${/if:isLeaf} ${if:isStatic} include this …

Member Avatar for vegaseat
0
181
Member Avatar for ankit_rastogi82

Is it possible to limit the size of list in python. I want to make list of 5 elements. How can I achieve this thing in python. And one more thing can we declare list to store elements of same type as in c, C++ we can declare an array …

Member Avatar for ankit_rastogi82
0
184
Member Avatar for ankit_rastogi82

Hi everybody, I want to get the start and end of all the patterns mattched in regex. I know I can get it with start() and end() fn of matched objects. But re.search() return the match object of first matching regex in the string. I want all match objects in …

Member Avatar for ankit_rastogi82
0
145
Member Avatar for k_en

Is this correct? How do i fix the error? [CODE]for i in range(10): for j in range(10): if(list[i] != alpha[j])[/CODE]

Member Avatar for k_en
0
117
Member Avatar for superiorss

A client just asked me to find him 2 F/T Python Programmers for their Orem, Utah office. I haven't gotten the tech specs yet, but I figured I'd get a jump on the gun and get some people prior to receiving specs. So if anyone is interested, please send me …

0
100
Member Avatar for Steko

To process my data files I need whitespaces between all characters in a string, to be written to a text file. Is there a simple Pythonfunction to solve this?

Member Avatar for Steko
0
83
Member Avatar for ankitrastogi82

Python itself has xml parsers and dom support. So if we install PyXml what additional features or advantage we get on using pyxml. Why should I use PyXml? Anyone please provide the briefing.

0
76
Member Avatar for bruno

Trying to get pypod working, and being stuck with "Umlaut" like öäü in filenames (linux) - linux suse 9.3 with iPod patch from Sven Andersen (kaputtendorf) - filenämes.mp3 have umlaut - with much cheeting (explicit translation), I got char>128 translated into unicode (e.g. "ä"=ascii=132, unicode=228) and actually written onto iPod's …

0
54
Member Avatar for juergenkemeter

Hi there, Here is a (hopefully) convenient description of my situation: - I have a main folder, containing several subfolders. - Every (sub)folder contains one or more .xls - Workbooks. - Every Workbook contains one or more different Spreadsheets. - The workbooks contain some cells which have Hyperlink addresses to …

Member Avatar for bumsfeld
0
181
Member Avatar for bobthetree

I was working on a python project that was open source and had some questions about a problem I am having. Some background: I am proficient with Java and C++, so I know how to code, however this is my first attempt at Python. Using windows, and have python 2.4 …

Member Avatar for bumsfeld
0
103
Member Avatar for k_en

I can do a control loop like this in C++ [CODE]int case =0; while( case<0 && case>20){}[/CODE] How am i suppose to implement this in Python? I didn't get any errors if i wrote this, the problem is it doesn't enter the while loop when case<0 and case>5 [CODE] while …

Member Avatar for bumsfeld
0
141
Member Avatar for k_en

Do anyone know why i got this error ? Do i have to import anything in order to use string.lower() & string.upper() ? [CODE][color=RED]sentence = "how are you" newS = string.lower(sentence) NameError: name 'string' is not defined[/CODE][/color]

Member Avatar for k_en
0
184
Member Avatar for Micko

Hello friends, I just want to say that last week a got a job. Since I'm electrical engineer I got job in nearby Thermal power plant. Now, I don't have spare time anymore as I used to have, and I guess it's time to quit my hobbies. Sometimes I'll be …

Member Avatar for vegaseat
0
162
Member Avatar for bucodi

# Other field creations here.... self.Sfield1 = wx.TextCtrl(id=wxID_SEARCHBROWSERSFIELD1, name=u'Sfield1', parent=self, pos=wx.Point(144, 80), size=wx.Size(216, 21), style=0, value=u'') self.Sfield1.SetToolTipString(u'') self.staticText1 = wx.StaticText(id=wxID_SEARCHBROWSERSTATICTEXT1, label=u'Customer N\xb0', name='staticText1', parent=self, pos=wx.Point(32, 80), size=wx.Size(83, 16), style=0) self.staticText1.SetForegroundColour(wx.Colour(255, 255, 255)) self.staticText1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Verdana')) self.staticText1.SetToolTipString(u'') self.staticText1.SetBackgroundColour(wx.Colour(0, 0, 128)) [B] self.Sfield1.SetFocus()[/B] [B]Why isn't the focus set to …

Member Avatar for vegaseat
0
1K
Member Avatar for shanenin

I have a very simple plugin I wrote for freevo. below is the plugin. it will shutdown your computer after your avi file has finished playing, kind of like a sleep timer. [code] #!/usr/bin/env python import os import time import commands import thread import plugin from gui.PopupBox import PopupBox from …

Member Avatar for shanenin
0
3K
Member Avatar for bucodi

I'm new to Boa constructor (not to Python) and seem to have a litle problem. It looks to me as Boa creates the focus order in the same order as you create visualy your form. If that is the case, what do you do when you forgot a control and …

Member Avatar for vegaseat
0
137
Member Avatar for Micko

Little, by little my calculator is getting a look I want. However, I find that using Tkinter is not very intuitive, and i cannot find detail documentation. have a look at this [code] # menu-example-2.py #from Tkinter import * #root = Tk() #def hello(): #print "hello!" ## create a toplevel …

Member Avatar for bucodi
0
302
Member Avatar for Avner .H.

Hello... I'm using glade on linux platform, and i've bumped into a problem with Gtk.Image... When i'm using an image in glade, the xml glade file that's created does not contain the library path of the image, and that results in errors printed to the screen when running the application. …

0
87
Member Avatar for shanenin

I am not sure if any of you use a pvr. Linux offers some good choices. One of the choices is freevo, it is fully implemented in python. Of cource it uses tools like mplayer(video player) and others that are written in c/c++ . I wrote python script that makes …

Member Avatar for vegaseat
0
223
Member Avatar for Avner .H.

Hello everyone..! I'm having a problem with gtk.ListStore class, while i'm trying to insert values into it. It seems that after I create the class object and use each one of the functions which responsible for values insertion (insert, append, prepend etc...), the only value that gets inserted to the …

Member Avatar for vegaseat
0
208
Member Avatar for Avner .H.

Hello people! does anyone know in what way can you edit a default value inside a gtk.ComboBox?

Member Avatar for Avner .H.
0
167

The End.