{"action":"opened","issue":{"url":"https://api.github.com/repos/SJones72413/Python/issues/1","repository_url":"https://api.github.com/repos/SJones72413/Python","labels_url":"https://api.github.com/repos/SJones72413/Python/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SJones72413/Python/issues/1/comments","events_url":"https://api.github.com/repos/SJones72413/Python/issues/1/events","html_url":"https://github.com/SJones72413/Python/issues/1","id":349793796,"node_id":"MDU6SXNzdWUzNDk3OTM3OTY=","number":1,"title":"Str does not have attribute set","user":{"login":"SJones72413","id":42313051,"node_id":"MDQ6VXNlcjQyMzEzMDUx","avatar_url":"https://avatars2.githubusercontent.com/u/42313051?v=4","gravatar_id":"","url":"https://api.github.com/users/SJones72413","html_url":"https://github.com/SJones72413","followers_url":"https://api.github.com/users/SJones72413/followers","following_url":"https://api.github.com/users/SJones72413/following{/other_user}","gists_url":"https://api.github.com/users/SJones72413/gists{/gist_id}","starred_url":"https://api.github.com/users/SJones72413/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SJones72413/subscriptions","organizations_url":"https://api.github.com/users/SJones72413/orgs","repos_url":"https://api.github.com/users/SJones72413/repos","events_url":"https://api.github.com/users/SJones72413/events{/privacy}","received_events_url":"https://api.github.com/users/SJones72413/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-12T08:11:43Z","updated_at":"2018-08-12T08:11:43Z","closed_at":null,"author_association":"OWNER","body":"So my code keeps having the error saying that str does not have the attribute set. Does anyone know how to fix this. I have tried a few things but it doesn't work still. Here is the code where the error is.\r\nThe error is in the first line of forth block.\r\n\r\ncoc = float(Cappacuino.get())\r\n    col = float(Latte.get())\r\n    cofw = float(Flat_White.get())\r\n    cob = float(Black_Coffee.get())\r\n    coa = float(Americano.get())\r\n    cof = float(Frappe.get())\r\n\r\n    costofcappacuino = coc*4\r\n    costoflatte = col*4\r\n    costofflatwhite = cofw*3\r\n    costofblackcoffee = cob*3\r\n    costofamericano = coa*4\r\n    costoffrappe = cof*5\r\n\r\n    costoforder = \"$\",str('%.2f'% (costofcappacuino +  costoflatte + costofflatwhite + costofblackcoffee + costofamericano + costoffrappe))\r\n    PayTax=((costofcappacuino +  costoflatte + costofflatwhite + costofblackcoffee +  costofamericano + costoffrappe)*0.15)\r\n    Totalcost=(costofcappacuino +  costoflatte + costofflatwhite + costofblackcoffee  + costofamericano + costoffrappe)\r\n    Disscount=((costofcappacuino +  costoflatte + costofflatwhite + costofblackcoffee + costofamericano + costoffrappe)/10)\r\n    OverAllCost=\"$\"+str( PayTax + Totalcost - Disscount)    \r\n    Disscount=\"$\"+str('%.2f'% Disscount)   \r\n    PaidTax=' $%.2f' % PayTax\r\n\r\n    Disscount.set(Disscount)\r\n    cost.set(costoforder)\r\n    Tax.set(PaidTax)\r\n    Subtotal.set(costoforder)\r\n    Total.set(OverAllCost)\r\n\r\nrand = StringVar()\r\nCappacuino = StringVar()\r\nLatte = StringVar()\r\nFlat_White = StringVar()\r\nBlack_Coffee = StringVar()\r\nSubtotal = StringVar()\r\nTotal = StringVar()\r\nDisscount = StringVar()\r\nFrappe = StringVar()\r\nTax = StringVar()\r\ncost = StringVar()\r\nAmericano = StringVar()\r\n\r\ndef qexit():\r\n    root.destroy()\r\n\r\ndef reset():\r\n    rand.set(\"\")\r\n    Cappacuino.set(\"\")\r\n    Latte.set(\"\")\r\n    Flat_White.set(\"\")\r\n    Black_Coffee.set(\"\")\r\n    Subtotal.set(\"\")\r\n    Total.set(\"\")\r\n    Service_Charge.set(\"\")\r\n    Frappe.set(\"\")\r\n    Tax.set(\"\")\r\n    cost.set(\"\")\r\n    Americano.set(\"\")"}}
{"actor":{"display_login":"SJones72413"}}