124 Topics

Member Avatar for
Member Avatar for nunos

Hi all. I have been doing some HTML scraping and today a fellow coder told me about this thing 'DOM' and how much easier it is to use it rather than manipulating strings as I have been doing. He doesn't know much about it, and that's why I came here …

Member Avatar for r8lst
0
807
Member Avatar for luffy_D

I am trying build a webpage which takes a large tab delimited `.txt/.txt.gz `file as user input from a form and using `POST` method(`test.html`) to send the data to `cgi-bin` directory to `file.py` which ideally should open the file read and put the data into a dataframe and do some …

Member Avatar for tinstaafl
0
253
Member Avatar for Dagw300805

I have made a html page and I need to use python to see the inputs. Any ideas??

0
21
Member Avatar for Zinavo
Member Avatar for Kim Gabrielle

I am making a webpage wherein I am going to ask for an input through an html form using php, and then call a python script after clicking "submit (flames)" to run and process the Flames game. Can someone help me on how to execute a python script through a …

Member Avatar for broj1
0
7K
Member Avatar for ihatehippies

I have a wx.DatePickerCtrl with the dropdown popup window that allows the user to pick a date from the calendar. What I would l like to have my program do is process an event when the user has clicked on a day in the dropdown calendar. Unfortunately the only native …

Member Avatar for gdtraveller
0
2K
Member Avatar for <HHH>

Hello, i have a sample web appliaction which get a value from HTML text feild and redirect to HTML page according to the value passed but the problem is that i can't get the value entered in the html text throught (request.form) method I get the below error werkzeug.routing.BuildError: Could …

Member Avatar for snippsat
0
597
Member Avatar for Irene26

Can somebody help me to convert markdown to html using python language. I'm not a programmer but i want to understand some basic things in programming, and now i'm trying to make this conversion. Can somebody show me for example how to convert this: https://gist.githubusercontent.com/Irene26/6da8be01b46f07bf2a48/raw/6ef8e49a7c50e0aa1ae7465f6069f0a262b0ad84/gistfile1.txt to look like this: https://gist.githubusercontent.com/Irene26/a05c52826fcd680cbd74/raw/22a44879753b137e28d25affefa21912dfdb6912/gistfile1.txt …

Member Avatar for Gribouillis
0
377
Member Avatar for BustACode

