15,194 Topics

Member Avatar for
Member Avatar for Blackberryy

Hi guys I am looking to create the following as shown below. Anybody able to give me a hand as im really struggling to make the rectangles different lengths.

Member Avatar for richieking
0
2K
Member Avatar for Nassarofficial

Hello, I am working on a project, and I cant seem to get around a part of it, which is really crucial to the program.. I am using WX btw for GUI, but unfortunately, I want when a button clicked, to open a new Miniframe and take the values and …

Member Avatar for Nassarofficial
0
118
Member Avatar for vbx_wx

[code] 09:00 Johnny Bravo 10:25 Dexter laboratory 11:55 Cow & Chicken ..................... 18:10 I am weasel .................. [/code] Anyone knows a method to implement if i enter 10:30 to print whats on at that hour? (Cow & CHicken in my case) Thanks.

Member Avatar for richieking
0
84
Member Avatar for kylpi07

# I have created a program that takes input and sorts it. # I have also set up a program that takes to lists, combines them, and lists them together in order. # The thing I am trying to do ((using the random module, random(), randint(), seed(), and shuffle() )) …

Member Avatar for richieking
0
68
Member Avatar for vbx_wx

Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this …

Member Avatar for -ordi-
0
117
Member Avatar for rssk

[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m …

0
62
Member Avatar for Harris00
Member Avatar for loveerl
0
721
Member Avatar for Tcll

hey... I've been working on my first GUI for a while now, and I just need some input on it... first off... the image object won't work for tex0-type formatting... so I have to make each pixel from the data provided... I've gotten as far as reading the 32 byte …

Member Avatar for Tcll
0
2K
Member Avatar for mirena

Hi there, I am very new to python and wx and all that and I have a problem with my program, I'm trying to save what's been drawn on the screen,but just cant make it work. Here is the code: [CODE] import wx class MPanel(wx.Window): def __init__(self, parent): wx.Window.__init__(self, parent) …

Member Avatar for vegaseat
0
176
Member Avatar for vegaseat

This little code snippet shows you how you save a wxPython canvas drawing to a standard image file.

1
2K
Member Avatar for woofers

I have a python program in my system...i need to execute this program in other systems connected through a lan and show the o/p there...can nybody help pls...

-1
57
Member Avatar for rssk

hi all, i want to calculate the difference b/w two terms i.e,(actual memory usage-after snmp walk message usage)

-2
61
Member Avatar for rssk

how to use file open ...... i want to read 1.process memory usage 2.cpu memory usage 3.free memory usage thanks in advance

Member Avatar for -ordi-
-3
62
Member Avatar for vbx_wx

[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the …

Member Avatar for TrustyTony
0
86
Member Avatar for novice20

[B]hi, my problem is as such... I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n"). after this i call a system command 'snmpwalk' to walk the MIBs of the IP above. I again need to establish the …

Member Avatar for novice20
0
113
Member Avatar for JJHT7439

Alright, I have a problem with a program that I am trying to write. The purpose of the program is to solve 1 specific algorithm. That algorithm is send + more = money. The program is supposed to find the value of each letter and return them to you. I …

Member Avatar for TrustyTony
0
332
Member Avatar for bob24bob

this is the therapist code- [CODE]import string import regex import whrandom #---------------------------------------------------------------------- # translate: take a string, replace any words found in dict.keys() # with the corresponding dict.values() #---------------------------------------------------------------------- def translate(str,dict): words = string.split(string.lower(str)) keys = dict.keys(); for i in range(0,len(words)): if words[i] in keys: words[i] = dict[words[i]] return string.join(words) …

Member Avatar for TrustyTony
0
187
Member Avatar for TheSassyDragon

Im trying to make a blackjack game that uses a graphical interface, it executes just fine and my IDE isn't giving any error reports which is making it really difficult to finish it. I posted some of my worries about why it won't operate. Any help, general comments, or wise …

Member Avatar for Gribouillis
0
114
Member Avatar for Jplusplus

Hello i have recently learned the basics of python and today i have been playing with urllib. What i intended for this function was for it to connect to my site, fill out the form wich will write to my sites database. I know my php is working properly but …

Member Avatar for smac69
0
84
Member Avatar for shweta.raichur

hi all, i am a new bee in wlst. I am able to execute the wlst script from command prompt. but when i try to execute it in cygwin it is not getting executed. can anyone tell me am i doing something wrong.?

0
40
Member Avatar for theweirdone

Hi, I was trying to use my friend's hard drive the other day, but my Windows computer would not recognize it because it was in a Mac file format. I'm now trying to create a program (simple cli), pretty much a file folder, but that would be able to read …

Member Avatar for solomonhomicz
0
798
Member Avatar for yond

How does incrementing the variable count by the recursive call to the function, save count from being reset to zero everytime it is invoked? I am trying to get a firm understanding of how recursion works. [CODE] def countSubStringMatchRecursive(target,key): """Searches for instances of the key substring occuring inside the target …

Member Avatar for TrustyTony
0
102
Member Avatar for ukAntt

Hi all, I am a final year university student currently trying learning and researching python for my dissertation, my supervisor wants me to learn and write a programme in python. I have done a bit of learning (Still learning I should say), I am thinking on [B]a web content filter[/B] …

Member Avatar for vegaseat
0
126
Member Avatar for qingmui

I dont know how to start. I learn python by myself, hopefully i can solve this problem. but i think i need your guys help A palindrome is a sentence that contains the same sequence of letters reading it either forwards or backwards. For example "racecar". Write a recursive function …

Member Avatar for vegaseat
0
780
Member Avatar for thomas.jerald

I am still fairly new to python, and with it being my first object oriented language, I'm taking my time with it... I have been playing with Tkinter, and creating small apps that don't really do a whole lot. Now I'm getting into larger and more complex ones. The question …

Member Avatar for vegaseat
0
100
Member Avatar for luguangseu

Hello! I would like to learn how to plot 3D non-spherical shape (such as cylinder, cube, superquad etc.) using Python by Fortran in Linux environment. Currently I can just plot 3D sphere shapes. Suggestions would be heartly appreciated!

0
40
Member Avatar for novice20

Hi... I have a set of strings as below: [CODE]4:14.4-17M,5:14.4-2e13M,6:14.4-4e9M,7:14.4-8e,22:28.4-35M,23:28.4-2e30M,24:28.4-4e26M,25:28.4-8e18M,26:28.4-16e2M,27:28.4-18e,28:14.16-36M,29:14.16-2e32M,30:14.16-4e28M,31:14.16-8e20M[/CODE] I want everything after the ':' to be discarded. i.e., i just want a list of what preceeds ':' (4,5,6,7,22,.................) How can this be done?

Member Avatar for novice20
0
109
Member Avatar for vik.singh

Hi, i need to create a simple interactive bot in python that response as yes or no for whatever is the user input.Please help.

Member Avatar for richieking
0
83
Member Avatar for FreezeBlink

A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a "press any key" thing with getch(), getch() will pick up the Enter …

Member Avatar for richieking
0
14K
Member Avatar for Krstevski

Hello friends, I have a small problem with parsing XML documents... My program works great, but if some element is not exist in the XML then I got an exception error, and now I want to ask "How to check if the element is in the XML" ? Here is …

Member Avatar for Krstevski
0
7K

The End.