Blender as python api

Hello,
I use Blender as Python api. I want to display my STL file but i can’t do that.
I want to display it with tkinter or PyQt.

import bpyimport math
from bpy.props import IntProperty, FloatProperty
import mathutils
import tkinter
from tkinter import *
fenetre = tkinter.Tk()
canvas = Canvas(fenetre,width=900, height=600)
scene = bpy.context.scene
obj=bpy.ops.import_mesh.stl(filepath="C://Users//admin//Desktop//ProjetOrthese1//Main.stl")
print(scene)

can you help me please?

import bpyimport mathfrom bpy.props import IntProperty, FloatProperty
import mathutils import tkinter

CORRECTION:
import bpy, math, tkinter
from bpy.props import IntProperty, FloatProperty

je cherche comment afficher l’objet STL sur l’interface plutot …

Corrige d’abord! Tu en est encore loin…

oui j’ai corrigé merci. est ce que tu peux me donné des pistes pour arrivé à la solution?

Non on ne dit par “oui j’ai corrigé” mais
“Merci beaucoup pour ton aide!”
Salut.

premièrement, je n’ai pas d’erreur au niveau de mon code c juste sur le site qui a coller bpy avec import.
deuxièmement, ma question est rien a voir avec tes réponse.
et enfin salut

Allez vous faire voir, pauvre con!
Vous aurez des réponses quand vous vous comporterez plus poliment avec les autres!

!!! je vais rien te dire, je vais pas baisser mon niveau.