I needed a random color selector. I found one [here](http://peepspower.com/python-script-to-generate-random-css-colors). I rewrote it to make it more general purpose. "f_GenRandomColor" is the picker. The output is in list form, which should make it suitable for most general applications. "f_HTMLRandomColorChart" is just a way to create an HTML table to test …

Member Avatar for snippsat
2
522
Member Avatar for renierdbruyn

I need to submit a form on which there is a group of inputs(that can be dynamically generated) that needs to be an array of objects(list of dictionaries). I Dynamically generate the following item when a button is clicked on the form: var count = 0 $("#add-order-item").on("click", function(){ count += …

Member Avatar for Schol-R-LEA
0
355
Member Avatar for sneekula

Draw a group of shapes on the Tkinter GUI toolkit canvas and animate the group using the common tag names.

1
5K
Member Avatar for vegaseat
Member Avatar for ben.juarez.773

I'm trying to prefill webforms in iframes using Requests. If that can't be done, does anyone have a script I can use that works with webbrowser? I like that it calls the default web browser in just about any system, which is great for my Android applications. I've tried using …

Member Avatar for ben.juarez.773
0
318
Member Avatar for giancan

Dear friends, I'm having a strange issue with a simple python code involving wx and HTML2. It is a code to run a local html page (on windows) but when I close the browser, the process stays in memory and I have to manually kill it. Here is the code, …

Member Avatar for giancan
0
245
Member Avatar for alyons

Do anyone know how to set a gif image as the background to my coding below? I just want it for my first window and not Demo1? The gif image is nameed "python_wallpaper.gif". from tkinter import * import threading from graphics import * class Intro(): def __init__(self,master): self.master = master …

Member Avatar for ZZucker
0
9K
Member Avatar for crebs

I am trying to use web2py to build an app. I have a simple print function that a user submits a key word . The string or int key word is directed to an sqlite db to retrieve a row and output the data. I need to know 1. how …

0
194
Member Avatar for come_again

Hello, I am relatively new to python and I am tryin to create, or better yet, find a text editor/box which displays simple html text/formatting and allows me to modify it (without having to deal with the html directly). For example in the text box you might find this: 1. …

Member Avatar for come_again
0
316
Member Avatar for mdfaisalamin

I have a database with some entry. In my web application I log in with a page and show the corrosponding entries for that user on another page. I am using Jinja werkzueg for my light weight example. And using SQL alchemy. Here is my code for showing the password …

0
111
Member Avatar for TheCodeCrimson

Hello! Pretty new to Python but I'm kind of loving it. Already involved in illustration, design, and creating web content for clients, but I'm hoping to expand beyond that into full-fledged web development as well. I know a fair amount of html/css, and was looking for advice on other languages …

Member Avatar for TheCodeCrimson
0
282
Member Avatar for james.lu.75491856

def GenContent(address,what): return urllib.urlopen("http://www.yelp.com/search?find_desc="+what+"&#find_loc="+address).read() I am using python to do this. It works prefectly in my browser.

Member Avatar for chriswelborn
0
313
Member Avatar for Hikki_Passion

Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard time with the added quotation marks. [CODE] def find_attribute_value(html_tag, att): '''Return the value of attribute att (a str) in the …

Member Avatar for james.lu.75491856
0
1K
Member Avatar for robinlrandall

Using latest versions of Python (2.7) and wxPython(2.8) I get the folowing error when I "PreviewText" using "HTMLEasyPrinting". In the __init__ I have tried "parentWindow=None", "parentWindow=frame", etc. No Luck. Does anyone have a workaround for this annoying problem. (It is documented elsewhere => "FRAME_FLOAT_ON_PARENT") RR C:\K>Print_Dialog.py Traceback (most recent call …

Member Avatar for robinlrandall
0
361
Member Avatar for NiescierJ

I am trying to set "myimage" as the background for my GUI but having problems with self.canvas.create_image(myimage,750,450) def __init__(self): self.root=tk.Tk() # The number of times the GUI is updated self.ctr = 0 #creating the Canvas self.canvas = tk.Canvas(self.root, width=750, height=450, bg = "black") #Sets the background as an image myimage=PhotoImage(file='world.gif') …

Member Avatar for vegaseat
0
339
Member Avatar for NiescierJ

hey i am working with python 3 and i am trying to set a gif file as my GUI background. The canvas.configure(bg=myimage) does not work. Any ideas? width, height = 800, 500 canvas = tkinter.Canvas(width=width, height=height, bg="black") canvas.pack(fill=None, expand=False) #Sets the backround image myimage = PhotoImage(file='world.gif') canvas.configure(bg=myimage)

Member Avatar for vegaseat
0
14K
Member Avatar for don.davis.773

so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a …

Member Avatar for Gribouillis
0
205
Member Avatar for kuchi

I've data showing on page using list and inluding some other fields. When I submit the button, I can take web elements using form["name"].value but how can I get the objects from form? or is there way to get the objects without web form in python?

Member Avatar for ryantroop
0
119
Member Avatar for sarelnet

Hi, I have a HTML page in one variable. I need build a mehod that will extract a tag content (dif extract_tag(self, tag_name)). For example, given webpage: <div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <!-- content --> <div id="content" class="mw-body"> <a id="top"></a> <div id="mw-js-message" style="display:none;"></div> <!-- sitenotice --> <div id="siteNotice"><!-- centralNotice …

Member Avatar for ryantroop
0
253
Member Avatar for G_S

Hello. I am working on a personal project. It's basically a program for changing specific tags from certain HTML files. So far, everything works. The GUI and the logic a work but I know the main function is wrong because it looks like this: def tag_remove(HTML_string): clean_HTML = a_string.replace('<b>', '').replace('<i>', …

Member Avatar for G_S
0
8K
Member Avatar for NeoSyn

Recently i've been coding my own game, it was working fine up to a point but suddenly the backround is moving over the sprites drawn to the screen... I've loaded them unto the screen alright, and sometimes when i run they actually do come out on top. Here's my main: …

Member Avatar for vegaseat
0
464
Member Avatar for lfmconsummates

The End.