Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: near "(": syntax error
Post: RE: near "(": syntax error

(Jun-09-2021, 02:29 PM)Yoriz Wrote: cur.execute("UPDATE Guest(room) SET room = {} WHERE room = {}").format(newRoom, roomNumber)remove (room) cur.execute("UPDATE Guest SET room = {} WHERE room = {}")...
Maryan General Coding Help 3 3,691 Jun-20-2021, 03:26 PM
  Heart Thread: near "(": syntax error
Post: near "(": syntax error

Hi guys, I need little help with the code below. I want to edit the guest room, name or surname, but I get "near "(": syntax error". Any help is appreciated, Thank you! This is the table: [Image: htt...
Maryan General Coding Help 3 3,691 Jun-09-2021, 01:53 PM
    Thread: Disable - Network adapters
Post: Disable - Network adapters

Hi! I want to make a GUI application where I can 'Enable' or 'Disable' network adapters. Any way to bypass 'run as administrator'? or another solution? I have a problem with the code below: -Invalid V...
Maryan Networking 0 4,291 Nov-23-2020, 02:01 AM
    Thread: computerScore counter not found
Post: computerScore counter not found

It's weird, I can't locate the mistake. If the player wins the round counter is ok, if the computer wins the score is not changing. **sad** import sys from PyQt5.QtWidgets import * from PyQt5.QtGui ...
Maryan GUI 1 1,660 Nov-16-2020, 12:43 AM
    Thread: sqlite3.OperationalError: near "=": syntax error
Post: RE: sqlite3.OperationalError: near "=": syntax err...

Problem solved, I forgot employee_id in cur.execute.
Maryan General Coding Help 1 5,691 Oct-31-2020, 12:09 AM
    Thread: sqlite3.OperationalError: near "=": syntax error
Post: sqlite3.OperationalError: near "=": syntax error

I can't find anything wrong with the query, but yet is not working. Any help is appreciated! Exception in Tkinter callback Traceback (most recent call last): File "E:\Python\lib\tkinter\__init__.py...
Maryan General Coding Help 1 5,691 Oct-30-2020, 11:41 PM
    Thread: AttributeError: '' object has no attribute 'tk'
Post: RE: AttributeError: '' object has no attribute 'tk...

It's dialog from the main app. On click this one popup. Altought I know the basics to create window, I have still trouble when there is class involved, like in this case. I'm not sure where the geomet...
Maryan GUI 2 14,858 Oct-29-2020, 11:57 PM
    Thread: AttributeError: '' object has no attribute 'tk'
Post: AttributeError: '' object has no attribute 'tk'

I had to seperate this file from the main app, because had some errors that I had to fix them first. However, when I run the app I'm getting AttributeError. What am I missing? from tkinter import * f...
Maryan GUI 2 14,858 Oct-29-2020, 10:27 PM
    Thread: tkinter: Image to Label
Post: RE: tkinter: Image to Label

(Oct-29-2020, 05:57 AM)buran Wrote: https://effbot.org/tkinterbook/photoimage.htm I was testing my code with jpg image, which is not supported by tkinter. I rewrite my code dozen times because of th...
Maryan GUI 10 5,432 Oct-29-2020, 11:47 AM
    Thread: tkinter: Image to Label
Post: RE: tkinter: Image to Label

(Oct-29-2020, 12:39 AM)deanhystad Wrote: Read the fine manual. Guessing what the arguments are is not working I couldn't find anything that could help me. I can easily open txt file and display it ...
Maryan GUI 10 5,432 Oct-29-2020, 01:00 AM
    Thread: tkinter: Image to Label
Post: RE: tkinter: Image to Label

If I pass 'fileimg' directly to the PhotoImage(file = fileimg), I'm getting error ( no such file ). So my thought was first to store it in 'memory' and then pass it to photoimage :| With print(type(c...
Maryan GUI 10 5,432 Oct-29-2020, 12:22 AM
    Thread: tkinter: Image to Label
Post: RE: tkinter: Image to Label

Probably I found the error: img = PhotoImage(file = content) #_tkinter.TclError: couldn't open " ....#ÿÙ": filename is invalid on this platform print(type(img),img) However, I'm not sur...
Maryan GUI 10 5,432 Oct-28-2020, 06:58 PM
    Thread: tkinter: Image to Label
Post: tkinter: Image to Label

I have some problem with my function. I want to open image(filedialog) and display the image into label. def openImg(): fileimg = filedialog.askopenfile(mode = 'rb+', initialdir = "/Desktop/",tit...
Maryan GUI 10 5,432 Oct-28-2020, 06:05 PM
    Thread: Alternative for Cairosvg?
Post: Alternative for Cairosvg?

Hi! I'm trying to convert the result output from .SVG(pygal) to .PNG, but seem I have errors while using cairo. Any alternative to cairo? Thank you! OSError: no library called "cairo" was found no li...
Maryan General Coding Help 0 2,485 Oct-26-2020, 01:27 PM
    Thread: save button: IndexError
Post: RE: save button: IndexError

It is working smoothly now :) Thank you! **thumbsup** (Oct-26-2020, 01:05 AM)bowlofred Wrote: Try adding the defaultextension option. fln = filedialog.asksaveasfilename(initialdir = os.getcwd(),...
Maryan General Coding Help 4 2,403 Oct-26-2020, 01:11 AM
    Thread: save button: IndexError
Post: RE: save button: IndexError

I found the solution. The error was when I export the CSV file, which has extra empty row.I fix this with "lineterminator='\n'". I have some another bug to fix now, when I save the file, the file doe...
Maryan General Coding Help 4 2,403 Oct-26-2020, 12:21 AM
    Thread: save button: IndexError
Post: save button: IndexError

So my app can successfully export to csv file and import it. But when I try to save the data into the DB I'm getting error. One note: when I import the csv file there is extra one empty row. IndexErr...
Maryan General Coding Help 4 2,403 Oct-25-2020, 11:23 PM
    Thread: python **
Post: RE: python **

(Oct-19-2020, 11:12 PM)jefsummers Wrote: That is height raised to the height power. BTW - when learning a new language I start with a BMI calculator. Welcome! Thank you for your feedback :) Here i...
Maryan General Coding Help 4 2,503 Oct-25-2020, 06:52 PM
    Thread: Inheritance problem
Post: Inheritance problem

def showHeader doesn't work and I realized that I did some mistake when I start coding the app. I created 'class application' with all elements from the main window, and 'def main()' for the main scre...
Maryan General Coding Help 0 1,301 Oct-25-2020, 02:39 PM
    Thread: Switch Frames
Post: RE: Switch Frames

I will definitely take a look at ttk.notebook, its great idea. On my project, I forgot on grid_forget() function. I found a weird solution, it's kind of overlay on the frames, but it works. I appreci...
Maryan GUI 2 1,838 Oct-25-2020, 01:17 AM

User Panel Messages

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