LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 04-12-2024, 01:55 PM   #1
jttolleson
LQ Newbie
 
Registered: Apr 2024
Location: SoCal
Posts: 1

Rep: Reputation: 0
Python Flask Script With GUI in WebPage


Hello all - Jayson here and I am designing a program to make a 3d solid and view it in browser, with Python on my Virtual Machine running Debian.

I have had many issues with the GUI aspect of my program, in browser ...and will continue to post updates here soon... also any help or change in direction of this code would be greatly appreciated.

Code:
[code moderated]
stl-viz.py
Code:
rom solid2 import *
from jupyterscad import view
from simple_3dviz import Mesh
from simple_3dviz.window import show
from simple_3dviz.utils import render
d = cube(5) + sphere(5).right(5) - cylinder(r=2, h=6)
scad = (scad_render(d))
view(scad, outfile='/var/www/design.stl')
m = Mesh.from_file('/var/www/design.stl', color=(0.1,0.5,0.1))
show(m, camera_position=(-60., -160, 120), camera_target=(0., 0, 40), light=(-60, -160, 120))
when i run:
Code:
sudo python3 console-stl-viewer.py
I get a browser window @ my [link moderated] that refreshes an iframe that doesent have [link moderated] in 'er.

so.....if i go there on the web when its running its not working either..

The page does connect, and there seems to be a transmission issue ...now

Must be my GUI Command?

Last edited by astrogeek; 04-14-2024 at 12:45 AM. Reason: Moderated code and links
 
Old 04-14-2024, 12:43 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Welcome to LQ!

The forum rules do not permit advertising, which includes promotion of personal blogs and programming projects. Please visit http://www.linuxquestions.org/advertising/ for more information on advertising. Feel free to contact the forum admin if you have any questions about this policy.

Your initial post incuded links and code which appeared to violate this policy, so those have been moderated and this thread has been closed as it had not yet gathered any replies.

You are invited to post your question in a new thread, but please avoid including links which might be considered spammy, and limit code to a minimal example which demonstrates your specific problem so that others may reproduce it and offer help.

Good luck!

Last edited by astrogeek; 04-14-2024 at 12:47 AM. Reason: typo
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Why and how to handle exceptions in Python Flask LXer Syndicated Linux News 0 03-30-2017 04:51 PM
LXer: How to write a web service using Python Flask LXer Syndicated Linux News 0 03-23-2017 01:56 PM
LXer: Running Asynchronous Background Tasks on Linux using Python-3 Flask and Celery LXer Syndicated Linux News 0 10-14-2016 03:51 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration