Title: How can i display image from mysql to python gui ? · Issue #1088 · realpython/python-guide · GitHub
Open Graph Title: How can i display image from mysql to python gui ? · Issue #1088 · realpython/python-guide
X Title: How can i display image from mysql to python gui ? · Issue #1088 · realpython/python-guide
Description: I am trying , like this : from tkinter import * from io import BytesIO window= Tk() db=MySQLdb.connect("localhost","root","??","??") cursor=db.cursor() sql= "SELECT LOGO FROM SYSTEMDETAILS" cursor.execute(sql) logo=cursor.fetchone() img ...
Open Graph Description: I am trying , like this : from tkinter import * from io import BytesIO window= Tk() db=MySQLdb.connect("localhost","root","??","??") cursor=db.cursor() sql= "SELECT LOGO FROM SYSTEMDETAILS" cursor....
X Description: I am trying , like this : from tkinter import * from io import BytesIO window= Tk() db=MySQLdb.connect("localhost","root","??","??") cursor=db.cursor() sql= ...
Opengraph URL: https://github.com/realpython/python-guide/issues/1088
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How can i display image from mysql to python gui ?","articleBody":"I am trying , like this :\n\nfrom tkinter import *\nfrom io import BytesIO\nwindow= Tk()\ndb=MySQLdb.connect(\"localhost\",\"root\",\"??\",\"??\")\ncursor=db.cursor()\nsql= \"SELECT LOGO FROM SYSTEMDETAILS\" cursor.execute(sql)\nlogo=cursor.fetchone()\nimg = Image.open(BytesIO(logo))\nphimg = ImageTk.PhotoImage(img)\npanel = Label(window, image = phimg)\npanel.pack()\n\n\nWhen i run this, it show error in line 9 , it want logo as an object but in here its tuple","author":{"url":"https://github.com/2020Yasir-Sahibzada","@type":"Person","name":"2020Yasir-Sahibzada"},"datePublished":"2021-01-08T21:45:57Z","url":"https://github.com/realpython/python-guide/issues/1088"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:99740f97-7a7b-c1fc-86a9-358d97b2d6b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 825E:0DF6:18295FC:20028D6:6B067703 |
| html-safe-nonce | 1ce7964660fbb324c2e4f07bbbe96a4e952c9850de373f2efe67aa610ad9604e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjVFOjBERjY6MTgyOTVGQzoyMDAyOEQ2OjZCMDY3NzAzIiwidmlzaXRvcl9pZCI6IjEwOTMwMzY3OTQ1NzQxNzM5NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 67417d7f908c9197ca52a0e41416d6fa71bbd82f5f2e15137da8914ac7069de1 |
| hovercard-subject-tag | issue:782416193 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/realpython/python-guide/1088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f93f993ea5c2d5c60a6d2415b89807bc77760c94174b8b682ed7d155feb6d28/realpython/python-guide/issues/1088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f93f993ea5c2d5c60a6d2415b89807bc77760c94174b8b682ed7d155feb6d28/realpython/python-guide/issues/1088 |
| og:image:alt | I am trying , like this : from tkinter import * from io import BytesIO window= Tk() db=MySQLdb.connect("localhost","root","??","??") cursor=db.cursor() sql= "SELECT LOGO FROM SYSTEMDETAILS" cursor.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 2020Yasir-Sahibzada |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/realpython/python-guide git https://github.com/realpython/python-guide.git |
| octolytics-dimension-user_id | 5448020 |
| octolytics-dimension-user_login | realpython |
| octolytics-dimension-repository_id | 1481305 |
| octolytics-dimension-repository_nwo | realpython/python-guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1481305 |
| octolytics-dimension-repository_network_root_nwo | realpython/python-guide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width