Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wordpress
#1
Hello,

Today i imported an application that i made in Python into Wordpress with create with code. I have only a few problems, i need to make the text blue, but if i to it in Python with Colorama i get an error 'No module named 'colorama'. I also want to delete this text that shows in Wordpress if the app runs.

Thank you in advance.

{create.withcode.uk}This python app was written using create.withcode.uk. Click here to edit the python code and create/share your own version or check out blog.withcode.uk for ideas, tips and resources
Reply
#2
I don't really understand what you are talking about.

Wordpress is written in PHP (or at least, the open source based version is, the new hosted version has a lot of modern JS).

It is possible to call Python code from a Wordpress system.

Quote: i imported an application that i made in Python into Wordpress
does not mean much to me. Do you mean you wanted to present Python code on a Wordpress site? If so, that doesn't have anything to do with Python.
I am trying to help you, really, even if it doesn't always seem that way
Reply
#3
I made an application in Python but i want to make the text blue. I downloaded coloroma but it doesn't work. I use a mac on work.
Reply
#4
Has someone an answer?
Reply
#5
Colorama is for console output and has nothing to do with HTML/CSS.
If you have programmed a small web application, change the color in your template.
Usually you learn this also in tutorials.

Wordpress is an web application written in PHP.
I don't understand why you ask for Wordpress, when you want to program with Python.
This is not a PHP-Forum.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#6
I changed it already in python, but if i convert it with create with code, the color changes to black automaticaly
Reply
#7
Without the code, it's difficult to give an answer.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#8
Text is just text, without any color or formatting. Without knowing more about what you're doing, it's not possible to help you.
Reply
#9
This still seems to be a PHP and Wordpress issue, nothing to do with Python.
I am trying to help you, really, even if it doesn't always seem that way
Reply
#10
https://www.youtube.com/watch?v=5uof2n6rmvc

I used this tutorial for colors, this is the code.

klanten = int(input ('Voer het aantal klanten in:'))

prijs1 = klanten/1000 * 49

if klanten >= 1000 and klanten <25000:
print ('Uw prijs is %i euro per maand' % (prijs1))

prijs2 = 1225 + (klanten - 25000) / 1000 * 25

if klanten >= 25000 and klanten <100000:
print ('Uw prijs is %i euro per maand' % (prijs2))

prijs3 = 3100 + (klanten - 100000) / 1000 * 10

if klanten >= 100000 and klanten <250000:
print ('Uw prijs is %i euro per maand' % (prijs3))

prijs4 = 4600 + (klanten - 250000) / 1000 * 6

if klanten >=250000:
print ('Uw prijs is %i euro per maand' % (prijs4))

https://www.youtube.com/watch?v=5uof2n6rmvc

I used this tutorial for colors, this is the code.

<python>

klanten = int(input ('Voer het aantal klanten in:'))

prijs1 = klanten/1000 * 49

if klanten >= 1000 and klanten <25000:
print ('Uw prijs is %i euro per maand' % (prijs1))

prijs2 = 1225 + (klanten - 25000) / 1000 * 25

if klanten >= 25000 and klanten <100000:
print ('Uw prijs is %i euro per maand' % (prijs2))

prijs3 = 3100 + (klanten - 100000) / 1000 * 10

if klanten >= 100000 and klanten <250000:
print ('Uw prijs is %i euro per maand' % (prijs3))

prijs4 = 4600 + (klanten - 250000) / 1000 * 6

if klanten >=250000:
print ('Uw prijs is %i euro per maand' % (prijs4))

</python>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WordPress and Python Script Corate 3 71,137 Jan-06-2019, 10:22 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020